Job fails with  java.lang.UnsatisfiedLinkError: /usr/java/jdk-1xxx/lib/libnio.so (WA Agent)
search cancel

Job fails with  java.lang.UnsatisfiedLinkError: /usr/java/jdk-1xxx/lib/libnio.so (WA Agent)

book

Article ID: 248835

calendar_today

Updated On:

Products

CA Workload Automation AE - System Agent (AutoSys) CA Workload Automation DE - System Agent (dSeries) Workload Automation Agent CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation DE - Business Agents (dSeries)

Issue/Introduction

When running a job, the WA Agent reports following errors:

Error: LinkageError occurred while loading main class com.example.class.some
 java.lang.UnsatisfiedLinkError: /usr/java/jdk-17.0.2/lib/libnio.so:
/usr/java/jdk-17.0.2/lib/libjava.so: version `SUNWprivate_1.1' not found (required by /opt/CA/WA_Agent/jre/lib/amd64/libnet.so)

When executing the command/script manually, it completes successfully.

Environment

Release : 12.x

Component : Workload Automation Sytem Agent

OS: Linux/UNIX

Cause

The job or script is using the WA agent JRE.  The job may need different parameters and JRE.

Resolution

If the job/script can be executed manually on the machine, then check the environment variables.  Some of the variables may need to be defined in the job or in the script.  

Also, check to make sure LD_LIBRARY_PATH and PATH, export those envvars in the script or in the job.

E.g.

export PATH=/usr/java/jdk-17.0.2/bin:$PATH
export LD_LIBRARY_PATH=/usr/java/jdk-17.0.2/lib:$LD_LIBRARY_PATH

Above values may differ in user OS and environment.  Set them accordingly

Additional Information

Some tableau scripts/applications when executed via WA Agent have reported similar library issues.  Append 3rd party required libs to LD_LIBRARY_PATH at job level or in the script.