IBM Support

*ERR: org.xml.sax.SAXParseException: when using Java class adapter

Troubleshooting


Problem

The error *ERR: org.xml.sax.SAXParseException: The element type "***" must be terminated by the matching end-tag "***" appears in the jnitrace.log and Javatrace.log (where *** is a type and field number) when using the Java™ class adapter within a WebSphere Transformation Extender map.

Cause

XML data that includes a CDATA section is being passed to a public field of the Java class.

Resolving The Problem

The WebSphere Transformation Extender Java class adapter uses an XML message to invoke a customer defined Java class. In this XML message, each public field is wrapped in a CDATA section so that the data being passed is not parsed.

Since XML CDATA sections cannot be nested, the CDATA construct cannot be passed to a public field. If it is, an org.xml.sax.SAXParseException error will occur. See the W3C Recommendation for CDATA Sections for further information on the CDATA element.

The solution is to re-work the design of the map so that CDATA sections are not passed to a public field.

[{"Product":{"code":"SSVSD8","label":"IBM Transformation Extender"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Java Adapter","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"8.3;8.2;8.1","Edition":"International;US","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Ascential DataStage TX Mercator

Document Information

More support for:
IBM Transformation Extender

Software version:
8.3, 8.2, 8.1

Operating system(s):
AIX, HP-UX, Linux, Solaris, Windows

Document number:
85127

Modified date:
16 June 2018

UID

swg21243970