IBM Support

JR52107: JSON PARSING ERROR IN REST API CALL

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as fixed if next.

Error description

  • When using
    https://oueps32:9443/rest/bpm/wle/v1/process/1964?parts=all
    REST API with XMLNodeList as the data type that contain value,
    REST API throw below error:
    
    CWTBG0536E: A JSON parsing error occurred while parsing the ''
    parameter. The error is 'Unexpected character '/' on line 1,
    column 556' while parsing
    '{"xmlData":"<case><policyUnderwriting><policyEntity
    clientNumber=\"00662331\" jointClientNumber=\"N0100\" name=\"1\"
    type=\" life\"><componentResults><componentResult code=\"HML1\"
    mandatory=\" true\"><result tc=\"5\">Manual
    Underwriting</result></componentResult></componentResults><lifeL
    evelResult>Manual
    Underwriting</lifeLevelResult></policyEntity><policyEntity
    type=\"case\"><life400output>1SLUWMUR
    61031289</life400output><policyLevelResult>Manual
    Underwriting</policyLevelResult></policyEntity></policyUnderwrit
    ing></case>","ENTITYLEVELOPXML":null /* ERROR: 1 Unsupported
    type com.lombardisoftware.core.XMLNodeList */}'.
    

Local fix

  • To resolve the empty nodelist being printer issue, we can make a
     change to XMLUitlities.writeXML():
    
    Made the following changes to XMLUtilitizes.writeXML()
                } else if (aJDomObject instanceof List ||
    aJDomObject instanceof XMLNodeList) {
                List list = null;
                if (aJDomObject instanceof List){
                list = new ArrayList((List) aJDomObject);
                }
                else {
                XMLNodeList nodeList = (XMLNodeList)aJDomObject;
                list = nodeList.getNodeList();
                }
                    if (list.size() > 0) {
                        Object o = list.get(0);
                        if (o instanceof Element) {
                            xo.output((Element) o, out);
                        }
                    }
                }
    

Problem summary

  • To be fixed in next release. No formal fix is planned for the
    current release.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    JR52107

  • Reported component name

    BPM STANDARD

  • Reported component ID

    5725C9500

  • Reported release

    855

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-12-22

  • Closed date

    2015-02-20

  • Last modified date

    2015-02-20

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

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

Fix information

  • Fixed component name

    BPM STANDARD

  • Fixed component ID

    5725C9500

Applicable component levels

  • R855 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSFTDH","label":"IBM Business Process Manager Standard"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"855","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
13 October 2021