U02000155 Internal Error (Exception) - java.lang.StringIndexOutOfBoundsException: String index out of range: 0

book

Article ID: 125427

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

The following error is received when trying to run a job on an SAP Agent:
U02000155 Interner Fehler (Exception). 
java.lang.StringIndexOutOfBoundsException: String index out of range: 0 
at java.lang.String.charAt(String.java:658) 
at com.uc4.ex.sap.R3_MODIFY_VARIANT.isNum(R3_MODIFY_VARIANT.java:192) 
at com.uc4.ex.sap.R3_MODIFY_VARIANT.equalsVariantValue(R3_MODIFY_VARIANT.java:236) 
at com.uc4.ex.sap.R3_MODIFY_VARIANT.verifyP(R3_MODIFY_VARIANT.java:269) 
at com.uc4.ex.sap.R3_MODIFY_VARIANT.verifyVariant(R3_MODIFY_VARIANT.java:185) 
at com.uc4.ex.sap.R3_MODIFY_VARIANT.verifyVariant(R3_MODIFY_VARIANT.java:174) 
at com.uc4.ex.sap.R3_MODIFY_VARIANT.execute(R3_MODIFY_VARIANT.java:62) 
at com.uc4.ex.sap.SAPJob.execute(SAPJob.java:358) 
at com.uc4.ex.Job.run(Job.java:466) 
at com.uc4.ex.ThreadPool$RunnableDecorator.run(ThreadPool.java:53) 
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
at java.lang.Thread.run(Thread.java:748) 

--------- Location from where the trace was called -------- 
java.lang.Exception: Log Stack 
at com.uc4.ex.logging.LogService.forcedTrace(LogService.java:522) 
at com.uc4.ex.logging.LogService.log(LogService.java:463) 
at com.uc4.ex.logging.LogService.log(LogService.java:654) 
at com.uc4.ex.Job.run(Job.java:474) 
at com.uc4.ex.ThreadPool$RunnableDecorator.run(ThreadPool.java:53) 
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
at java.lang.Thread.run(Thread.java:748)
The same job runs on a version 10 SAP Agent without any problems.
 

Environment

Release: AUTWAB99000-12.2-Automic Workload Automation-Base Edition
Component:

Resolution

Workaround: Use a version 10 SAP Agent.

Solution:
This issue has been corrected and is currently planned for release in the following versions: 
Automation Engine 12.0.7 - available 
Automation Engine 12.1.4 - available 
Automation Engine 12.2.2 - available
Automation Engine 12.3.0 - end of February 2019 

The correction has been made in the SAP Agent component of the Automation Engine. 
Please download and install one of the above mentioned or higher versions to obtain the correction.