Support Article
Couldn't create OMElement from string value
SA-77974
Summary
Error occurs on invoking a SOAP Connector for a partner application.
Error Messages
Couldn't create OMElement from string value
Steps to Reproduce
Unknown
Root Cause
Error occurs due to ClassLoading. The WebSphere Application Server (WAS) classloader loads it's default Jar. Additionally, the Pega classloader also loads the same Jar to the JVM.
Resolution
Perform the following local-change:
In step 13 of the InvokeAxis2 activity, replace the below code snippet:
//HFix-45582 com.ctc.wstx.stax.WstxInputFactory wInputFactory = (com.ctc.wstx.stax.WstxInputFactory)inputFactory;
wInputFactory.getConfig().setConfigFlag(1);
//HFix-45582
javax.xml.stream.XMLStreamReader streamReader =
wInputFactory.createXMLStreamReader(stringReader);
with,
//HFix-45582
// com.ctc.wstx.stax.WstxInputFactory wInputFactory = (com.ctc.wstx.stax.WstxInputFactory)inputFactory;
// wInputFactory.getConfig().setConfigFlag(1);
//HFix-45582
javax.xml.stream.XMLStreamReader streamReader =
inputFactory.createXMLStreamReader(stringReader);
Published December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.