I have a service assembly deployed into ServiceMix.  I modified the
client.html shipped with the wsdl-first example and when I invoke the web
service, I receive the exception below.  I've attached the service assembly
and the client.html.  Please help.  Thanks

STATUS: 500
<?xml version='1.0' encoding='UTF-8'?><env:Envelope
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/";><env:Body><env:Fault><faultcode>env:Server</faultcode><faultstring>Could
not read XML stream.. Nested exception is
com.ctc.wstx.exc.WstxParsingException: Expected a text token, got
START_ELEMENT.&#xd;
 at [row,col {unknown-source}]:
[6,16]</faultstring><detail><stack>org.codehaus.xfire.fault.XFireFault:
Could not read XML stream.. Nested exception is
com.ctc.wstx.exc.WstxParsingException: Expected a text token, got
START_ELEMENT.
 at [row,col {unknown-source}]: [6,16]
        at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
        at
org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:70)
        at
org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
        at
org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java:113)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:489)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:441)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:595)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:174)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:176)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        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.codehaus.xfire.XFireRuntimeException: Could not read XML
stream.. Nested exception is com.ctc.wstx.exc.WstxParsingException: Expected
a text token, got START_ELEMENT.
 at [row,col {unknown-source}]: [6,16]
        at
org.codehaus.xfire.aegis.stax.ElementReader.getValue(ElementReader.java:128)
        at
org.codehaus.xfire.aegis.type.basic.StringType.readObject(StringType.java:21)
        at
org.codehaus.xfire.aegis.AegisBindingProvider.readParameter(AegisBindingProvider.java:162)
        at
org.codehaus.xfire.service.binding.AbstractBinding.read(AbstractBinding.java:206)
        at
org.codehaus.xfire.service.binding.DocumentBinding.readMessage(DocumentBinding.java:32)
        at
org.codehaus.xfire.jaxws.JAXWSOperationBinding.readMessage(JAXWSOperationBinding.java:182)
        at
org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
        at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
        at
org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
        ... 12 more
Caused by: com.ctc.wstx.exc.WstxParsingException: Expected a text token, got
START_ELEMENT.
 at [row,col {unknown-source}]: [6,16]
        at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:451)
        at
com.ctc.wstx.sr.BasicStreamReader.getElementText(BasicStreamReader.java:672)
        at
javax.xml.stream.util.StreamReaderDelegate.getElementText(StreamReaderDelegate.java:71)
        at
javax.xml.stream.util.StreamReaderDelegate.getElementText(StreamReaderDelegate.java:71)
        at
org.codehaus.xfire.util.stax.DepthXMLStreamReader.getElementText(DepthXMLStreamReader.java:86)
        at
org.codehaus.xfire.util.stax.DepthXMLStreamReader.getElementText(DepthXMLStreamReader.java:86)
        at
org.codehaus.xfire.aegis.stax.ElementReader.getValue(ElementReader.java:122)
        ... 20 more
</stack></detail></env:Fault></env:Body></env:Envelope  
http://www.nabble.com/file/p11866123/stock-quote-sa.zip stock-quote-sa.zip 
http://www.nabble.com/file/p11866123/client.html client.html 
-- 
View this message in context: 
http://www.nabble.com/Getting-WstxParsingException-when-invoking-web-service-tf4171004s12049.html#a11866123
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to