IBM Support

PH60651: The method signature for a CALL "Java..." may exceed the compiler's 160 character literal limit

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In the generated COBOL to Java interface, the code to specify
    the method signature uses a string literal like
    
      string signature "(ILjava/lang/String;)V" delimited by
      size into signature
    
    which can exceed the 160 character limit on string literals if
    there are many parameters or long class names.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of Enterprise COBOL 6.4 compiling and  *
    *                 running COBOL programs that use the non-OO   *
    *                 COBOL/Java interoperability feature to call  *
    *                 a static Java method that has approximately  *
    *                 9 or more String or BigDecimal parameters.   *
    ****************************************************************
    * PROBLEM DESCRIPTION: COBOL program fails at runtime with     *
    *                      message:                                *
    *                      Error: problem calling COBOL JNI DLL,   *
    *                        rc = -0000000001                      *
    *                      Error: program = <cobol_stub_prog_name> *
    *                      Error: error stmt = 0000000001          *
    *                      Error calling                           *
    *                      <fully-qualified-method-name>           *
    ****************************************************************
    * RECOMMENDATION: Apply IBM-provided PTF                       *
    ****************************************************************
    The compiler was building the Java method signature string
    needed by the JNI layer into a COBOL alphanumeric literal, which
    has a maximum size of 160 bytes. This is problematic and can
    lead to truncation when there are many String or BigDecimal
    parameters.
    

Problem conclusion

  • The compiler was updated to define the signature string as a
    group with the signature for each parameter as a separate
    subordinate item defined as a filler. This allows any number of
    parameters to be specified without hitting any limits.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH60651

  • Reported component name

    ENT COBOL FOR Z

  • Reported component ID

    5655EC600

  • Reported release

    640

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2024-04-02

  • Closed date

    2024-04-17

  • Last modified date

    2024-05-01

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

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

Modules/Macros

  • IGY8RWTU IGYCASMB IGYCCBE  IGYCCCRT IGYCCICS IGYCCSRV IGYCDGEN
    IGYCDIAG IGYCDMAP IGYCEN$0 IGYCEN$1 IGYCEN$2 IGYCEN$3 IGYCEN$4
    IGYCEN$5 IGYCEN$8 IGYCEN$D IGYCEN$R IGYCFGEN IGYCFREE IGYCINIT
    IGYCJA$0 IGYCJA$1 IGYCJA$2 IGYCJA$3 IGYCJA$4 IGYCJA$5 IGYCJA$8
    IGYCJA$D IGYCJA$R IGYCJDM1 IGYCJDM2 IGYCJDM3 IGYCJDM4 IGYCJDM5
    IGYCJDM6 IGYCJDMB IGYCJDMJ IGYCJDMR IGYCJGEN IGYCLIBR IGYCLSTR
    IGYCLVL0 IGYCLVL1 IGYCLVL2 IGYCLVL3 IGYCLVL8 IGYCMALL IGYCOPI
    IGYCOPT  IGYCOSCN IGYCPGEN IGYCRCTL IGYCRDPR IGYCRDSC IGYCREAL
    IGYCRWT  IGYCSCAN IGYCSIMD IGYCUE$0 IGYCUE$1 IGYCUE$2 IGYCUE$3
    IGYCUE$4 IGYCUE$5 IGYCUE$8 IGYCUE$D IGYCUE$R IGYCXREF IGYDRV
    IGYEQCWI IGYMSGE  IGYMSGK  IGYMSGT  IGYQCBE  IGYQSPLT IGYZQEN6
    IGYZQENU IGYZQJP6 IGYZQJPN
    

Fix information

  • Fixed component name

    ENT COBOL FOR Z

  • Fixed component ID

    5655EC600

Applicable component levels

  • R640 PSY UI96527

       UP24/04/26 P F404

  • R641 PSY UI96528

       UP24/04/26 P F404

  • R642 PSY UI96529

       UP24/04/26 P F404

  • R64H PSY UI96530

       UP24/04/26 P F404

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SS6SG3","label":"Enterprise COBOL for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"640","Line of Business":{"code":"LOB70","label":"Z TPS"}}]

Document Information

Modified date:
02 May 2024