Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 313563

Summary: AIX agent controller startup script does not locate JVM libraries in certain cases
Product: z_Archived Reporter: Jonathan West <jgwest>
Component: TPTPAssignee: Jonathan West <jgwest>
Status: CLOSED FIXED QA Contact: Kathy Chan <kathy>
Severity: major    
Priority: P2 CC: analexee, asaf.yaffe, jgwest, yunan.he
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: adopter
Attachments:
Description Flags
Patch to AIX ACStart.sh/ACStop.sh none

Description Jonathan West CLA 2010-05-19 12:02:31 EDT
In a particular configuration of the JDK and AC, the AC will fail to locate the necessary JVM libraries for 64-bit PPC (due to their location in the directory structure), which will cause the following error when starting the agent controller in secure mode.

Exception in thread "Thread-6" java.lang.UnsatisfiedLinkError: net (A file or directory in the path name does not exist.)
        at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1008)
        at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:972)
        at java.lang.System.loadLibrary(System.java:470)
        at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:69)
        at java.security.AccessController.doPrivileged(AccessController.java:202)
        at java.net.PlainSocketImpl.<clinit>(PlainSocketImpl.java:95)
        at java.lang.J9VMInternals.initializeImpl(Native Method)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:167)
        at java.net.ServerSocket.setImpl(ServerSocket.java:248)
        at java.net.ServerSocket.<init>(ServerSocket.java:190)
        at java.net.ServerSocket.<init>(ServerSocket.java:109)
        at org.eclipse.tptp.platform.agentcontroller.jsse.SSLNativeBinding.nativeInit(SSLNativeBinding.java:140)

This is due to the main JVM library being properly located, but one of its dependencies not being on the LIBPATH to be loaded.
Comment 1 Jonathan West CLA 2010-05-19 12:15:59 EDT
Created attachment 169146 [details]
Patch to AIX ACStart.sh/ACStop.sh

This patch updates ACStart.sh and ACStop.sh for AIX to make their ability to locate the required JVM libraries more robust.
Comment 2 Kathy Chan CLA 2010-05-19 14:29:23 EDT
Approved for TPTP 4.7 RC2.
Comment 3 Jonathan West CLA 2010-05-19 15:25:41 EDT
Patches checked into HEAD.
Comment 4 Jonathan West CLA 2010-05-19 15:25:59 EDT
Resolving
Comment 5 Jonathan West CLA 2010-06-10 14:07:33 EDT
Previously verified, closing.