PM64063: AM0005*08*AN ERROR OCCURRED WHILE PARSING THE XML DOCUMENT. JAVA.LANG.ARRAYINDEXOUTOFBOUNDSEXCEPTION

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Environment: z/OS WDI 3.3 CICS
    *
    AM0005*08*An error occurred while parsing the XML document.
    
    Message text from parser is:
    java.lang.ArrayIndexOutOfBoundsException
    **** File: //'SYS10124.T120544.RA000.IVA82608.TRANSO.H01' Line:
    548
    Func: Amm_Parser::ReadErrMsgToBuf(char *, shor
    
    
    
    EV0003*08*An attempt to Envelope or De-envelope a message
    failed.
    The syntax was xml.  **** File: //'EDI.TE51MAS.CPP(EDIEVERR)'
    Line: 142 Func: EVException::logError()
    
    
    
    
    MB0099*08*Data transformation failed for the current message.
    See preceding messages for more details.
    **** File: //'EDI.TE52INT.CPP(EDIMBCNI)' Line: 589
    Func: cniPropagate(int *, CciTerminal *, CciMe
    
    
    
    
    FF0586*00*Processing ended - RC = 0008, ERC = 0008, Type = FILE,
    INFILE = XWMDI001, Name = XWMDI001  ****
    
    Level 2 was unable to recreate customer's problem.  Level 3
    advised that this was due to the element that exceeded 12000
    characters.
    
    Keywords: Hang XML AM0005 arrayindexoutofbounds exception
    

Local fix

  • 1.  Use EDI8 to stop the edijava parser and then EDI7 to start
    it up.
    
    2.  Ensure that any one element does not exceed 12000
    characters.
    

Problem summary

  • AM0005*08*An error occurred while parsing the XML document.
    Java.Lang.ArrayIndexOutOfBoundsException.
    

Problem conclusion

  • In CICS while parsing an input file containing a large element,
    an ArrayIndexOutOfBoundsException error occurs. The maximum item
    size was set at 12000 characters (24000 bytes of unicode data).
    The large element in the input file exceeded this size. The code
    will be changed to support elements greater than 12000
    characters.
    The theory behind this fix is to keep the large element intact.
    Each such large element will begin a new TSQ record, and may
    span
    more than one TSQ record. This occurs in our Java code. The TSQ
    is eventually passed back to our C++ code for translation. TSQ
    records are read and the large element emerges intact with its
    original size.
    

Temporary fix

Comments

  • This change affects CICS only.
    There is change to EDIJPXML.java on this PTR too. A new
    edijavaparser.jar file must be built and distributed on the PTF.
    Additional Modules/Macros
    EDIJPXML.java in CMVC.
    

APAR Information

  • APAR number

    PM64063

  • Reported component name

    WEBS DI ZOS

  • Reported component ID

    5655I4003

  • Reported release

    330

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-05-07

  • Closed date

    2012-05-24

  • Last modified date

    2012-10-30

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

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

Modules/Macros

  • CPP      EDIEXPSR
    H        EDIUPAMM
    

Fix information

  • Fixed component name

    WEBS DI ZOS

  • Fixed component ID

    5655I4003

Applicable component levels

  • R330 PSY UK79105

       UP12/06/29 P F206

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.



Rate this page:

(0 users)Average rating

Document information


More support for:

z/OS family

Software version:

330

Reference #:

PM64063

Modified date:

2012-10-30

Translate my page

Machine Translation

Content navigation