CA SSO 12.8 Custom code fails with NoSuchMethodError

Document ID : KB000115236
Last Modified Date : 18/09/2018
Show Technical Document Details
Issue:
CA SSO 12.8 ships with stax2-api-4.0.0.jar  and woodstox-core-asl-4.4.1.jar that is set in the JVMOptions.txt.
When using Custom code, it fails when triggered with the error below

java.lang.NoSuchMethodError: org.codehaus.stax2.ri.EmptyIterator.getInstance()Lorg/codehaus/stax2/ri/EmptyIterator; at com.ctc.wstx.evt.CompactStartElement.getAttributes(CompactStartElement.java:94) at com.sun.xml.internal.ws.policy.sourcemodel.XmlPolicyModelUnmarshaller.parseAssertionData(Unknown Source) at com.sun.xml.internal.ws.policy.sourcemodel.XmlPolicyModelUnmarshaller.unmarshalNodeContent(Unknown Source) at com.sun.xml.internal.ws.policy.sourcemodel.XmlPolicyModelUnmarshaller.unmarshalNodeContent(Unknown Source) at com.sun.xml.internal.ws.policy.sourcemodel.XmlPolicyModelUnmarshaller.unmarshalNodeContent(Unknown Source) at com.sun.xml.internal.ws.policy.sourcemodel.XmlPolicyModelUnmarshaller.unmarshalNodeContent(Unknown Source) at com.sun.xml.internal.ws.policy.sourcemodel.XmlPolicyModelUnmarshaller.unmarshalNodeContent(Unknown Source) at com.sun.xml.internal.ws.policy.sourcemodel.XmlPolicyModelUnmarshaller.unmarshalModel(Unknown Source) at com.sun.xml.internal.ws.policy.jaxws.SafePolicyReader.readPolicyElement(Unknown Source) at com.sun.xml.internal.ws.policy.jaxws.PolicyWSDLParserExtension.definitionsElements(Unknown Source) at com.sun.xml.internal.ws.wsdl.parser.DelegatingParserExtension.definitionsElements(Unknown Source) at com.sun.xml.internal.ws.wsdl.parser.FoolProofParserExtension.definitionsElements(Unknown Source) at com.sun.xml.internal.ws.wsdl.parser.WSDLParserExtensionFacade.definitionsElements(Unknown Source) at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parseWSDL(Unknown Source) at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source) at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source) at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source) at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(Unknown Source) at com.sun.xml.internal.ws.client.WSServiceDelegate.(Unknown Source) at com.sun.xml.internal.ws.client.WSServiceDelegate.(Unknown Source) at com.sun.xml.internal.ws.client.WSServiceDelegate.(Unknown Source) at com.sun.xml.internal.ws.client.WSServiceDelegate.(Unknown Source)
Resolution:
This is a compatibility issues between stax2-api-4.0.0.jar and woodstox-core-asl-4.4.1.jar used in CA SSO 12.8.
Issues reported in multiple online threads: 
* https://github.com/dkpro/dkpro-core/issues/777 
* https://github.com/FasterXML/woodstox/issues/10 

To resolve issue, out of the box "stax2-api-4.0.0.jar" can be replaced by "stax2-api-3.1.4.jar"  under <PS_Installation>\bin\thirdparty folder and renamed in JVMOptions.txt as confirmed with CA Sustaining Team within Defect DE383647