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

Noseda Anne commented on SM-1783:
---------------------------------

Hello,

I'm facing the same issue with servicemix 3.3.1.0-fuse and the 
servicemix-wsn2005 component.
When the log4j logger is configured with DEBUG level like this :
<logger name="org.apache.servicemix">
                <level value="DEBUG"/>          
                <appender-ref ref="FILE_ORG" />
                <appender-ref ref="CONSOLE" />
</logger>
it works perfectly but when I turn this level to INFO, I have this error :
13:59:34,502 | ERROR | pool-flow.seda.servicemix-wsn2005-etnic-thread-1 | 
WSNComponent             | ervicemix.common.BaseLifeCycle   48 | Error 
processing exchange InOut[
  id: ID:192.168.80.103-11ff07628fc-2:0
  status: Active
  role: provider
  service: {http://servicemix.org/wsnotification}NotificationBroker
  endpoint: Broker
  operation: {http://docs.oasis-open.org/wsn/brw-2}RegisterPublisher
  in: <?xml version="1.0" encoding="UTF-8"?><wsn-br:RegisterPublisher 
xmlns:wsn-br="http://docs.oasis-open.org/wsn/br-2"; 
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:wsa="http://www.w3.org/2005/08/addressing"; 
xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2";>
...
]
javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,3]
Message: expected start or end tag
        at 
org.apache.servicemix.jbi.jaxp.FragmentStreamReader.nextTag(FragmentStreamReader.java:108)
        at 
org.apache.servicemix.wsn.jbi.JbiWrapperHelper.unwrap(JbiWrapperHelper.java:117)
        at 
org.apache.servicemix.wsn.component.WSNEndpoint.process(WSNEndpoint.java:119)
        at 
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
        at 
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
        at 
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at 
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
        at 
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
        at 
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
        at 
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)

Have you some ideas ?

Thanks,

Anne.

> code works in version 3.2.2, but fails in version 3.3.
> ------------------------------------------------------
>
>                 Key: SM-1783
>                 URL: https://issues.apache.org/activemq/browse/SM-1783
>             Project: ServiceMix
>          Issue Type: Bug
>    Affects Versions: 3.3
>         Environment: Window XP, servicemix-3.3
>            Reporter: John Wang
>            Assignee: Jean-Baptiste Onofré
>
> Someone else reported similar error in "Help with wsn-http-binding example", 
> but I use servicemix-wsn2005. So I assume the problem is not component 
> specific.  Thanks for help
> I am following example in 
> http://servicemix.apache.org/servicemix-wsn2005.html.
> When I use servicemix-3.2.2, I can subscribe (get response 200 back), send 
> notification (get response 202 back), everything works fine. I can confirm in 
> JMX. 
> But when I use servicemix-3.3, subscription and notification fail. 
> I send the following subscription: (works in servicemix-3.2.2)
> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/";>
> <env:Header />
>  <env:Body>
>     <wsnt:Subscribe
>       xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2";
>       xmlns:wsa="http://www.w3.org/2005/08/addressing";>
>       <wsnt:ConsumerReference>
>         <wsa:Address>
>           endpoint:http://test/MyS1PojoService/myS1PojoSu        
> </wsa:Address>
>       </wsnt:ConsumerReference>
>       <wsnt:Filter>
>         <wsnt:TopicExpression 
> Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple";>change 
> me</wsnt:TopicExpression>
>       </wsnt:Filter>
>     </wsnt:Subscribe>
>   </env:Body>
>  </env:Envelope>
> the response is on console: (only in servicemix-3.3)
> ERROR - WSNComponent                   - Error processing exchange InOut[
>   id: ID:172.18.128.83-11f381156ed-2:6
>   status: Active
>   role: provider
>   service: {http://servicemix.org/wsnotification}NotificationBroker
>   endpoint: Broker
>   operation: {http://docs.oasis-open.org/wsn/brw-2}Subscribe
>   in: <?xml version="1.0" encoding="UTF-8"?><wsnt:Subscribe 
> xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"; xmlns:env="http://sche
> mas.xmlsoap.org/soap/envelope/" 
> xmlns:wsa="http://www.w3.org/2005/08/addressing";>
>       <wsnt:ConsumerReference>
>         <wsa:Address>
>           endpoint:http://test/MyS1PojoService/myS1PojoSu        
> </wsa:Address>
>       </wsnt:ConsumerReference>
>       <wsnt:Filter>
>         <wsnt:TopicExpression 
> Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple";>change 
> me</wsnt:TopicExpression>
>       </wsnt:Filter>
>     </wsnt:Subscribe>
> ]
> javax.xml.stream.XMLStreamException: ParseError at [row,col]:[4,5]
> Message: expected start or end tag
>         at 
> org.apache.servicemix.jbi.jaxp.FragmentStreamReader.nextTag(FragmentStreamReader.java:108)
>         at 
> org.apache.servicemix.wsn.jbi.JbiWrapperHelper.unwrap(JbiWrapperHelper.java:127)
>         at 
> org.apache.servicemix.wsn.component.WSNEndpoint.process(WSNEndpoint.java:138)
>         at 
> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:600)
>         at 
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:554)
>         at 
> org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:510)
>         at 
> org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
>         at 
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:620)
>         at 
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
>         at 
> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
>         at 
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>         at java.lang.Thread.run(Thread.java:619)
> WARN  - jetty                          - /Broker/
> java.lang.Exception: javax.xml.stream.XMLStreamException: ParseError at 
> [row,col]:[4,5]
> Message: expected start or end tag
>         at 
> org.apache.servicemix.http.processors.ConsumerProcessor.process(ConsumerProcessor.java:209)
>         at 
> org.apache.servicemix.http.HttpBridgeServlet.doPost(HttpBridgeServlet.java:71)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>         at 
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
>         at 
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363)
>         at 
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:757)
>         at 
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
>         at 
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>         at 
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>         at org.mortbay.jetty.Server.handle(Server.java:324)
>         at 
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:371)
>         at 
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
>         at 
> org.mortbay.jetty.nio.SelectChannelConnector$RetryContinuation.run(SelectChannelConnector.java:525)
>         at 
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
> Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[4,5]
> Message: expected start or end tag
>         at 
> org.apache.servicemix.jbi.jaxp.FragmentStreamReader.nextTag(FragmentStreamReader.java:108)
>         at 
> org.apache.servicemix.wsn.jbi.JbiWrapperHelper.unwrap(JbiWrapperHelper.java:127)
>         at 
> org.apache.servicemix.wsn.component.WSNEndpoint.process(WSNEndpoint.java:138)
>         at 
> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:600)
>         at 
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:554)
>         at 
> org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:510)
>         at 
> org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
>         at 
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:620)
>         at 
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
>         at 
> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
>         at 
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>         at java.lang.Thread.run(Thread.java:619)

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

Reply via email to