The Java-based AIX agent does not start.
search cancel

The Java-based AIX agent does not start.

book

Article ID: 403601

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine Automic SaaS

Issue/Introduction

Starting the Java-based AIX agent without the SetUID being set

-rwxr-xr-x    1 root     prog        1463959 Jun 24 14:14 ucxja64

leads to the following exception:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Failed to load library ("/opt/Automic/Agent/bin/jre/lib/libmanagement.so")   0509-022 Cannot load module /opt/Automic/Agent/bin/jre/lib/libmanagement.so.
        0509-150   Dependent module libjava.so could not be loaded.
        0509-022 Cannot load module libjava.so.
        0509-026 System error: A file or directory in the path name does not exist.
        at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
        at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:395)
        at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:239)
        at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:181)
        at java.base/jdk.internal.loader.NativeLibraries.findFromPaths(NativeLibraries.java:322)
        at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:292)
        at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:1780)
        at java.base/java.lang.System.loadLibrary(System.java:772)
        at java.management/java.lang.management.ManagementFactory.lambda$static$8(ManagementFactory.java:1016)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:693)
        at java.management/java.lang.management.ManagementFactory.<clinit>(ManagementFactory.java:1015)
        at java.base/java.lang.Class.forNameImpl(Native Method)
        at java.base/java.lang.Class.forName(Class.java:429)
        at org.eclipse.jetty.util.Uptime$DefaultImpl.<init>(Uptime.java:41)
        at org.eclipse.jetty.util.Uptime.<init>(Uptime.java:99)
        at org.eclipse.jetty.util.Uptime.<clinit>(Uptime.java:86)
        at org.eclipse.jetty.server.Server.doStart(Server.java:612)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
        at com.automic.agent.jetty.server.WebSocketServer.open(WebSocketServer.java:42)
        at com.automic.agent.ftx.FileTransferService.beforeAgentLogon(FileTransferService.java:200)
        at com.uc4.ex.AgentServiceRegistry.lambda$beforeAgentLogon$6(AgentServiceRegistry.java:153)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at com.uc4.ex.AgentServiceRegistry.beforeAgentLogon(AgentServiceRegistry.java:153)
        at com.uc4.ex.AdminRoutine.sendStart(AdminRoutine.java:606)
        at com.uc4.ex.AdminRoutine.logon(AdminRoutine.java:550)
        at com.uc4.ex.ExecutorLifecycle.execute(ExecutorLifecycle.java:146)
        at com.automic.agent.UCXJOSS.main(UCXJOSS.java:277)

Environment

Automic Automation Engine 24.4.1

Cause

Issue.

Resolution

Public Title:
The Java-based AIX agent does not start if the SetUID is not set

Public Description:
A problem has been fixed where starting the Java based OS agent on AIX without suid bit failed with an error message:
Exception in thread "main" java.lang.UnsatisfiedLinkError: Failed to load library ("<path>/bin/jre/lib/libmanagement.so")   
0509-022 Cannot load module <path>/bin/jre/lib/libmanagement.so.

Component: Agent.Unix

Automic Automation Engine 24.4.2 HF2 - Available

Workaround:

Set the LIBPATH as follows:

export LIBPATH=/opt/Automic/Agent/bin/jre/lib:/opt/Automic/Agent/bin/jre/lib/server

 

 

Additional Information

Update to a fixed version listed below or a newer version if available.

Article title: How to register to Broadcom Software Product updates and Critical Alerts

https://knowledge.broadcom.com/external/article?articleId=133819