Support Article
Incorrect NameSpace generates during runtime
Summary
Incorrect NameSpace generates during runtime. However, NameSpace in the XML Stream generates correctly. Service is unable to recognize the XML correctly which causes the validation error. Service has a parameter which is an XML Payload. The XML Payload generates and is correct as per the XML stream. It drops a couple of NameSpaces while invoking the SOAP Service with the XML Payload.
Error Messages
Not Applicable
Steps to Reproduce
Unknown
Root Cause
A defect in Pegasystems’ code or rules. The issue occurs as Factory uses incorrect parser com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl. This occurs due to the Third party library.
Resolution
Perform the following local-change:
Add the below JVM arguments:
- Djavax.xml.stream.XMLInputFactory=com.sun.xml.internal.stream.XMLInputFactoryImpl
- Djavax.xml.stream.XMLOutputFactory=com.sun.xml.internal.stream.XMLOutputFactoryImpl
Published November 25, 2019 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.