IBM Support

PH65427: ERROR JAVA.LANG.ARRAYINDEXOUTOFBOUNDSEXCEPTION WHEN USING COBOL OCCURS DEPENDING ON CLAUSE

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • While doing COBOL to JSON schema mapping, following
    ArrayIndexOutOfBoundsException was thrown by DFHLS2JS when it
    was processing an OCCURS DEPENDING ON(ODO) clause.
    
    java.lang.ArrayIndexOutOfBoundsException
    at java.util.ArrayList.elementData(ArrayList.java:435)
    at java.util.ArrayList.get(ArrayList.java:448)
    at com.ibm.cics.wsdl.cobol.LangStruct_Cobol.processODO
    (LangStruct_Cobol.java:627)
    at com.ibm.cics.wsdl.cobol.LangStruct_Cobol.parseLine
    (LangStruct_Cobol.java:523)
    at com.ibm.cics.wsdl.cobol.LangStruct_Cobol.
    processLangStructure(LangStruct_Cobol.java:228)
    at com.ibm.cics.wsdl.ls2ws.LangStruct.
    readLangStructFromPDSLib(LangStruct.java:686)
    at com.ibm.cics.wsdl.ls2ws.LangStruct.readLangStruct
    (LangStruct.java:431)
    at com.ibm.cics.wsdl.ls2ws.LangStruct.readLangStruct
    (LangStruct.java:368)
    at com.ibm.cics.wsdl.ls2ws.ls2ws.processSimpleInput
    (ls2ws.java:240)
    at com.ibm.cics.wsdl.ls2ws.ls2ws.processLanguageStructure
    (ls2ws.java:415)
    at com.ibm.cics.wsdl.ls2ws.ls2ws.
    doAssistantSpecificProcessing(ls2ws.java:533)
    at com.ibm.cics.wsdl.common.GenericSetup.commonExecute
    (GenericSetup.java:250)
    at com.ibm.cics.wsdl.ls2ws.ls2js.run(ls2js.java:203)
    at com.ibm.cics.wsdl.ls2ws.ls2js.main(ls2js.java:215)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All CICS users.                              *
    ****************************************************************
    * PROBLEM DESCRIPTION: ArrayIndexOutOfBoundsException thrown   *
    *                      by DFHLS2JS while processing an OCCURS  *
    *                      DEPENDING ON clause.                    *
    ****************************************************************
    High-level language to JSON schema conversion utility program
    DFHLS2JS is run for COBOL to JSON schema mapping. While
    processing an 'OCCURS DEPENDING ON' (ODO) clause, an error
    java.lang.ArrayIndexOutOfBoundsException is thrown.
    
    As designed, the COUNTER field for an ODO clause is suppressed
    from the JSON generated. If it is the only field under any
    structure in the COBOL copybook, then the whole structure is
    marked for suppression.
    
    If the COUNTER field is the first one in the COBOL copybook,
    then in the process of marking the whole structure for
    suppression, DFHLS2JS ends in error.
    
    Additional keywords: DFHPI9500E
    

Problem conclusion

  • DFHLS2JS has been modified to correctly process the 'OCCURS
    DEPENDING ON' clause.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH65427

  • Reported component name

    CICS TS Z/OS V5

  • Reported component ID

    5655Y0400

  • Reported release

    200

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2025-02-26

  • Closed date

    2025-04-28

  • Last modified date

    2025-05-02

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

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

    PH65826 UO02964 UO02965

Modules/Macros

  • DFJ@H176
    

Fix information

  • Fixed component name

    CICS TS Z/OS V5

  • Fixed component ID

    5655Y0400

Applicable component levels

  • R200 PSY UO02964

       UP25/04/30 P F504

  • R300 PSY UO02965

       UP25/04/30 P F504

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":"SSGMGV","label":"CICS Transaction Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"5.5","Line of Business":{"code":"LOB70","label":"Z TPS"}}]

Document Information

Modified date:
02 May 2025