SAP Agent fails to start with javax.crypto.b (initialization failure)

book

Article ID: 207396

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

When attempting to start the SAP Agent after either OS maintenance or a new installation, the Agent fails with:

20201229/162832.644 - U02004172 Error while calling function module 'RFC_SYSTEM_INFO'.
20201229/162832.645 -           Initialization of repository destination failed: Password decryption failed: java.lang.NoClassDefFoundError: javax.crypto.b (initialization failure).

Review of the nohup from start may include lines similar to:

Exception in thread "Attach API initializer" java.lang.ExceptionInInitializerError         at java.lang.J9VMInternals.ensureError(J9VMInternals.java:148)         at java.lang.J9VMInternals.recordInitializationFailure 

Cause

Improper installation of java on the target system. 

Environment

Release : 12.3

Component : AUTOMATION ENGINE

Resolution

These errors point to java installing with relative and not default pathing. It may be possible to work around this by starting the agent with java fully qualified similar to:

/usr/java8_64/bin/java -jar $PWD/ucxjr3x.jar &

However, the recommendation would be to have java fully reinstalled on the OS.