JNI program work with jdk 5 but not jdk6 on aix 5.3 - Aix

This is a discussion on JNI program work with jdk 5 but not jdk6 on aix 5.3 - Aix ; My JNI program work with jdk 5 but not jdk6 on aix 5.3. i.e. I compiled & tested my program with jdk 5 and it worked. Then with the same files & directory, I run jdk6 (I installed both jdk5 ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: JNI program work with jdk 5 but not jdk6 on aix 5.3

  1. JNI program work with jdk 5 but not jdk6 on aix 5.3

    My JNI program work with jdk 5 but not jdk6 on aix 5.3.
    i.e. I compiled & tested my program with jdk 5 and it worked.
    Then with the same files & directory, I run jdk6 (I installed both
    jdk5 & 6) and it failed because SSL_connect() return
    SSL_ERROR_SYSCALL.
    Please help to make my program will work on jdk6.
    Thanks.

    jdk5 is ok:
    $ /usr/java5_64/jre/bin/java -d64 -jar jMultidevice.jar

    jdk6 fails:
    $ /usr/java6_64/jre/bin/java -d64 -jar jMultidevice.jar
    SSL Connect is failing
    Exception in thread "main" com.mycomp.crypto.HwCryptokiException:
    function 'C_Initialize' returns 0x30
    at
    com.mycomp.crypto.HwCryptokiException.ThrowNew(HwC ryptokiException.java:
    57)
    at com.mycomp.crypto.HwAPI.Initialize(Native Method)
    at
    com.mycomp.crypto.HwTokenManager.(HwTokenManager.java:
    107)
    at
    com.mycomp.crypto.HwTokenManager.getInstance(HwTok enManager.java:62)
    at jMultidevice.jMultidevice.(jMultidevice.java:32)
    at jMultidevice.jMultidevice.main(jMultidevice.java:8 05)

    $ /usr/java5_64/jre/bin/java -d64 -version
    java version "1.5.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build
    pap64dev-20051104)
    IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 AIX ppc64-64
    j9vmap6423-20051103 (JIT enabled)
    J9VM - 20051027_03723_BHdSMr
    JIT - 20051027_1437_r8
    GC - 20051020_AA)
    JCL - 20051102

    $ /usr/java6_64/jre/bin/java -d64 -version
    java version "1.6.0"
    Java(TM) SE Runtime Environment (build pap6460-20071123_01)
    IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 AIX ppc64-64
    jvmap6460-20071121_15015 (JIT enabled)
    J9VM - 20071121_015015_BHdSMr
    JIT - r9_20071121_1330
    GC - 20071031_AA)
    JCL - 20071118_01







  2. Re: JNI program work with jdk 5 but not jdk6 on aix 5.3

    TsanChung wrote:
    > My JNI program work with jdk 5 but not jdk6 on aix 5.3.
    > i.e. I compiled & tested my program with jdk 5 and it worked.
    > Then with the same files & directory, I run jdk6 (I installed
    > both jdk5 & 6) and it failed because SSL_connect() return
    > SSL_ERROR_SYSCALL.
    > Please help to make my program will work on jdk6.



    Just a guess, but was some SSL/security customization done
    to the jdk5 which has not been done to the jdk6? For example
    files like these control what SSL functions a JRE can run:
    .../java*/jre/lib/ext/gskikm.jar
    .../java*/jre/lib/security/java.security
    but I am sure there are others.

    Does adding the -verbose flag to the .../jre/bin/java invokation
    give you any additional clues like missing libs or entry points?


    Paul Landay

+ Reply to Thread