AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Is JRE 7 supported on AIX 7.1

    Posted Fri July 06, 2012 06:15 AM

    Originally posted by: mgoel


    Hi friends,

    I have installed JRE7 on AIX 7.1. A customized plugin is required to load libjvm.so from JRE7. But I am getting the following error -

    8c43da9d3eca19f79e18 0000000110 07/05/12 05:44:55.006 DEBUG rscd - 10.129.17.214 9109754 0/0 (BLAdmins:BLAdmin): CM: JpaPlugin::invokeJVM: JVM /usr/java7/jre/bin/classic/libjvm.so created
    dab3294301e949f54187 0000000111 07/05/12 05:44:55.006 DEBUG rscd - 10.129.17.214 9109754 0/0 (BLAdmins:BLAdmin): CM: Instantiating shim class com/bladelogic/pluginexample/JavaFileSystemCO
    4840d99db0fb03f14970 0000000112 07/05/12 05:44:56.218 ERROR rscd - 10.129.17.214 9109754 0/0 (BLAdmins:BLAdmin): CM: Exception occurred in plugin: java.lang.UnsatisfiedLinkError: nio (No such file or directory)
    b1c53e9c1835d13b1e83 0000000113 07/05/12 05:44:56.221 ERROR rscd - 10.129.17.214 9109754 0/0 (BLAdmins:BLAdmin): CM: nio (No such file or directory)
    fd85328a9cd9c4a92082 0000000114 07/05/12 05:44:56.249 ERROR rscd - 10.129.17.214 9109754 0/0 (BLAdmins:BLAdmin): CM: Exception occurred in plugin: java.lang.UnsatisfiedLinkError: nio (No such file or directory) Unable to find the class com/bladelogic/om/infra/daal/jco/JPAShim: Exception occurred in plugin: java.lang.UnsatisfiedLinkError: nio (No such file or directory)

    P.S. - I have attached complete log with the thread.

    Thanks in Advance guys..
    #AIX-Forum


  • 2.  Re: Is JRE 7 supported on AIX 7.1

    Posted Fri July 06, 2012 06:36 AM

    Originally posted by: mgoel


    Following files are present in classpath -
    /usr/java7/jre/lib/charsets.jar
    /usr/java7/jre/lib/core.jar
    /usr/java7/jre/lib/deploy.jar
    /usr/java7/jre/lib/graphics.jar
    /usr/java7/jre/lib/javaplugin.jar
    /usr/java7/jre/lib/javaws.jar
    /usr/java7/jre/lib/security.jar
    /usr/java7/jre/lib/server.jar
    /usr/java7/jre/lib/vm.jar
    /usr/java7/jre/lib/xml.jar

    The error stack trace is -
    java.lang.UnsatisfiedLinkError: nio (No such file or directory)
    Unable to find the class com/bladelogic/om/infra/daal/jco/JPAShim: Exception occurred in plugin: java.lang.UnsatisfiedLinkError: nio (No such file or directory)
    java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1165)
    java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:1129)
    java.lang.System.loadLibrary(System.java:491)
    sun.nio.fs.UnixNativeDispatcher$1.run(UnixNativeDispatcher.java:648)
    sun.nio.fs.UnixNativeDispatcher$1.run(UnixNativeDispatcher.java:646)
    java.security.AccessController.doPrivileged(AccessController.java:203)
    sun.nio.fs.UnixNativeDispatcher.<clinit>(UnixNativeDispatcher.java:646)
    java.lang.J9VMInternals.initializeImpl(Native Method)
    java.lang.J9VMInternals.initialize(J9VMInternals.java:233)
    sun.nio.fs.UnixFileSystem.<init>(UnixFileSystem.java:80)
    sun.nio.fs.AixFileSystem.<init>(AixFileSystem.java:54)
    sun.nio.fs.AixFileSystemProvider.newFileSystem(AixFileSystemProvider.java:54)
    sun.nio.fs.AixFileSystemProvider.newFileSystem(AixFileSystemProvider.java:47)
    sun.nio.fs.UnixFileSystemProvider.<init>(UnixFileSystemProvider.java:67)
    sun.nio.fs.AixFileSystemProvider.<init>(AixFileSystemProvider.java:49)
    java.lang.J9VMInternals.newInstanceImpl(Native Method)
    java.lang.Class.newInstance(Class.java:1375)
    sun.nio.fs.DefaultFileSystemProvider$1.run(DefaultFileSystemProvider.java:64)
    sun.nio.fs.DefaultFileSystemProvider$1.run(DefaultFileSystemProvider.java:55)
    java.security.AccessController.doPrivileged(AccessController.java:203)
    sun.nio.fs.DefaultFileSystemProvider.createProvider(DefaultFileSystemProvider.java:54)
    sun.nio.fs.DefaultFileSystemProvider.create(DefaultFileSystemProvider.java:84)
    java.nio.file.FileSystems$DefaultFileSystemHolder.getDefaultProvider(FileSystems.java:119)
    java.nio.file.FileSystems$DefaultFileSystemHolder.access$000(FileSystems.java:100)
    java.nio.file.FileSystems$DefaultFileSystemHolder$1.run(FileSystems.java:109)
    java.nio.file.FileSystems$DefaultFileSystemHolder$1.run(FileSystems.java:107)
    java.security.AccessController.doPrivileged(AccessController.java:203)
    java.nio.file.FileSystems$DefaultFileSystemHolder.defaultFileSystem(FileSystems.java:106)
    java.nio.file.FileSystems$DefaultFileSystemHolder.<clinit>(FileSystems.java:101)
    java.lang.J9VMInternals.initializeImpl(Native Method)
    java.lang.J9VMInternals.initialize(J9VMInternals.java:233)
    java.nio.file.FileSystems.getDefault(FileSystems.java:187)
    sun.util.calendar.ZoneInfoFile$1.run(ZoneInfoFile.java:494)
    sun.util.calendar.ZoneInfoFile$1.run(ZoneInfoFile.java:489)
    java.security.AccessController.doPrivileged(AccessController.java:203)
    sun.util.calendar.ZoneInfoFile.<clinit>(ZoneInfoFile.java:488)
    java.lang.J9VMInternals.initializeImpl(Native Method)
    java.lang.J9VMInternals.initialize(J9VMInternals.java:233)
    sun.util.calendar.ZoneInfo.getTimeZone(ZoneInfo.java:670)
    java.util.TimeZone.getTimeZone(TimeZone.java:580)
    java.util.TimeZone.setDefaultZone(TimeZone.java:713)
    java.util.TimeZone.getDefaultRef(TimeZone.java:644)
    java.util.TimeZone.getDefault(TimeZone.java:631)
    java.text.SimpleDateFormat.initializeCalendar(SimpleDateFormat.java:693)
    java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:592)
    java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:571)
    com.bladelogic.om.infra.daal.jco.JPAShim.<clinit>(JPAShim.java:48)
    java.lang.J9VMInternals.initializeImpl(Native Method)
    java.lang.J9VMInternals.initialize(J9VMInternals.java:233)
    #AIX-Forum


  • 3.  Re: Is JRE 7 supported on AIX 7.1

    Posted Fri July 06, 2012 07:51 AM

    Originally posted by: mgoel


    Resolved - The problem was that <JAVA_HOME>/lib/ppc was not present in the Library path. Due to this the library libnio.so was not being searched.

    but another question popped up is that, why this was working in JRE 6, although the libnio.so was present at same location?
    #AIX-Forum


  • 4.  Re: Is JRE 7 supported on AIX 7.1

    Posted Fri July 06, 2012 08:16 AM

    Originally posted by: mgoel


    When using JRE 6 the LIBPATH was set to the following and it worked.
    LIBPATH=$JAVA_HOME/bin:$JAVA_HOME/bin/classic

    When using JRE 7 it worked when set it to:
    LIBPATH=$JAVA_HOME/bin:$JAVA_HOME/bin/classic:$JAVA_HOME/jre/lib/ppc

    I noticed that the location of libnio.so has not changed between JRE 6 and JRE 7. Then the question is what has changed in JRE 7 that necessitates adding this new element to LIBPATH.

    Has anyone seen such problem before? Can you please share your thoughts, experiences?
    #AIX-Forum