Automic Workload Automation

  • 1.  RA SOAP Web Service agent is ending abnormally

    Posted Jul 12, 2018 01:05 PM

    Hello Team,

     

    We are facing issue with SOAP web service job. While executing the job ,the agent is ending abruptly. May I know the root cause behind it.

     

    I found the below error while going through the logs. Please do check it and let me know how can I resolve this.

     

    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:227)
    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:704)
    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

     

    Thanks,

    Srujan.



  • 2.  Re: RA SOAP Web Service agent is ending abnormally
    Best Answer

    Posted Jul 12, 2018 02:54 PM

    Hi patve03,

     

    I am not sure what version your agent & its solution is on but I did a quick search on your error message and it look like it the exact same as this Knowledge article:

    RA WebServiceSOAP Jobs fail with "javax.xml.stream - CA Knowledge 

     

    Hope this help.