After Agent upgrade all Jobs fail

Document ID : KB000084444
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
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.
 
Environment:
OS Version: N/A
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.
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


Fix Status: No Fix

Fix Version(s):
N/A
Additional Information:
Workaround :
N/A