13 Replies Latest reply: Apr 19, 2012 12:51 PM by Laurent Matheo RSS

AIX - Fresh ITSM install fails - java.lang.StringIndexOutOfBoundsException: String index out of range: -1

Wallace Roets

Good day all,

 

I was wondering if someone else had similar issues, I dont know what the error means not how to troubleshoot it.

Any and all help would greatly be appreciated

 

Environment Details:

     $uname

     AIX

     $oslevel -g

     6.1.0.0

 

Database:

      Oracle 11g

 

I've installed the following without any errors:

ARS 7.6.04 build 2 (and sub components ie, assignment engine, email, mid-tier etc)

CMDB Atrium 7.6.04 build 2(without WebService Infrastructure)

Service Desk  7.6.04 build 2

 

When I try to install Change Management, I get the following in error on the screen:

 

error.png

 

More detail, ie: bmcremedyitsmsuite_install_log.txt:

 

************************************************************

(Apr 13 2012 12:03:35.675 PM +0300),CONFIG,com.bmc.install.utility.logging.Log,

  Execution started

...

                          *** Removed some text ***

...

(Apr 13 2012 12:50:30.497 PM +0300),INFO,com.bmc.smbu.rie.itsm.ApplicationInstaller,

  LOG EVENT {Description=[Installing Requester Console Object application],Detail=[Executing pre-install stage for SRM system]}

(Apr 13 2012 12:50:31.223 PM +0300),INFO,com.bmc.smbu.rie.itsm.ApplicationInstaller,

  LOG EVENT {Description=[Installing Requester Console Object application],Detail=[Executing pre-install stage for RQC system]}

(Apr 13 2012 12:50:31.975 PM +0300),INFO,com.bmc.smbu.rie.itsm.ApplicationInstaller,

  LOG EVENT {Description=[Installing Requester Console Object application],Detail=[Executing install stage SRM system for en locale]}

(Apr 13 2012 12:50:31.979 PM +0300),INFO,com.bmc.smbu.rie.itsm.ApplicationInstaller,

  LOG EVENT {Description=[Installing Requester Console Object application],Detail=[Executing install stage RQC system for en locale]}

(Apr 13 2012 12:50:31.982 PM +0300),INFO,com.bmc.smbu.rie.itsm.ApplicationInstaller,

  LOG EVENT {Description=[Installing Requester Console Object application],Detail=[Executing post-install stage for SRM system]}

(Apr 13 2012 12:50:31.985 PM +0300),INFO,com.bmc.smbu.rie.itsm.ApplicationInstaller,

  LOG EVENT {Description=[Installing Requester Console Object application],Detail=[Executing post-install stage for RQC system]}

(Apr 13 2012 12:50:46.371 PM +0300),SEVERE,com.bmc.smbu.rie.itsm.ApplicationLoadingTask2,

  LOG EVENT {Description=[ApplicationLoadingTask-3],Detail=[null; java.lang.StringIndexOutOfBoundsException: String index out of range: -1]}

(Apr 13 2012 12:50:46.373 PM +0300),CONFIG,com.bmc.install.task.InstallationPropertiesHelper,

  LOG EVENT {Description=[SET PROPERTY FAILED_INSTALL_FEATURES],Detail=[featureBMCRemedyITSMSuite]}

...

                          *** Removed some text ***

...

(Apr 13 2012 12:51:25.199 PM +0300),INFO,com.bmc.install.utility.logging.Log,

  --------------------------------------------------------

  BMC Remedy ITSM Suite 7.6.04 install failed.

  --------------------------------------------------------

  Feature BMC Remedy ITSM Suite failed

     Application Loading failed. <br>For more details about the error, see

  --------------------------------------------------------

 

 

 

 

arerror.log:

Fri Apr 13 11:59:31 2012 : Action Request System(R) Server Version 7.6.04 Build 002 201101141059

