You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by hgkrt <hg...@yahoo.co.jp> on 2007/06/13 09:50:27 UTC

Re: JSR181 Problem

Hi, i encounter this problem today.. i can display the wsdl via access
http://localhost:8192/service/?wsdl

but i use soapui to send message to my web service , 

and i get the same error like this:



> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>    <soapenv:Body>
>       <soapenv:Fault>
>          <faultcode>soapenv:Server</faultcode>
>          <faultstring>Current state not START_ELEMENT, END_ELEMENT or
> ENTITY_REFERENCE</faultstring>
>          <detail>
>             <stack>org.codehaus.xfire.fault.XFireFault: Current state not
> START_ELEMENT, END_ELEMENT or ENTITY_REFERENCE
> 	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:110)
> 	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:593)
> 	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:619)
> Caused by: java.lang.IllegalStateException: Current state not
> START_ELEMENT, END_ELEMENT or ENTITY_REFERENCE
> 	at
> com.ctc.wstx.sr.BasicStreamReader.getLocalName(BasicStreamReader.java:708)
> 	at
> org.codehaus.xfire.util.stax.DepthXMLStreamReader.getLocalName(DepthXMLStreamReader.java:100)
> 	at
> org.codehaus.xfire.aegis.stax.ElementReader.&lt;init>(ElementReader.java:58)
> 	at
> org.codehaus.xfire.aegis.stax.ElementReader.&lt;init>(ElementReader.java:69)
> 	at
> org.apache.servicemix.jsr181.xfire.ServiceFactoryHelper$FixedJAXWSOperationBinding.readMessage(ServiceFactoryHelper.java:403)
> 	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</stack>
>          </detail>
>       </soapenv:Fault>
>    </soapenv:Body>
> </soapenv:Envelope>
> 




