IBM Support

IV09350: JNI DEMO APPLICATIONS NOT WORKING WITH 64-BIT ZOS SDK

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: The JNI Demo Application is failed to compile in
    64-bit zOS JDK 6 build.
    The following are the steps to compile a JNI demo file:
    export PATH=<JAVA_HOME>/bin:$PATH
    export JAVA_HOME=<JAVA_HOME>
    cd <JAVA_HOME>/demo/jni/InvocationAPI/c
    <JAVA_HOME>/demo/jni/InvocationAPI/c>./make.sh
    Building invocationapi with 1.2 style init args...
    c++ -W l,xplink -o invocationapi invocationapi.o
    /u/sathipal/Amar-Build/60SR10/J6.0_64/bin/classic/libjvm.x
     IEW2439E 9228 THE AMODE OF THE REFERENCING ESD
    GetStringPlatform DOES NOT MATCH
              THAT SPECIFIED ON THE IMPORT STATEMENT.
     IEW2439E 9228 THE AMODE OF THE REFERENCING ESD
    GetStringPlatformLength DOES NOT
              MATCH THAT SPECIFIED ON THE IMPORT STATEMENT.
     IEW2439E 9228 THE AMODE OF THE REFERENCING ESD JNI_CreateJavaVM
    DOES NOT MATCH
              THAT SPECIFIED ON THE IMPORT STATEMENT.
     IEW2439E 9228 THE AMODE OF THE REFERENCING ESD
    NewStringPlatform DOES NOT MATCH
              THAT SPECIFIED ON THE IMPORT STATEMENT.
    FSUM3065 The LINKEDIT step ended with return code 8.
    FSUM8226 make: Error code 3
    make: 'invocationapi' removed.
    .
    Stack Trace: N/A
    .
    

Local fix

  • Modify the Makefile to include the compiler and linker option -W
    "c,langlvl(extended),lp64"
    

Problem summary

  • The 31-bit and 64-bit SDK uses the same JNI demo makefiles.
    Hence the 64-bit compile option <OSB>-W
    "c,langlvl(extended),lp64"<CSB> is not included in the Makefile.
    and it resulted in the link error while linking it with 64-bit
    object modules.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR10
    6.0.1 SR1
    7.0.0 SR1
    .
    Modified the JDK to use separate header files with compiler and
    linker flags for 31-bit and 64-bit zOS SDK.
    .
    To obtain the fix:
    Install build 20111022 or later
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV09350

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-10-19

  • Closed date

    2011-10-28

  • Last modified date

    2012-05-28

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    JAVA CLASS LIBS

  • Fixed component ID

    620700130

Applicable component levels

  • R600 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCVQ3Y","label":"Java Class Libraries"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
28 May 2012