CA Automic Workload Automation - Automation Engine
Issue/Introduction
Error Message : +++++++++++++++++++++++++++++++++++++ Start of Runtime Exception ++++++++++++++++++++++++++++++++++++ java.lang.ArrayIndexOutOfBoundsException: 1 at org.codehaus.groovy.runtime.dgmimpl.arrays.ObjectArrayGetAtMetaMethod$MyPojoMetaMethodSite.call(ObjectArrayGetAtMetaMethod.java:57) at OracleRetailAgentImpl$_getEnvMap_closure2.doCall(OracleRetailAgent.groovy:734) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMeth
When trying to run a job using the RA Oracle Retail Agent, the job fails with the above error in the job report.
Cause
Cause type: By design Root Cause: The Agent uses the environment (env) and any blank values for those variables will cause the error to occur, as the Agent expects a value for each variable.
Environment
OS Version: N/A
Resolution
Check the environment variables with the command env. There will be a list of environment variables, for example:
ENV_VAR1 = VALUE1 ENV_VAR2 = VALUE2
Ensure that all of the environment variables have a value after them. Any blank values will cause the error, so the variables will either have to be removed or filled with appropriate values. Once the blank values are resolved then the error will no longer occur. For example:
ENV_VAR1 = <-- Will result in an error ENV_VAR1 = VALUE1 <-- No error will be displayed