bsnyder wrote:
> 
> On 4/26/07, Mahehs Patil <ma...@techmahindra.com> wrote:
>>
>> Hi all,
>>
>> Can we bind two JSR181 service units with Http service unit ?
>>
>> I am trying to develop a service assembly havng two JSR181 sevice units,
>> I bind these service units with Http service unit. I mentioned both of
>> JSR181
>> service units in Http service units xbean.xml
>>
>> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>>        xmlns:hello="http://www.org.apache.samples/Hello/"
>>            xmlns:food="http://motorola.com/food">
>>
>>   <http:endpoint service="hello:Hello"
>>                  endpoint="HelloSOAP"
>>                  role="consumer"
>>                  locationURI="http://0.0.0.0:5252/service/Hello"
>>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>>                  soap="true" />
>>   <http:endpoint service="food:food"
>>                  endpoint="foodSOAP"
>>                  role="consumer"
>>                  locationURI="http://0.0.0.0:8686/food"
>>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>>                  soap="true" />
>>
>> </beans>
>>
>> Both JSR181's wsdl files are shown in Internet Explorer
>> http://0.0.0.0:8686/food/MAIN.WSDL
>> http://0.0.0.0:5252/Hello/MAIN.WSDL
>>
>>
>>
>> When I test with food endpoint ,it works fine,
>> but for Hello endpoint testing it throws an error
>>
>> ERROR - DefaultFaultHandler            - Fault occurred!
>> java.lang.IllegalStateException: Current state not START_ELEMENT,
>> END_ELEMENT or ENTITY_REFERENCE
>>         at
>> com.ctc.wstx.sr.BasicStreamReader.getLocalName(BasicStreamReader.java:708)
>>         at
>> org.codehaus.xfire.util.stax.DepthXMLStreamReader.getLocalName(DepthXMLStreamReader.java:
>> 100)
>>         at
>> org.codehaus.xfire.aegis.stax.ElementReader.<init>(ElementReader.java:58)
>>         at
>> org.codehaus.xfire.aegis.stax.ElementReader.<init>(ElementReader.java:69)
>>         at
>> org.apache.servicemix.jsr181.xfire.ServiceFactoryHelper$FixedJAXWSOperationBinding.readMe
>> ssage(ServiceFactoryHelper.java:403)
>>         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)
>>         at
>> org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
>>         at
>> org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java
>> :110)
>>         at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:489)
>>         at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:4
>> 41)
>>         at
>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>         at
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImp
>> l.java:593)
>>         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(ThreadPo
>> olExecutor.java:665)
>>         at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolEx
>> ecutor.java:690)
>>         at java.lang.Thread.run(Thread.java:595)
> 
> The exception above is an error in parsing some XML. How are you
> sending test messages to these services? If you're not using it
> already, I highly recommend using SoapUI (http://soapui.org/) for
> sending SOAP messages. It's makes it extremely easy.
> 
> Bruce
> -- 
> perl -e 'print
> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
> 
> Apache Geronimo - http://geronimo.apache.org/
> Apache ActiveMQ - http://activemq.org/
> Apache ServiceMix - http://servicemix.org/
> Castor - http://castor.org/
> 
> 

-- 
View this message in context: http://www.nabble.com/JSR181-Problem-tf3655577s12049.html#a11094460
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: JSR181 Problem

Posted by Gert Vanthienen <ge...@skynet.be>.
L.S.,

This problem is already reported a few times, but I still have no idea 
how to solve it.  On http://issues.apache.org/activemq/browse/SM-787 
there is comment that seems to suggest that if you enable DEBUG logging, 
the problem disappears.  Could you verify that for me?  If you can 
provide any additional information or stacktraces from the logging that 
might help me pinpoint the problem, please post them as well...


Gert

hgkrt wrote:
> Hi, i encounter this problem today.. i can display the wsdl via access
> http://localhost:8192/service/?wsdl
> 
> but i use soapui to send message to my web service , 
> 
> and i get the same error like this:
> 
> 
> 
>> <soapenv:Envelope
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>>    <soapenv:Body>
>>       <soapenv:Fault>
>>          <faultcode>soapenv:Server</faultcode>
>>          <faultstring>Current state not START_ELEMENT, END_ELEMENT or
>> ENTITY_REFERENCE</faultstring>
>>          <detail>
>>             <stack>org.codehaus.xfire.fault.XFireFault: Current state not
>> START_ELEMENT, END_ELEMENT or ENTITY_REFERENCE
>> 	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:110)
>> 	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:593)
>> 	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:619)
>> Caused by: java.lang.IllegalStateException: Current state not
>> START_ELEMENT, END_ELEMENT or ENTITY_REFERENCE
>> 	at
>> com.ctc.wstx.sr.BasicStreamReader.getLocalName(BasicStreamReader.java:708)
>> 	at
>> org.codehaus.xfire.util.stax.DepthXMLStreamReader.getLocalName(DepthXMLStreamReader.java:100)
>> 	at
>> org.codehaus.xfire.aegis.stax.ElementReader.&lt;init>(ElementReader.java:58)
>> 	at
>> org.codehaus.xfire.aegis.stax.ElementReader.&lt;init>(ElementReader.java:69)
>> 	at
>> org.apache.servicemix.jsr181.xfire.ServiceFactoryHelper$FixedJAXWSOperationBinding.readMessage(ServiceFactoryHelper.java:403)
>> 	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</stack>
>>          </detail>
>>       </soapenv:Fault>
>>    </soapenv:Body>
>> </soapenv:Envelope>
>>
> 
> 
> 
> 
> bsnyder wrote:
>> On 4/26/07, Mahehs Patil <ma...@techmahindra.com> wrote:
>>> Hi all,
>>>
>>> Can we bind two JSR181 service units with Http service unit ?
>>>
>>> I am trying to develop a service assembly havng two JSR181 sevice units,
>>> I bind these service units with Http service unit. I mentioned both of
>>> JSR181
>>> service units in Http service units xbean.xml
>>>
>>> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>>>        xmlns:hello="http://www.org.apache.samples/Hello/"
>>>            xmlns:food="http://motorola.com/food">
>>>
>>>   <http:endpoint service="hello:Hello"
>>>                  endpoint="HelloSOAP"
>>>                  role="consumer"
>>>                  locationURI="http://0.0.0.0:5252/service/Hello"
>>>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>>>                  soap="true" />
>>>   <http:endpoint service="food:food"
>>>                  endpoint="foodSOAP"
>>>                  role="consumer"
>>>                  locationURI="http://0.0.0.0:8686/food"
>>>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>>>                  soap="true" />
>>>
>>> </beans>
>>>
>>> Both JSR181's wsdl files are shown in Internet Explorer
>>> http://0.0.0.0:8686/food/MAIN.WSDL
>>> http://0.0.0.0:5252/Hello/MAIN.WSDL
>>>
>>>
>>>
>>> When I test with food endpoint ,it works fine,
>>> but for Hello endpoint testing it throws an error
>>>
>>> ERROR - DefaultFaultHandler            - Fault occurred!
>>> java.lang.IllegalStateException: Current state not START_ELEMENT,
>>> END_ELEMENT or ENTITY_REFERENCE
>>>         at
>>> com.ctc.wstx.sr.BasicStreamReader.getLocalName(BasicStreamReader.java:708)
>>>         at
>>> org.codehaus.xfire.util.stax.DepthXMLStreamReader.getLocalName(DepthXMLStreamReader.java:
>>> 100)
>>>         at
>>> org.codehaus.xfire.aegis.stax.ElementReader.<init>(ElementReader.java:58)
>>>         at
>>> org.codehaus.xfire.aegis.stax.ElementReader.<init>(ElementReader.java:69)
>>>         at
>>> org.apache.servicemix.jsr181.xfire.ServiceFactoryHelper$FixedJAXWSOperationBinding.readMe
>>> ssage(ServiceFactoryHelper.java:403)
>>>         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)
>>>         at
>>> org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
>>>         at
>>> org.apache.servicemix.jsr181.Jsr181ExchangeProcessor.process(Jsr181ExchangeProcessor.java
>>> :110)
>>>         at
>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:489)
>>>         at
>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:4
>>> 41)
>>>         at
>>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>>         at
>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImp
>>> l.java:593)
>>>         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(ThreadPo
>>> olExecutor.java:665)
>>>         at
>>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolEx
>>> ecutor.java:690)
>>>         at java.lang.Thread.run(Thread.java:595)
>> The exception above is an error in parsing some XML. How are you
>> sending test messages to these services? If you're not using it
>> already, I highly recommend using SoapUI (http://soapui.org/) for
>> sending SOAP messages. It's makes it extremely easy.
>>
>> Bruce
>> -- 
>> perl -e 'print
>> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>> );'
>>
>> Apache Geronimo - http://geronimo.apache.org/
>> Apache ActiveMQ - http://activemq.org/
>> Apache ServiceMix - http://servicemix.org/
>> Castor - http://castor.org/
>>
>>
>