You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2010/04/13 16:03:44 UTC
[jira] Commented: (SM-1783) code works in version 3.2.2, but fails
in version 3.3.
[ https://issues.apache.org/activemq/browse/SM-1783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58826#action_58826 ]
Freeman Fang commented on SM-1783:
----------------------------------
Hi JP Leibundguth,
Could you please append the patch with apache license granted?
Also generally we use "svn diff ." to generate the patch, it's easy for us to review and apply the patch.
Thanks for contribution !
Freeman
> 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é
> Fix For: 4.0
>
> Attachments: FragmentStreamReader.java
>
>
> 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.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira