Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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);




 

Suggest Edit

Published December 2, 2021

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us