IBM Support

PI94390: DFHPI1007 UNEXPECTED_ELEMENT WHEN USING NATIVE JSON PARSER TO PARSE JSON THAT HAS AN EMPTY OBJECT AND ANOTHER ELEMENT

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • DFHPI1007 UNEXPECTED_ELEMENT error when using the native
    (non-Java) JSON parser to process JSON which contains an empty
    object followed by another element.
    For example:
    {
     "a": {},
      "b": "c"
    }
    If the empty object, "a" in the example above", is omitted (or
    contains a value) then the JSON is parsed correctly. The
    DFHPI1007 error will reference the next element, "b" in this
    case.
    The problem is that when an empty JSON object is parsed, then
    the close right brace "}" causes the parser to think that the
    object in question has been processed and so has the object it
    is within.  As a result the parser is now out of sync with the
    JSON it is processing causing the next element to be rejected.
    Additional Symptom(s) Search Keyword(s): KIXREVEPH
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All CICS users.                              *
    ****************************************************************
    * PROBLEM DESCRIPTION: Native JSON parser failed because of    *
    *                      incorrect input (UNDEFINED_ELEMENT *).  *
    *                      Message DFHPI1007 transformation failed *
    *                      occurs.                                 *
    ****************************************************************
    The native JSON parser is used to convert JSON data to
    application data. A JSON schema declares an object followed by
    other elements. If this object is empty, json_close_element will
    be executed twice continuously. That cause the parser think it
    has seen the end of JSON data which will leave the parsing loop,
    and all the remaining data are not parsed. Then message
    DFHPI1007 transformation failed occurs.
    
    Additional keywords: msgDFHPI1007 PI1007
    

Problem conclusion

  • DFHJUPAR has been changed to parse empty object correctly.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI94390

  • Reported component name

    CICS TS Z/OS V5

  • Reported component ID

    5655Y0400

  • Reported release

    000

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-02-27

  • Closed date

    2018-06-13

  • Last modified date

    2018-07-02

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

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

    UI56497 UI56498

Modules/Macros

  • DFHPIJP1
    

Fix information

  • Fixed component name

    CICS TS Z/OS V5

  • Fixed component ID

    5655Y0400

Applicable component levels

  • R000 PSY UI56497

       UP18/06/14 P F806

  • R100 PSY UI56498

       UP18/06/14 P F806

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":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGMGV","label":"CICS Transaction Server"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"5.3","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"5.3","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
02 July 2018