org.apache.axis2.AxisFault

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When webservice_esb_bpel is deployed using ant, the components of the example are deployed separately - order-manager.war, order-manager-service.jar, shipping-service.jar and Quickstart_webservice_esb_bpel.esb. However, when deployed via Eclipse as a single .esb, so the jars and war are contained within the .esb (at the top level), they do not get deployed by default. The attached jboss-structure.xml file needs to be placed in the .esb META-INF folder to enable the various artifacts to be detected by the deployer. However when this is done, the example fails to run - after the example message is sent, it results in: 10:01:52,411 INFO [STDOUT] [Quickstart_webservice_bpel] Message before invoking 'ABI_OrderManager' endpoint: 10:01:52,463 INFO [STDOUT] [<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header> <addr:To xmlns:addr="http://www.w3.org/2005/08/addressing">http://localhost:8865</addr:To> <addr:Action xmlns:addr="http://www.w3.org/2005/08/addressing"/> <addr:ReplyTo xmlns:addr="http://www.w3.org/2005/08/addressing"> <addr:Address>http://www.w3.org/2005/08/addressing/anonymous</addr:Address> </addr:ReplyTo> <addr:MessageID xmlns:addr="http://www.w3.org/2005/08/addressing">uuid:hqejbhcnphr4kr9q5fguj1</addr:MessageID> <odesession:callback xmlns:odesession="http://www.intalio.com/type/session"> <addr:Address xmlns:addr="http://www.w3.org/2005/08/addressing">http://localhost:8080/bpel/processes/RetailerCallback</addr:Address> <odesession:session>hqejbhcnphr4kr9q5fguiv</odesession:session> </odesession:callback> </soapenv:Header> <soapenv:Body> <customerOrder xmlns="http://org.jboss.esb/quickstarts/bpel/ABI_OrderManager"> <ns:header xmlns:ns="http://org.jboss.esb/quickstarts/bpel/ABI_OrderManager"> <ns1:billTerms xmlns:ns1="http://www.jboss.org/samples/bpel/CustomerOrder.xsd"/> <ns1:billTo xmlns:ns1="http://www.jboss.org/samples/bpel/CustomerOrder.xsd"> <ns1:address> <ns1:city>Shelton</ns1:city> <ns1:state>CT</ns1:state> <ns1:street1>160 Active Lane</ns1:street1> <ns1:street2/> <ns1:zip>06484</ns1:zip> </ns1:address> <ns1:company>Active Steel</ns1:company> <ns1:contact> <ns1:email>bob@activeSteel.com</ns1:email> <ns1:fax>(203) 555-1235</ns1:fax> <ns1:name>Bob Active</ns1:name> <ns1:phone>(203) 555-1234</ns1:phone> </ns1:contact> </ns1:billTo> <ns1:customerNumber xmlns:ns1="http://www.jboss.org/samples/bpel/CustomerOrder.xsd">123456</ns1:customerNumber> <ns1:orderDate xmlns:ns1="http://www.jboss.org/samples/bpel/CustomerOrder.xsd">2006-05-01T00:00:00.000Z </ns1:orderDate> <ns1:orderTotal xmlns:ns1="http://www.jboss.org/samples/bpel/CustomerOrder.xsd">88500.00</ns1:orderTotal> <ns1:poNumber xmlns:ns1="http://www.jboss.org/samples/bpel/CustomerOrder.xsd">PO000123</ns1:poNumber> <ns1:shipTerms xmlns:ns1="http://www.jboss.org/samples/bpel/CustomerOrder.xsd"/> <ns1:shipTo xmlns:ns1="http://www.jboss.org/samples/bpel/CustomerOrder.xsd"> <ns1:address> <ns1:city>Shelton</ns1:city> <ns1:state>CT</ns1:state> <ns1:street1>160 Active Lane</ns1:street1> <ns1:street2/> <ns1:zip>06484</ns1:zip> </ns1:address> <ns1:company>Active Steel</ns1:company> <ns1:contact> <ns1:email>bob@activeSteel.com</ns1:email> <ns1:fax>(203) 555-1235</ns1:fax> <ns1:name>Bob Active</ns1:name> <ns1:phone>(203) 555-1234</ns1:phone> </ns1:contact> </ns1:shipTo> </ns:header> <ns:items xmlns:ns="http://org.jboss.esb/quickstarts/bpel/ABI_OrderManager"> <ns1:description xmlns:ns1="http://www.jboss.org/samples/bpel/CustomerOrder.xsd">Flat 16 feet 100 count</ns1:description> <ns1:extensionAmount xmlns:ns1="http://www.jboss.org/samples/bpel/CustomerOrder.xsd">24500.00</ns1:extensionAmount> <ns1:partNumber xmlns:ns1="http://www.jboss.org/samples/bpel/CustomerOrder.xsd">FLT16100</ns1:partNumber> <ns1:price xmlns:ns1="http://www.jboss.org/samples/bpel/CustomerOrder.xsd">490.00</ns1:price> <ns1:quantity xmlns:ns1="http://www.jboss.org/samples/bpel/CustomerOrder.xsd">50</ns1:quantity> </ns:items> </customerOrder> </soapenv:Body> </soapenv:Envelope> ]. 10:01:52,583 INFO [STDOUT] ERROR - SoapExternalService.invoke(205) | Error sending message to Axis2 for ODE mex {PartnerRoleMex#hqejbhcnphr4kr9q5fguiw [PID null] calling org.apache.ode.il.epr.WSAEndpoint@4dee00.customerOrder(...)} org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'o' (code 111) in prolog; expected '<' at [row,col {unknown-source}]: [1,1] at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:90) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:353) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at org.apache.ode.axis2.soapbinding.SoapExternalService.invoke(SoapExternalService.java:182) at org.apache.ode.axis2.MessageExchangeContextImpl.invokePartnerUnreliable(MessageExchangeContextImpl.java:68) at org.apache.ode.bpel.engine.PartnerLinkPartnerRoleImpl$UnreliableInvoker.run(PartnerLinkPartnerRoleImpl.java:345) at org.apache.ode.bpel.engine.ODEProcess$ProcessRunnable.run(ODEProcess.java:1225) at org.apache.ode.bpel.engine.BpelServerImpl$ServerRunnable.run(BpelServerImpl.java:927) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'o' (code 111) in prolog; expected '<' at [row,col {unknown-source}]: [1,1] at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:249) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:156) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:105) at org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:677) at org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:182) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:112) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:88) ... 15 more Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'o' (code 111) in prolog; expected '<' at [row,col {unknown-source}]: [1,1] at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:623) at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2047) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069) at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:506) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:161) ... 21 more 10:01:52,594 INFO [STDOUT] DEBUG - BpelInstanceWorker.enqueue(55) | enqueue: for instance {http://www.jboss.org/samples/bpel/OrderProcess.bpel}OrderProcess-1#163840: org.apache.ode.bpel.engine.BpelServerImpl$TransactedRunnable@8b7a9f 10:01:52,607 INFO [STDOUT] DEBUG - ODEProcess.enqueueRunnable(1136) | enqueuRunnable for process {http://www.jboss.org/samples/bpel/OrderProcess.bpel}OrderProcess-1: {BpelInstanceWorker for {http://www.jboss.org/samples/bpel/OrderProcess.bp
    via by Gary Brown,
  • Axis Java - User - Help with Axis Fault
    via by Unknown author,
  • Following exception thrown when synapse trying to process a soap envelope which includes MIME boundary in the http headers. ================================================================================================================================== [I/O reactor worker thread 1] DEBUG Axis2HttpRequest - get source channel of the pipe on which the outgoing response is written [I/O reactor worker thread 1] DEBUG ConnectionPool - Released a connection to host: localhost on port : 8080 to the connection pool of current size : 1 [HttpClientWorker-1] ERROR ClientWorker - Fault creating response SOAP envelope org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '-' (code 45) in prolog; expected '<' at [row,col {unknown-source}]: [1,1]; nested exception is: org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected ch aracter '-' (code 45) in prolog; expected '<' at [row,col {unknown-source}]: [1,1] at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:126) at org.apache.axis2.transport.nhttp.ClientWorker.run(ClientWorker.java:115) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690) at java.lang.Thread.run(Thread.java:595) Caused by: org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '-' (code 45) in prolog; expected '<' at [row,col {unknown-source}]: [1,1] at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:194) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:159) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.identifySOAPVersion(StAXSOAPModelBuilder.java:133) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java: 108) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:120) ... 4 more Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '-' (code 45) in prolog; expected '<' at [row,col {unknown-source}]: [1,1] at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:623) at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2047) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:111) ... 8 more =============================================================================================== The soap response with mime boundary is given below. This message cannot be parsed by synapse. --MIMEBoundaryurn_uuid_108121878C47E694A61174024721520 content-type: application/xop+xml; charset=UTF-8; type="text/xml" content-transfer-encoding: binary content-id: <0.urn:uuid:108121878C47E694A61174024721521@apache.org> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:multiplyResponse xmlns:ns="http://ws.apache.org/axis2/xsd"><ns:return>200.0</ns:return></ns:multiplyResponse></soapenv:Body></soapenv:Envelope> --MIMEBoundaryurn_uuid_108121878C47E694A61174024721520-- Steps to reproduce: ---------------------------- 1. Deploy a service on axis2/tomcat 2. Globally enable MTOM in axis2.xml 3. Send a request to the service via Synapse
    via by Charitha Kankanamge,
    • org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'o' (code 111) in prolog; expected '<' at [row,col {unknown-source}]: [1,1] at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:90) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:353) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at org.apache.ode.axis2.soapbinding.SoapExternalService.invoke(SoapExternalService.java:182) at org.apache.ode.axis2.MessageExchangeContextImpl.invokePartnerUnreliable(MessageExchangeContextImpl.java:68) at org.apache.ode.bpel.engine.PartnerLinkPartnerRoleImpl$UnreliableInvoker.run(PartnerLinkPartnerRoleImpl.java:345) at org.apache.ode.bpel.engine.ODEProcess$ProcessRunnable.run(ODEProcess.java:1225) at org.apache.ode.bpel.engine.BpelServerImpl$ServerRunnable.run(BpelServerImpl.java:927) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'o' (code 111) in prolog; expected '<' at [row,col {unknown-source}]: [1,1] at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:249) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:156) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:105) at org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:677) at org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:182) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:112) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:88) ... 15 more Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'o' (code 111) in prolog; expected '<' at [row,col {unknown-source}]: [1,1] at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:623) at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2047) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069) at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:506) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:161) ... 21 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    jpveejpvee
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    9 more bugmates