IBM Support

PH65826: 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

    PH65826

  • Reported component name

    CICS TS Z/OS V6

  • Reported component ID

    5655YA100

  • Reported release

    400

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2025-03-25

  • Closed date

    2025-04-28

  • Last modified date

    2025-05-02

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

    PH65427

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

    UO02966 UO02967

Modules/Macros

  • DFJ@H176 DFJ@H223 DFJ@H403 DFJ@H433 DFJ@H441 DFJ@H443 DFJ@H992
    DFJ@H993
    

Fix information

  • Fixed component name

    CICS TS Z/OS V6

  • Fixed component ID

    5655YA100

Applicable component levels

  • R400 PSY UO02966

       UP25/04/30 P F504

  • R500 PSY UO02967

       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":"6.1","Line of Business":{"code":"LOB70","label":"Z TPS"}}]

Document Information

Modified date:
02 May 2025