(c) Copyright 1991-2010 BMC Software, Inc.

  • 2. Re: AIX - Fresh ITSM install fails - java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    Wallace Roets

    Hi Laurent,

     

    That depends what you mean, the installation started round about 12:04 (clicked the final "next" button) and the error happend 12:50. Before I left it to install, I noticed a java process is running (assuming it did the unzipping, copying etc), when i came back I saw the error

     

     

    Interesting fact is that the "BMCRemedyITSMSuiteInstalledConfiguration.xml" file has the following section in it after the install fails (ie: when i run installer again, it shows that Change is installed, meaning the tickbox is grayed out):

        <productFeature backupOnUpgrade="false" id="featureBMCRemedyChangeManagement" independentOfChildren="false" rebootRequiredOnInstall="false" rebootRequiredOnUninstal

    l="false" rebootRequiredOnUpgrade="false" requiredDiskSpaceMode="default" state="INSTALLED" visible="true">

          <version majorVersion="6" minorVersion="04" releaseVersion="7"/>

          <requiredDiskSpaceMap>

            <requiredDiskSpace id="default" size="150 MB"/>

            <requiredDiskSpace id="default.aix" size="150 MB"/>

            <requiredDiskSpace id="default.hpux" size="150 MB"/>

            <requiredDiskSpace id="default.linux" size="150 MB"/>

            <requiredDiskSpace id="default.solaris" size="150 MB"/>

            <requiredDiskSpace id="default.windows" size="150 MB"/>

            <requiredDiskSpace id="backup" size="0 bytes"/>

            <requiredDiskSpace id="temporary" size="0 bytes"/>

          </requiredDiskSpaceMap>

          <productFeatureReferenceMap>

            <productFeatureReference id="featureBMCRemedyITSMSuite" type="LOCAL"/>

          </productFeatureReferenceMap>

        </productFeature>

     

     

     

    The following html files were generated (during that time) in the Logs directory of the ITSM installation:

    * InstallRAF7604.html

    * InstallRCF7604.html

    * RequesterConsoleObject.html

     

     

    I dont see the Change Management html assuming it never started or failed before it could generate the HTML file

     

    Tech detail listing of Logs directory:

    drwxrwxr-x    4 aradmin  aradmin        4096 Apr 13 12:51 .

    drwxrwxr-x    9 aradmin  aradmin        4096 Apr 13 12:51 ..

    -rw-rw-r--    1 aradmin  aradmin        6720 Apr 13 12:50 Default.log

    drwxrwxr-x    2 aradmin  aradmin         256 Apr 13 12:10 Driver_Logs

    drwxrwxr-x    3 aradmin  aradmin         256 Apr 13 12:47 ExtLoaderLogs

    -rw-rw-r--    1 aradmin  aradmin        4686 Apr 13 12:49 InstallRAF7604.html

    -rw-rw-r--    1 aradmin  aradmin       60389 Apr 13 12:50 InstallRAF7604.log

    -rw-rw-r--    1 aradmin  aradmin         284 Apr 13 12:49 InstallRAF7604_apps.log

    -rw-rw-r--    1 aradmin  aradmin        1562 Apr 13 12:47 InstallRCF7604.html

    -rw-rw-r--    1 aradmin  aradmin       25859 Apr 13 12:48 InstallRCF7604.log

    -rw-rw-r--    1 aradmin  aradmin         142 Apr 13 12:47 InstallRCF7604_apps.log

    -rw-rw-r--    1 aradmin  aradmin        3128 Apr 13 12:50 RequesterConsoleObject.html

    -rw-rw-r--    1 aradmin  aradmin       48848 Apr 13 12:51 RequesterConsoleObject.log

    -rw-rw-r--    1 aradmin  aradmin         213 Apr 13 12:50 RequesterConsoleObject_apps.log

    -rw-rw-r--    1 aradmin  aradmin        2165 Apr 13 12:48 UpgradeRAF7003To7500.log

    -rw-rw-r--    1 aradmin  aradmin        2165 Apr 13 12:48 UpgradeRAF7500To7501.log

    -rw-rw-r--    1 aradmin  aradmin        2181 Apr 13 12:48 UpgradeRAF7501Patch001To7600.log

    -rw-rw-r--    1 aradmin  aradmin        2181 Apr 13 12:48 UpgradeRAF7501To7501Patch001.log

    -rw-rw-r--    1 aradmin  aradmin        2165 Apr 13 12:48 UpgradeRAF7600To7601.log

    -rw-rw-r--    1 aradmin  aradmin        2165 Apr 13 12:48 UpgradeRAF7601To7602.log

    -rw-rw-r--    1 aradmin  aradmin        2165 Apr 13 12:48 UpgradeRAF7602To7603.log

    -rw-rw-r--    1 aradmin  aradmin        2165 Apr 13 12:48 UpgradeRAF7603To7604.log

    -rw-rw-r--    1 aradmin  aradmin        2165 Apr 13 12:46 UpgradeRCF7003To7500.log

    -rw-rw-r--    1 aradmin  aradmin        2165 Apr 13 12:46 UpgradeRCF7500To7501.log

    -rw-rw-r--    1 aradmin  aradmin        2181 Apr 13 12:46 UpgradeRCF7501Patch001To7600.log

    -rw-rw-r--    1 aradmin  aradmin        2181 Apr 13 12:46 UpgradeRCF7501To7501Patch001.log

    -rw-rw-r--    1 aradmin  aradmin        2165 Apr 13 12:46 UpgradeRCF7600To7601.log

    -rw-rw-r--    1 aradmin  aradmin        2165 Apr 13 12:46 UpgradeRCF7601To7602.log

    -rw-rw-r--    1 aradmin  aradmin        2165 Apr 13 12:46 UpgradeRCF7602To7603.log

    -rw-rw-r--    1 aradmin  aradmin        2165 Apr 13 12:46 UpgradeRCF7603To7604.log

    -rw-rw-r--    1 aradmin  aradmin       21796 Apr 13 12:51 arcurrencydefault.log

    -rw-rw-r--    1 aradmin  aradmin          59 Apr 13 12:50 getsvrinfo.result

    -rw-rw-r--    1 aradmin  aradmin        2838 Apr 13 12:49 rafaps.xml

    -rw-rw-r--    1 aradmin  aradmin        2838 Apr 13 12:49 rafpdl.xml

    -rw-rw-r--    1 aradmin  aradmin        2838 Apr 13 12:49 rafrkm.xml

    -rw-rw-r--    1 aradmin  aradmin        2838 Apr 13 12:47 rcfpdl.xml

    -rw-rw-r--    1 aradmin  aradmin        2840 Apr 13 12:50 reqraf.xml

    -rw-rw-r--    1 aradmin  aradmin        2840 Apr 13 12:50 rqckms.xml

  • 3. AIX - Fresh ITSM install fails - java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    Laurent Matheo

    Humm...

    If I understand you did this:

    1°) ARS,

    2°) CMDB,

    3°) Service Desk (from ITSM),

     

    And then you tried to install Change using ITSM installer again?

  • 4. Re: AIX - Fresh ITSM install fails - java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    Wallace Roets

    Well the complete cycle of events were
    ARS
    CMDB
    Then ITSM installer ticking everything
    after about 4 hours it failed
    fixed errors I got, re-downloaded the installer, revert back database and file system and did the same, got the same error

     

    I then reverted everything back (to a clean system) and did it in sections as you descirbed above/below

     

    Installed:

    1°) ARS + backup

    2°) CMDB + backup

    3°) Service Desk (from ITSM) + backup

    4°) Attempted Change Management (from ITSM) but failed after about an hour

  • 5. AIX - Fresh ITSM install fails - java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    Laurent Matheo

    I think you should contact BMC support, perhaps an issue in the installer.

    In the "/tmp/" folder, do you have any "logs" file (from Rik for example)?

  • 6. Re: AIX - Fresh ITSM install fails - java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    Wallace Roets

    Bunch of file in there yes, as I mentioned, it installed ARS, CMDB and Service Desk using the exact same configuration.

  • 8. Re: AIX - Fresh ITSM install fails - java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    Wallace Roets

    None, I've checked them all and their HTML counterparts

     

    Here is an example:

    [Fri Apr 13 09:50:45.974] LoadApp-  *****  Application loaded without any errors *******

    [Fri Apr 13 09:50:45.974] LoadApp-  Following table summarizes number and type of files loaded for the application

    [Fri Apr 13 09:50:45.974] LoadApp- File Load Status for overall Application: rqckms

    [Fri Apr 13 09:50:45.974] LoadApp-                       Packing List  Config Data  Sample Data  All Files

    [Fri Apr 13 09:50:45.974] LoadApp- Skipped              0                    0                    1                    1

    [Fri Apr 13 09:50:45.974] LoadApp- Success             0                    1                    0                    1

    [Fri Apr 13 09:50:45.974] LoadApp- Failed                  0                    0                    0                    0

    [Fri Apr 13 09:50:45.974] LoadApp- Totals                  0                    1                    1                    2

    [Fri Apr 13 09:50:45.982] RikMain- ARTermination complete

    [Fri Apr 13 09:50:45.982] RikMain- Returning 0 for RIK subcommand loadapp

  • 10. AIX - Fresh ITSM install fails - java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    Wallace Roets

    I've wiped everything and started afresh (but with ARS SP3 and CMDB SP2 installers this time round)

     

    Oracle DB created manually (It's an ASM):

                    create tablespace arsys

                    datafile '????\arsys.dbf' size 1024M reuse;

                    create user aradmin identified by AR#Admin# default tablespace arsys temporary tablespace temp quota unlimited on arsys;

                    create role ARole_arsys not identified;

                    grant alter session, create cluster, create database link, create sequence, create session, create synonym, create table, create view, create procedure, create trigger, query rewrite to ARole_arsys;

                    grant ARole_arsys to aradmin;

                    alter system set cursor_sharing=force scope=both;

     

    Installed ARS SP3 (Used ARS SP2 before)

    No issues in the log files (RIK Imports all good, HTML files all success). I've then fined tuned the ARSystem for installations by adding the following in the ar.conf

                    Disable-Escalations: T

                    Disable-Archive: T

                    Server-Group-Member: F

                    Cache-Mode: 1

                    Record-Object-Relationships: F

                    VersionControl-Object-Modification-Log-Mode: 0

                    VersionControl-Object-Reservation-Mode: 0

                    Disable-Alerts: T

                    Alert-Check-Users: F

                    License-Usage-Recording: 0

                    Oracle-Clob-Storage-In-Row: T

                    Log-Form-Selected: 0

     

    I've commented out the approval server plugin (as per a KB)

                    #Plugin: /opt/bmc/ARSystem/approval/bin/arapprove.a

     

    I've also commented out the following in armonitor.conf (as per a KB)

                    #/opt/bmc/ARSystem/bin/arplugin -s srvremardev01 -i /opt/bmc/ARSystem

                    #/opt/bmc/ARSystem/bin/arsvcdsp -s srvremardev01 -d /opt/bmc/ARSystem

                    #/opt/bmc/ARSystem/assignmentengine/bin/apsvcae.sh

                    #/opt/bmc/ARSystem/AREmail/emaild.sh start

     

    I've created dedicated threads (Ports and Queues) for Assignment Engine and Approval Engine (as per a KB)

     

    I then tried to install Atrium Core SP2, and this fails (and I've started to dislike the all the AIX installers):

     

    (Apr 19 2012 04:17:28.721 PM

    +0300),INFO,com.bmc.smbu.install.common.rule.engine.Installer,

      LOG EVENT {Description=[Error occurred while executing stage group

    [name=ObjectStore,filters=[],stages=[[level=en,commands=[[arguments=[subCommand=loadapp,logDir=/opt/bmc/AtriumCore,logName=BMCAtriumCMDB,file=/opt/bmc/AtriumCore/cmdb/en/workflow/adf_objectstore_1.xml,guid=null,mode=,componentMask=0,propertyName=null,propertyStatus=null,serverInfoParameter=null,serverInfoValue=null,isNoNewLogOptionUsed=true,isOutputToConsoleOptionUsed=true,isNoOutputToConsoleOptionUsed=false,isBypassOnOptionUsed=false,isBypassOffOptionUsed=false],exitCodeInterpreter=STANDARD,note=CMDB_OS_LOADAPP]]]]]],Detail=[com.bmc.smbu.install.common.rule.engine.RuleEngineExecutionException:

    com.bmc.smbu.install.common.rule.engine.CommandExecutionException: Failure during execution of RIK command]} (Apr 19 2012 04:17:28.722 PM

    +0300),INFO,com.bmc.smbu.install.common.rule.engine.rik.RikCommand,

      LOG EVENT {Description=[Executing],Detail=[RIK command]} (Apr 19 2012 04:17:28.723 PM

    +0300),INFO,com.bmc.smbu.install.common.rule.engine.rik.RikCommand,

      LOG EVENT {Description=[Command

    array],Detail=[/tmp/Utilities/rik/rik appinfo -x srvremardev01 -t

    30005 -u Demo -l /opt/bmc/AtriumCore -n CMDB-RIK_PostInstall -f OB00C04FA081BABZlxQAmyflAg1wEA -m Failed -i State -s 0 -o set -B -L -C]} (Apr 19 2012 04:17:28.937 PM

    +0300),INFO,com.bmc.smbu.install.common.rule.engine.rik.RikCommand,

      LOG EVENT {Description=[Execution result [resultType=COMPLETED,exitCode=0]]}

    (Apr 19 2012 04:17:28.938 PM

    +0300),INFO,com.bmc.smbu.install.common.rule.engine.rik.RikCommand,

      LOG EVENT {Description=[Completed executing],Detail=[RIK command]} (Apr 19 2012 04:17:28.940 PM

    +0300),SEVERE,com.bmc.install.product.atriumfoundation.cmdb.CMDBRuleEngi

    +neInstallerExecutorTask,

      THROWABLE EVENT {Description=[Failed to execute Rule Engine],Detail=[[WARNING][Thu Apr 19 13:16:32.893] ImportFileNode-

    ARImport() successful for "AtriumCMDBConsole.def", but returned a warning [WARNING][Thu Apr 19 13:16:32.893] ImportFileNode- 9936 Audit option for Display Only fields can only be 'None'. Changing it to 'None'.

    [WARNING][Thu Apr 19 13:16:32.893] ImportFileNode- 9936 Audit option for Display Only fields can only be 'None'. Changing it to 'None'.

    [WARNING][Thu Apr 19 13:16:53.259] LoadComponent- At least one file in definitions list returned a warning ]},

      Throwable=[com.bmc.smbu.install.common.rule.engine.RuleEngineExecutionException:

    com.bmc.smbu.install.common.rule.engine.CommandExecutionException: Failure during execution of RIK command

      com.bmc.smbu.install.common.rule.engine.Stage.execute(Stage.java:160)

      com.bmc.smbu.install.common.rule.engine.StageGroup.execute(StageGroup.java:137)

      com.bmc.smbu.install.common.rule.engine.Installer.execute(Installer.java:103)

      com.bmc.smbu.install.common.rule.engine.RuleEngineExecutor.execute(RuleEngineExecutor.java:56)

      com.bmc.install.product.atriumfoundation.AbstractPostInstallerInstallationTask.executeRuleEngine(AbstractPostInstallerInstallationTask.java:344)

      com.bmc.install.product.atriumfoundation.cmdb.CMDBRuleEngineInstallerExecutorTask.execute(CMDBRuleEngineInstallerExecutorTask.java:148)

      com.bmc.install.task.InstallationTask.run(InstallationTask.java:80)

      java.lang.Thread.run(Thread.java:799)],

      Throwable=[com.bmc.smbu.install.common.rule.engine.CommandExecutionException:

    Failure during execution of RIK command

      com.bmc.smbu.install.common.rule.engine.rik.RikCommand.execute(RikCommand.java:220)

      com.bmc.smbu.install.common.rule.engine.Stage.execute(Stage.java:124)

      com.bmc.smbu.install.common.rule.engine.StageGroup.execute(StageGroup.java:137)

      com.bmc.smbu.install.common.rule.engine.Installer.execute(Installer.java:103)

      com.bmc.smbu.install.common.rule.engine.RuleEngineExecutor.execute(RuleEngineExecutor.java:56)

      com.bmc.install.product.atriumfoundation.AbstractPostInstallerInstallationTask.executeRuleEngine(AbstractPostInstallerInstallationTask.java:344)

      com.bmc.install.product.atriumfoundation.cmdb.CMDBRuleEngineInstallerExecutorTask.execute(CMDBRuleEngineInstallerExecutorTask.java:148)

      com.bmc.install.task.InstallationTask.run(InstallationTask.java:80)

      java.lang.Thread.run(Thread.java:799)]

     

     

    Can anyone tell me what this error means? (Please dont say it means the RIK import fails, I can see that )

  • 11. AIX - Fresh ITSM install fails - java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    Laurent Matheo

    Ok stop here already, this will NOT work.

    You can't install ARS 7.6.04 Sp3 and then CMDB 7.6.04 sp2, it won't work, there is even a KB on this

     

    If you need to do this, install ARS 7.6.04 sp2 + cmdb 7.6.04 sp2 and then, when all other applications are installed, upgrade to ARS 7.6.04 sp3.

  • 13. AIX - Fresh ITSM install fails - java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    Laurent Matheo

    Yeah it ruined a couple of my installations when sp3 was released and couldn't understand why everything was failing... ^_^