Executing configITPAM.sh script to configure Remedy with Process Automation returns following error: java.lang.ArrayIndexOutOfBoundsException

Document ID : KB000005228
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

We are trying to execute configITPAM.sh script in order to configure Remedy with Process Automation but the script fails with following error.

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0

at com.ca.itpam.config.ConfigITPAM.main(ConfigITPAM.java:116) 

Remedy_Configuration_Linux.png

 

 

 

 

Environment:
BMC remedy running on *nix.
Cause:

The error message is very generic that can occur due to various reasons but the major reason identified as the usage of incorrect version of Java to 

invoke the script.

Resolution:

Navigate to the location where ‘ConfigITPAM.sh’ file exists and run

 

‘./ConfigITPAM.sh’ which in turn invokes

 

#!/bin/sh

"$JAVA_HOME/java" -cp ConfigITPAM.jar com.ca.itpam.config.ConfigITPAM

 

So, as an alternative following command can also be executed to start the configuration.

 

java" -cp ConfigITPAM.jar com.ca.itpam.config.ConfigITPAM

 

 

Additional Information:

Note: 1. ConfigITPAM.sh script requires X display variable

 

          2. JAVA_HOME variable should be set to reflect the correct version of Java