Automic Continuous Delivery Automation

Expand all | Collapse all

WebService- SOAP 'class javax.xml.stream.XMLInputFactory cannot be created'

  • 1.  WebService- SOAP 'class javax.xml.stream.XMLInputFactory cannot be created'

    Posted 10-26-2017 08:35 AM
    Can anyone guide me on resolving the issue. While executing the SOAP job, it is failing with the below error in log. After failed SOAP agent goes to Stop status automatically. As per log, Request response itself not able to create by system. Please advise.

    Note:
    Connection job is successfully created. It pulled all operation in web-service. Webservice - SAP Failed Idocs information pull.  

    0171026/174851.546 - U02000005 Job 'JOBS.WEBSERVICESOAP.SOAP.NEW.1' with RunID '1196017' started.
    20171026/174851.546 - U02000003 Job 'JOBS.WEBSERVICESOAP.SOAP.NEW.1' started with RunID '1196017'.
    20171026/174851.546 - U02000106 Reading content of connection object 'CONN.WEBSERVICESOAP.SOAPCONNECTION.NEW.1'.
    20171026/174851.593 - U00029000 Report '1196018' for file 'C:\Automic\Automation.Platform\Agents\rapidautomation\WEBSERVICESOAP01\bin\..\temp\PLOG_OAACQBGR.TXT' has been started.
    20171026/174851.593 - U02000107 Connection object 'CONN.WEBSERVICESOAP.SOAPCONNECTION.NEW.1' with time stamp '1509019717000' was successfully transferred to the Agent.
    20171026/174852.280 - U00029001 Report '1196018' ended normally.
    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

    Thanks
    Selva


  • 2.  WebService- SOAP 'class javax.xml.stream.XMLInputFactory cannot be created'

    Posted 10-30-2017 03:13 AM
    Which version of the WebService Agent are you using? 
    This error looks like there is a problem parsing the SOAP request on the agent. 
    In the latest version of the WS Agent, there is a possibilty to send an XML request with out SOAP parsing to the SOAP endpoint. 


  • 3.  WebService- SOAP 'class javax.xml.stream.XMLInputFactory cannot be created'

    Posted 11-09-2017 07:51 AM
    Thanks Robert.

    Sorry .I forgot to update.  Issue resolved. Incompatibility with the version. Now i am able to send and receive response via SOAP webservice