You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Sergio Salmerón (JIRA)" <ji...@apache.org> on 2008/08/21 12:09:52 UTC

[jira] Commented: (SM-787) IllegalStateException when reading XML message

    [ https://issues.apache.org/activemq/browse/SM-787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45104#action_45104 ] 

Sergio Salmerón commented on SM-787:
------------------------------------

Hello, I'm using ServiceMix 3.2.1 and the problem persists. I'm using a proxy inside a JSR181 to call another JSR181. It works with log level = DEBUG but not with log level = INFO

Is there any known workaround?

Thanks,
Sergio

> IllegalStateException when reading XML message
> ----------------------------------------------
>
>                 Key: SM-787
>                 URL: https://issues.apache.org/activemq/browse/SM-787
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-jsr181
>    Affects Versions: 3.1
>            Reporter: Horst Studer
>
> When sending a message to a JSR-181 service unit, I get an IllegalStateException
> thown by the Woodstox XML Processor (see stack trace).
> It is important to note that this exception does NOT occur if the log-level for org.apache.servicemix
> is set to DEBUG. But it occurs if the log-level is INFO. This means that writing the message to
> the log seams to prevent the IllegalStateException from happening.
> Here is the stack trace:
> 17:09:14,806 | ERROR | pool-flow.seda.servicemix-jsr181-thread-1 | DefaultFaultHandler      | re.handler.DefaultFaultHandler   35 | 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.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)
> 	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:595)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Commented: (SM-787) IllegalStateException when reading XML message

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

The best workaround would probably be to switch to the CXF components.  
A lot of the new development for web services support is going into 
these components, deprecating the JSR-181 component.

Regards,

Gert

Sergio Salmerón (JIRA) wrote:
>     [ https://issues.apache.org/activemq/browse/SM-787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45104#action_45104 ] 
>
> Sergio Salmerón commented on SM-787:
> ------------------------------------
>
> Hello, I'm using ServiceMix 3.2.1 and the problem persists. I'm using a proxy inside a JSR181 to call another JSR181. It works with log level = DEBUG but not with log level = INFO
>
> Is there any known workaround?
>
> Thanks,
> Sergio
>
>   
>> IllegalStateException when reading XML message
>> ----------------------------------------------
>>
>>                 Key: SM-787
>>                 URL: https://issues.apache.org/activemq/browse/SM-787
>>             Project: ServiceMix
>>          Issue Type: Bug
>>          Components: servicemix-jsr181
>>    Affects Versions: 3.1
>>            Reporter: Horst Studer
>>
>> When sending a message to a JSR-181 service unit, I get an IllegalStateException
>> thown by the Woodstox XML Processor (see stack trace).
>> It is important to note that this exception does NOT occur if the log-level for org.apache.servicemix
>> is set to DEBUG. But it occurs if the log-level is INFO. This means that writing the message to
>> the log seams to prevent the IllegalStateException from happening.
>> Here is the stack trace:
>> 17:09:14,806 | ERROR | pool-flow.seda.servicemix-jsr181-thread-1 | DefaultFaultHandler      | re.handler.DefaultFaultHandler   35 | 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.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)
>> 	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:595)
>>     
>
>