org.mule.umo.provider.DispatchException: Failed to route event via endpoint: MuleEndpoint{connector=org.mule.providers.soap.xfire.XFireConnector@40ece0, endpointUri=http://localhost:82/ListOrders?method=query, transformer=null, name='_endpoint.http.localhost.82.ListOrders.method-query', type='sender', properties={method=query}, transactionConfig=Transaction{factory=null, action=NONE, timeout=30000}, filter=null, deleteUnacceptedMessages=false, initialised=false, securityFilter=null, synchronous=null, initialState=started, createConnector=0, remoteSync=null, remoteSyncTimeout=10000, endpointEncoding=null}. Message payload is of type: java.lang.String

MuleSoft JIRA | Marie Claire Rizzo | 1 decade ago
  1. 0

    In my set-up, the Web Service will pass on a string containing the client code from clients to the Generic Service. This will use the data to query a database and return a result in XML format (using the ObjectToXML transformer). The XML will be passed back to the web service which may convert it into a custom format. To do this, I'm using the XsltTransformer. I tried the same set up with both axis and xfire, but whereas it succeeds on Axis, with the correct data being returned to the client, it fails on Xfire, giving the following error. org.mule.umo.provider.DispatchException: Failed to route event via endpoint: MuleEndpoint{connector=org.mule.providers.soap.xfire.XFireConnector@40ece0, endpointUri=http://localhost:82/ListOrders?method=query, transformer=null, name='_endpoint.http.localhost.82.ListOrders.method-query', type='sender', properties={method=query}, transactionConfig=Transaction{factory=null, action=NONE, timeout=30000}, filter=null, deleteUnacceptedMessages=false, initialised=false, securityFilter=null, synchronous=null, initialState=started, createConnector=0, remoteSync=null, remoteSyncTimeout=10000, endpointEncoding=null}. Message payload is of type: java.lang.String at org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:217) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:336) at org.mule.extras.client.MuleClient.send(MuleClient.java:738) at org.mule.extras.client.MuleClient.send(MuleClient.java:715) at org.mule.extras.client.MuleClient.send(MuleClient.java:668) at com.mulesource.webservices.tests.WebServiceTestCase.testSendRequestToWebService(WebServiceTestCase.java:10) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: org.codehaus.xfire.fault.XFireFault: Illegal to have multiple roots (start tag in epilog?). at [row,col {unknown-source}]: [3,2] at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89) at org.codehaus.xfire.client.Client.onReceive(Client.java:386) at org.mule.providers.soap.xfire.transport.MuleUniversalChannel.sendViaClient(MuleUniversalChannel.java:317) at org.mule.providers.soap.xfire.transport.MuleUniversalChannel.send(MuleUniversalChannel.java:136) at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26) at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75) at org.codehaus.xfire.client.Client.invoke(Client.java:335) at org.codehaus.xfire.client.Client.invoke(Client.java:349) at org.mule.providers.soap.xfire.XFireMessageDispatcher.doSend(XFireMessageDispatcher.java:160) at org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:198) ... 23 more Caused by: com.ctc.wstx.exc.WstxParsingException: Illegal to have multiple roots (start tag in epilog?). at [row,col {unknown-source}]: [3,2] at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:451) at com.ctc.wstx.sr.BasicStreamReader.handleExtraRoot(BasicStreamReader.java:2042) at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:1957) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1056) at org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:44) at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) at org.codehaus.xfire.client.Client.onReceive(Client.java:382) ... 32 more This is thrown after that the message is transformed by the XsltTransformer.

    MuleSoft JIRA | 1 decade ago | Marie Claire Rizzo
    org.mule.umo.provider.DispatchException: Failed to route event via endpoint: MuleEndpoint{connector=org.mule.providers.soap.xfire.XFireConnector@40ece0, endpointUri=http://localhost:82/ListOrders?method=query, transformer=null, name='_endpoint.http.localhost.82.ListOrders.method-query', type='sender', properties={method=query}, transactionConfig=Transaction{factory=null, action=NONE, timeout=30000}, filter=null, deleteUnacceptedMessages=false, initialised=false, securityFilter=null, synchronous=null, initialState=started, createConnector=0, remoteSync=null, remoteSyncTimeout=10000, endpointEncoding=null}. Message payload is of type: java.lang.String
  2. 0

    In my set-up, the Web Service will pass on a string containing the client code from clients to the Generic Service. This will use the data to query a database and return a result in XML format (using the ObjectToXML transformer). The XML will be passed back to the web service which may convert it into a custom format. To do this, I'm using the XsltTransformer. I tried the same set up with both axis and xfire, but whereas it succeeds on Axis, with the correct data being returned to the client, it fails on Xfire, giving the following error. org.mule.umo.provider.DispatchException: Failed to route event via endpoint: MuleEndpoint{connector=org.mule.providers.soap.xfire.XFireConnector@40ece0, endpointUri=http://localhost:82/ListOrders?method=query, transformer=null, name='_endpoint.http.localhost.82.ListOrders.method-query', type='sender', properties={method=query}, transactionConfig=Transaction{factory=null, action=NONE, timeout=30000}, filter=null, deleteUnacceptedMessages=false, initialised=false, securityFilter=null, synchronous=null, initialState=started, createConnector=0, remoteSync=null, remoteSyncTimeout=10000, endpointEncoding=null}. Message payload is of type: java.lang.String at org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:217) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:336) at org.mule.extras.client.MuleClient.send(MuleClient.java:738) at org.mule.extras.client.MuleClient.send(MuleClient.java:715) at org.mule.extras.client.MuleClient.send(MuleClient.java:668) at com.mulesource.webservices.tests.WebServiceTestCase.testSendRequestToWebService(WebServiceTestCase.java:10) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: org.codehaus.xfire.fault.XFireFault: Illegal to have multiple roots (start tag in epilog?). at [row,col {unknown-source}]: [3,2] at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89) at org.codehaus.xfire.client.Client.onReceive(Client.java:386) at org.mule.providers.soap.xfire.transport.MuleUniversalChannel.sendViaClient(MuleUniversalChannel.java:317) at org.mule.providers.soap.xfire.transport.MuleUniversalChannel.send(MuleUniversalChannel.java:136) at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26) at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75) at org.codehaus.xfire.client.Client.invoke(Client.java:335) at org.codehaus.xfire.client.Client.invoke(Client.java:349) at org.mule.providers.soap.xfire.XFireMessageDispatcher.doSend(XFireMessageDispatcher.java:160) at org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:198) ... 23 more Caused by: com.ctc.wstx.exc.WstxParsingException: Illegal to have multiple roots (start tag in epilog?). at [row,col {unknown-source}]: [3,2] at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:451) at com.ctc.wstx.sr.BasicStreamReader.handleExtraRoot(BasicStreamReader.java:2042) at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:1957) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1056) at org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:44) at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) at org.codehaus.xfire.client.Client.onReceive(Client.java:382) ... 32 more This is thrown after that the message is transformed by the XsltTransformer.

    MuleSoft JIRA | 1 decade ago | Marie Claire Rizzo
    org.mule.umo.provider.DispatchException: Failed to route event via endpoint: MuleEndpoint{connector=org.mule.providers.soap.xfire.XFireConnector@40ece0, endpointUri=http://localhost:82/ListOrders?method=query, transformer=null, name='_endpoint.http.localhost.82.ListOrders.method-query', type='sender', properties={method=query}, transactionConfig=Transaction{factory=null, action=NONE, timeout=30000}, filter=null, deleteUnacceptedMessages=false, initialised=false, securityFilter=null, synchronous=null, initialState=started, createConnector=0, remoteSync=null, remoteSyncTimeout=10000, endpointEncoding=null}. Message payload is of type: java.lang.String
  3. 0

    TCP transport in Proxy wso2 esb

    Stack Overflow | 3 years ago | Alper
    com.ctc.wstx.exc.WstxParsingException: Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [2,5]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The rule 'OCLint:feature envy' does not exist.

    GitHub | 3 years ago | rajasekaran2015
    com.ctc.wstx.exc.WstxParsingException: Unexpected close tag ; expected . at [row,col {unknown-source}]: [80,5]
  6. 0

    Java Metro Client Throwing WstxParsingException

    Stack Overflow | 4 years ago | sdoca
    com.ctc.wstx.exc.WstxParsingException: Illegal character entity: expansion character (code 0x3) not a valid XML character at [row,col {unknown-source}]: [2,4154]]

    5 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.ctc.wstx.exc.WstxParsingException

      Illegal to have multiple roots (start tag in epilog?). at [row,col {unknown-source}]: [3,2]

      at com.ctc.wstx.sr.StreamScanner.throwParseError()
    2. Woodstox
      BasicStreamReader.next
      1. com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:451)
      2. com.ctc.wstx.sr.BasicStreamReader.handleExtraRoot(BasicStreamReader.java:2042)
      3. com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:1957)
      4. com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1056)
      4 frames
    3. XFire
      Client.onReceive
      1. org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:44)
      2. org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
      3. org.codehaus.xfire.client.Client.onReceive(Client.java:382)
      3 frames
    4. org.mule.providers
      MuleUniversalChannel.send
      1. org.mule.providers.soap.xfire.transport.MuleUniversalChannel.sendViaClient(MuleUniversalChannel.java:317)
      2. org.mule.providers.soap.xfire.transport.MuleUniversalChannel.send(MuleUniversalChannel.java:136)
      2 frames
    5. XFire
      Client.invoke
      1. org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
      2. org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
      3. org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75)
      4. org.codehaus.xfire.client.Client.invoke(Client.java:335)
      5. org.codehaus.xfire.client.Client.invoke(Client.java:349)
      5 frames
    6. org.mule.providers
      AbstractMessageDispatcher.send
      1. org.mule.providers.soap.xfire.XFireMessageDispatcher.doSend(XFireMessageDispatcher.java:160)
      2. org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:198)
      2 frames
    7. org.mule.impl
      MuleSession.sendEvent
      1. org.mule.impl.MuleSession.sendEvent(MuleSession.java:336)
      1 frame
    8. org.mule.extras
      MuleClient.send
      1. org.mule.extras.client.MuleClient.send(MuleClient.java:738)
      2. org.mule.extras.client.MuleClient.send(MuleClient.java:715)
      3. org.mule.extras.client.MuleClient.send(MuleClient.java:668)
      3 frames
    9. com.mulesource.webservices
      WebServiceTestCase.testSendRequestToWebService
      1. com.mulesource.webservices.tests.WebServiceTestCase.testSendRequestToWebService(WebServiceTestCase.java:10)
      1 frame
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    11. JUnit
      TestSuite.run
      1. junit.framework.TestCase.runTest(TestCase.java:154)
      2. junit.framework.TestCase.runBare(TestCase.java:127)
      3. junit.framework.TestResult$1.protect(TestResult.java:106)
      4. junit.framework.TestResult.runProtected(TestResult.java:124)
      5. junit.framework.TestResult.run(TestResult.java:109)
      6. junit.framework.TestCase.run(TestCase.java:118)
      7. junit.framework.TestSuite.runTest(TestSuite.java:208)
      8. junit.framework.TestSuite.run(TestSuite.java:203)
      8 frames
    12. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
      2. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
      6. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
      6 frames