RA WebServiceSOAP Jobs fail with "javax.xml.stream.FactoryConfigurationError: Provider for class javax.xml.stream.XMLInputFactory cannot be created"

Document ID : KB000084614
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
javax.xml.stream.FactoryConfigurationError: Provider for class javax.xml.stream.XMLInputFactory cannot be created

Coming from RAWebService 3.x solution and installing the new RAWebServiceSOAP 4.3 solution, all jobs fail with a message like below:
 
javax.xml.stream.FactoryConfigurationError: Provider for class javax.xml.stream.XMLInputFactory cannot be created
at javax.xml.stream.FactoryFinder.findServiceProvider(FactoryFinder.java:370)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:313)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:227)
at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:154)
at org.apache.axiom.om.util.StAXUtils$7.run(StAXUtils.java:311)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.axiom.om.util.StAXUtils.getXMLInputFactory_perClassLoader(StAXUtils.java:306)
at org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(StAXUtils.java:76)
at org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java:131)
at org.apache.axis2.saaj.SOAPPartImpl.<init>(SOAPPartImpl.java:191)
at org.apache.axis2.saaj.SOAPPartImpl.<init>(SOAPPartImpl.java:246)
at org.apache.axis2.saaj.SOAPMessageImpl.<init>(SOAPMessageImpl.java:99)
at org.apache.axis2.saaj.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:131)
at com.automic.soap.client.nat.SOAPMessageBuilder.buildMessage(SOAPMessageBuilder.java:254)
at com.automic.soap.job.SOAPJob.run(SOAPJob.java:142)
at com.automic.soap.job.SOAPJob$run.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
at SOAP.runJob(WebServiceSoap.groovy:555)
at com.uc4.extensibility.types.CITAgent.dispatchJob(CITAgent.java:258)
at com.uc4.ex.cit.CITJob.execute(CITJob.java:194)
at com.uc4.ex.Job.run(Job.java:469)
at com.uc4.ex.ThreadPool$RunnableDecorator.run(ThreadPool.java:53)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Provider for class javax.xml.stream.XMLInputFactory cannot be created
at javax.xml.stream.FactoryFinder.findServiceProvider(FactoryFinder.java:367)
... 28 more
Caused by: java.util.ServiceConfigurationError: javax.xml.stream.XMLInputFactory: Provider com.ctc.wstx.stax.WstxInputFactory not a subtype
at java.util.ServiceLoader.fail(ServiceLoader.java:239)
at java.util.ServiceLoader.access$300(ServiceLoader.java:185)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:376)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
at javax.xml.stream.FactoryFinder$1.run(FactoryFinder.java:353)
at java.security.AccessController.doPrivileged(Native Method)
at javax.xml.stream.FactoryFinder.findServiceProvider(FactoryFinder.java:341)
... 28 more
Cause:
Cause type:
By design
Root Cause: Between version 3.x and 4.3 there was a complete redesign of the agent. Therefore, agents should be created newly instead of reusing an old agent created with solution 3.x.
Resolution:
Best practices is to create completely new agents with the new solution.

Fix Status: No Fix

Fix Version(s):
N/A
Additional Information:
Workaround :
If an old agent was reused and that error appears:
  1. Stop the agent.
  2. Remove all files from the directory lib in the RA agent's bin-directory.
  3. Start the agent again.