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.
Release : 12.x
Component : Workload Automation Sytem Agent
OS: Linux/UNIX
The job or script is using the WA agent JRE. The job may need different parameters and JRE.
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
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.