You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by pchakinala <pr...@planetsoft.com> on 2011/07/05 12:05:25 UTC
camel nmr endpoint (Servicemix 4.x)
Hi,
I am building OSGI Component and usecase flow is like below.
HTTP Client --->servicemix-http consumer ---> camel route ---> servicemix
http provider ---> out side service
I am using nmr component to build the route.
bean.xml :
--------
<bean id="nmr" class="org.apache.servicemix.camel.nmr.ServiceMixComponent">
<property name="nmr">
<osgi:reference interface="org.apache.servicemix.nmr.api.NMR" />
</property>
</bean>
<http:endpoint service="picf:httpManuTransmit"
endpoint="endpoint"
targetService="picf:sendMsg"
role="consumer"
locationURI="http://0.0.0.0:8192/manuTransmit/"
defaultMep="http://www.w3.org/2004/08/wsdl/in-only" />
<camel:camelContext xmlns="http://camel.apache.org/schema/spring">
<camel:route>
<camel:from
uri="nmr:endpoint:http://planetsoft.com/picf2/sendMsg/endpoint"/>
<camel:convertBodyTo type="java.lang.String"></camel:convertBodyTo>
<camel:to
uri="nmr:endpoint:http://planetsoft.com/picf2/httpMEF/endpoint?mep=in-out"
/>
</camel:route>
</camel:camelContext>
<http:endpoint service="picf:httpMEF" endpoint="endpoint"
role="provider" soap="false"
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
locationURI="http://localhost:8080/jsp-examples/checkbox/mefACK.jsp"/>
Exception:
rg.apache.servicemix.senderEndpoint =
{http://planetsoft.com/picf2}httpManuTransmit:endpoint
javax.jbi.messaging.MessageExchange =
org.apache.servicemix.jbi.runtime.impl.InOnlyImpl@db6d37
javax.jbi.messaging.sendSync = <null>
javax.jbi.InterfaceName = <null>
javax.jbi.transaction.jta = <null>
org.apache.servicemix.correlationId =
f2c3573c-3ba2-4356-ba1c-496f8e1d343e
javax.jbi.ServiceName = {http://planetsoft.com/picf2}sendMsg
]
]
15:23:23,843 | WARN | - /manuTransmit/ | NMR |
83 - org.apache.servicemix.nmr.core - 1.4.0 | Error processing exchange [
id: f2c3573c-3ba2-4356-ba1c-496f8e1d343e
mep: InOnly
status: Active
role: Consumer
target:
PropertyMatchingReference[{SERVICE_NAME={http://planetsoft.com/picf2}sendMsg}]
properties: [
org.apache.servicemix.senderEndpoint =
{http://planetsoft.com/picf2}httpManuTransmit:endpoint
javax.jbi.messaging.MessageExchange =
org.apache.servicemix.jbi.runtime.impl.InOnlyImpl@db6d37
javax.jbi.messaging.sendSync = <null>
javax.jbi.InterfaceName = <null>
javax.jbi.transaction.jta = <null>
org.apache.servicemix.correlationId =
f2c3573c-3ba2-4356-ba1c-496f8e1d343e
javax.jbi.ServiceName = {http://planetsoft.com/picf2}sendMsg
]
]
org.apache.servicemix.nmr.api.ServiceMixException: Could not dispatch
exchange. No matching endpoints.
at
org.apache.servicemix.nmr.core.FlowRegistryImpl.dispatch(FlowRegistryImpl.java:110)[83:org.apache.servicemix.nmr.core:1.4.0]
at
org.apache.servicemix.nmr.core.ChannelImpl.dispatch(ChannelImpl.java:286)[83:org.apache.servicemix.nmr.core:1.4.0]
at
org.apache.servicemix.nmr.core.ChannelImpl.send(ChannelImpl.java:117)[83:org.apache.servicemix.nmr.core:1.4.0]
at
org.apache.servicemix.jbi.runtime.impl.DeliveryChannelImpl.send(DeliveryChannelImpl.java:178)[122:org.apache.servicemix.jbi.runtime:1.4.0]
at
org.apache.servicemix.common.EndpointDeliveryChannel.send(EndpointDeliveryChannel.java:89)[121:servicemix-common:2011.01.0]
at
org.apache.servicemix.http.processors.ConsumerProcessor.process(ConsumerProcessor.java:177)[162:servicemix-http:2011.01.0]
at
org.apache.servicemix.http.HttpBridgeServlet.service(HttpBridgeServlet.java:56)[162:servicemix-http:2011.01.0]
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:668)[93:org.apache.geronimo.specs.geronimo-servlet_3.0_spec:1.0]
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
at
org.mortbay.jetty.Server.handle(Server.java:322)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:943)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
at
org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
15:23:23,890 | WARN | - /manuTransmit/ | jetty |
133 - org.ops4j.pax.web.pax-web-jetty - 0.7.4 | /manuTransmit/
Please suggest me is there any issue in creating camel from,to endpoint
cofiguration. Please find attached source files.
Regards,
Praveen Chakinala
http://servicemix.396122.n5.nabble.com/file/n4552746/issue.zip issue.zip
--
View this message in context: http://servicemix.396122.n5.nabble.com/camel-nmr-endpoint-Servicemix-4-x-tp4552746p4552746.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: camel nmr endpoint (Servicemix 4.x)
Posted by Charles Moulliard <cm...@gmail.com>.
Hi,
Is it a requirement to use JBI ? If this is not the case, you can use
camel component to produce or consume HTTP requests -
http://camel.apache.org/jetty.html for that purpose ?
Regards,
Charles Moulliard
Apache Committer
Blog : http://cmoulliard.blogspot.com
Twitter : http://twitter.com/cmoulliard
Linkedin : http://www.linkedin.com/in/charlesmoulliard
Skype: cmoulliard
On Tue, Jul 5, 2011 at 12:05 PM, pchakinala
<pr...@planetsoft.com> wrote:
> Hi,
> I am building OSGI Component and usecase flow is like below.
>
> HTTP Client --->servicemix-http consumer ---> camel route ---> servicemix
> http provider ---> out side service
>
> I am using nmr component to build the route.
>
>
> bean.xml :
> --------
> <bean id="nmr" class="org.apache.servicemix.camel.nmr.ServiceMixComponent">
> <property name="nmr">
> <osgi:reference interface="org.apache.servicemix.nmr.api.NMR" />
> </property>
> </bean>
>
>
>
>
> <http:endpoint service="picf:httpManuTransmit"
> endpoint="endpoint"
> targetService="picf:sendMsg"
> role="consumer"
> locationURI="http://0.0.0.0:8192/manuTransmit/"
> defaultMep="http://www.w3.org/2004/08/wsdl/in-only" />
>
> <camel:camelContext xmlns="http://camel.apache.org/schema/spring">
>
> <camel:route>
>
> <camel:from
> uri="nmr:endpoint:http://planetsoft.com/picf2/sendMsg/endpoint"/>
>
> <camel:convertBodyTo type="java.lang.String"></camel:convertBodyTo>
>
> <camel:to
> uri="nmr:endpoint:http://planetsoft.com/picf2/httpMEF/endpoint?mep=in-out"
> />
>
> </camel:route>
> </camel:camelContext>
>
> <http:endpoint service="picf:httpMEF" endpoint="endpoint"
> role="provider" soap="false"
> defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
> locationURI="http://localhost:8080/jsp-examples/checkbox/mefACK.jsp"/>
> Exception:
> rg.apache.servicemix.senderEndpoint =
> {http://planetsoft.com/picf2}httpManuTransmit:endpoint
> javax.jbi.messaging.MessageExchange =
> org.apache.servicemix.jbi.runtime.impl.InOnlyImpl@db6d37
> javax.jbi.messaging.sendSync = <null>
> javax.jbi.InterfaceName = <null>
> javax.jbi.transaction.jta = <null>
> org.apache.servicemix.correlationId =
> f2c3573c-3ba2-4356-ba1c-496f8e1d343e
> javax.jbi.ServiceName = {http://planetsoft.com/picf2}sendMsg
> ]
> ]
>
> 15:23:23,843 | WARN | - /manuTransmit/ | NMR |
> 83 - org.apache.servicemix.nmr.core - 1.4.0 | Error processing exchange [
> id: f2c3573c-3ba2-4356-ba1c-496f8e1d343e
> mep: InOnly
> status: Active
> role: Consumer
> target:
> PropertyMatchingReference[{SERVICE_NAME={http://planetsoft.com/picf2}sendMsg}]
> properties: [
> org.apache.servicemix.senderEndpoint =
> {http://planetsoft.com/picf2}httpManuTransmit:endpoint
> javax.jbi.messaging.MessageExchange =
> org.apache.servicemix.jbi.runtime.impl.InOnlyImpl@db6d37
> javax.jbi.messaging.sendSync = <null>
> javax.jbi.InterfaceName = <null>
> javax.jbi.transaction.jta = <null>
> org.apache.servicemix.correlationId =
> f2c3573c-3ba2-4356-ba1c-496f8e1d343e
> javax.jbi.ServiceName = {http://planetsoft.com/picf2}sendMsg
> ]
> ]
>
> org.apache.servicemix.nmr.api.ServiceMixException: Could not dispatch
> exchange. No matching endpoints.
> at
> org.apache.servicemix.nmr.core.FlowRegistryImpl.dispatch(FlowRegistryImpl.java:110)[83:org.apache.servicemix.nmr.core:1.4.0]
> at
> org.apache.servicemix.nmr.core.ChannelImpl.dispatch(ChannelImpl.java:286)[83:org.apache.servicemix.nmr.core:1.4.0]
> at
> org.apache.servicemix.nmr.core.ChannelImpl.send(ChannelImpl.java:117)[83:org.apache.servicemix.nmr.core:1.4.0]
> at
> org.apache.servicemix.jbi.runtime.impl.DeliveryChannelImpl.send(DeliveryChannelImpl.java:178)[122:org.apache.servicemix.jbi.runtime:1.4.0]
> at
> org.apache.servicemix.common.EndpointDeliveryChannel.send(EndpointDeliveryChannel.java:89)[121:servicemix-common:2011.01.0]
> at
> org.apache.servicemix.http.processors.ConsumerProcessor.process(ConsumerProcessor.java:177)[162:servicemix-http:2011.01.0]
> at
> org.apache.servicemix.http.HttpBridgeServlet.service(HttpBridgeServlet.java:56)[162:servicemix-http:2011.01.0]
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:668)[93:org.apache.geronimo.specs.geronimo-servlet_3.0_spec:1.0]
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.jetty.Server.handle(Server.java:322)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:943)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> 15:23:23,890 | WARN | - /manuTransmit/ | jetty |
> 133 - org.ops4j.pax.web.pax-web-jetty - 0.7.4 | /manuTransmit/
>
>
>
> Please suggest me is there any issue in creating camel from,to endpoint
> cofiguration. Please find attached source files.
>
> Regards,
> Praveen Chakinala
> http://servicemix.396122.n5.nabble.com/file/n4552746/issue.zip issue.zip
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/camel-nmr-endpoint-Servicemix-4-x-tp4552746p4552746.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
Re: camel nmr endpoint (Servicemix 4.x)
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Per the doc[1], the expect nmr URI is
nmr:endpointName, so if you use <camel:from uri="nmr:endpoint:http://planetsoft.com/picf2/sendMsg
"/>
the endpointName is endpoint:http://planetsoft.com/picf2/sendMsg, but
from your http consumer, the target endpointName is "endpoint"(same as
the endpoint if you don't specify a targetEndpoint), I believe this
mismatch cause such exception you saw, and that's why I suggest you use
<camel:from
uri="nmr:endpoint>
in my previous answer.
Did you ever try it and if it works?
[1]http://camel.apache.org/nmr.html
Freeman
On 2011-7-5, at 下午10:02, pchakinala wrote:
> Hi Freeman,
> Thanks for the update. As you suggested I have checked servicemix
> log file
> and found below msg.
>
> 19:23:42,375 | DEBUG | ExtenderThread-6 |
> DefaultComponent |
> 68 - org.apache.camel.camel-core - 2.6.0 | Creating endpoint
> uri=[nmr://endpoint:http://planetsoft.com/picf2/sendMsg],
> path=[endpoint:http://planetsoft.com/picf2/sendMsg], parameters=[{}]
> 19:23:42,390 | DEBUG | ExtenderThread-6 |
> OsgiSpringCamelContext |
> 68 - org.apache.camel.camel-core - 2.6.0 |
> nmr://endpoint:http://planetsoft.com/picf2/sendMsg converted to
> endpoint:
> Endpoint[nmr://endpoint:http://planetsoft.com/picf2/sendMsg] by
> component:
> org.apache.servicemix.camel.nmr.ServiceMixComponent@1b2fb88
> 19:23:42,437 | DEBUG | ExtenderThread-6 |
> DefaultManagementAgent |
> 68 - org.apache.camel.camel-core - 2.6.0 | Registered MBean with
> objectname:
> org.apache.camel:context=PraveenChakinala/251-
> camel-3,type=endpoints,name="nmr://endpoint:http://planetsoft.com/picf2/sendMsg
> "
>
> As per my understanding endpoint uri is :
> http://planetsoft.com/picf2/sendMsg
>
> Http endpoint calls above camel uri to post the msg.
>
> <http:endpoint service="picf:httpExportTransmit"
> endpoint="endpoint"
> targetService="picf:sendMsg"
> targetEndpoint="sendMsg"
> role="consumer"
> locationURI="http://0.0.0.0:8192/manuTransmit/"
> defaultMep="http://www.w3.org/2004/08/wsdl/in-only" />
> camel uri:
> --------
> <camel:from uri="nmr:endpoint:http://planetsoft.com/picf2/sendMsg"/>
> Exception:
>
>
>
>
>
> {http://planetsoft.com/picf2}httpExportTransmit:endpoint
> javax.jbi.messaging.MessageExchange =
>
> org.apache.servicemix.jbi.runtime.impl.InOnlyImpl@cb531c
> javax.jbi.messaging.sendSync = <null>
> javax.jbi.InterfaceName = <null>
>
>
> org.apache.servicemix.correlationId =
> cdb22c98-9573-4456-9fbf-4949d89a7cb9
> javax.jbi.ServiceName = {http://planetsoft.com/picf2}sendMsg
> ]
> ]
>
> org.apache.servicemix.nmr.api.ServiceMixException: Could not dispatch
> exchange. No matching endpoints.
>
> Attached servicemix log for your reference.Is there any issue in http
> targetservice attribute?
>
> Regards,
> Praveen Chakinala
> http://servicemix.396122.n5.nabble.com/file/n4553353/servicemix.log
> servicemix.log
>
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/camel-nmr-endpoint-Servicemix-4-x-tp4552746p4553353.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Re: camel nmr endpoint (Servicemix 4.x)
Posted by pchakinala <pr...@planetsoft.com>.
Hi Freeman,
Thanks for the update. As you suggested I have checked servicemix log file
and found below msg.
19:23:42,375 | DEBUG | ExtenderThread-6 | DefaultComponent |
68 - org.apache.camel.camel-core - 2.6.0 | Creating endpoint
uri=[nmr://endpoint:http://planetsoft.com/picf2/sendMsg],
path=[endpoint:http://planetsoft.com/picf2/sendMsg], parameters=[{}]
19:23:42,390 | DEBUG | ExtenderThread-6 | OsgiSpringCamelContext |
68 - org.apache.camel.camel-core - 2.6.0 |
nmr://endpoint:http://planetsoft.com/picf2/sendMsg converted to endpoint:
Endpoint[nmr://endpoint:http://planetsoft.com/picf2/sendMsg] by component:
org.apache.servicemix.camel.nmr.ServiceMixComponent@1b2fb88
19:23:42,437 | DEBUG | ExtenderThread-6 | DefaultManagementAgent |
68 - org.apache.camel.camel-core - 2.6.0 | Registered MBean with objectname:
org.apache.camel:context=PraveenChakinala/251-camel-3,type=endpoints,name="nmr://endpoint:http://planetsoft.com/picf2/sendMsg"
As per my understanding endpoint uri is :
http://planetsoft.com/picf2/sendMsg
Http endpoint calls above camel uri to post the msg.
<http:endpoint service="picf:httpExportTransmit"
endpoint="endpoint"
targetService="picf:sendMsg"
targetEndpoint="sendMsg"
role="consumer"
locationURI="http://0.0.0.0:8192/manuTransmit/"
defaultMep="http://www.w3.org/2004/08/wsdl/in-only" />
camel uri:
--------
<camel:from uri="nmr:endpoint:http://planetsoft.com/picf2/sendMsg"/>
Exception:
{http://planetsoft.com/picf2}httpExportTransmit:endpoint
javax.jbi.messaging.MessageExchange =
org.apache.servicemix.jbi.runtime.impl.InOnlyImpl@cb531c
javax.jbi.messaging.sendSync = <null>
javax.jbi.InterfaceName = <null>
org.apache.servicemix.correlationId = cdb22c98-9573-4456-9fbf-4949d89a7cb9
javax.jbi.ServiceName = {http://planetsoft.com/picf2}sendMsg
]
]
org.apache.servicemix.nmr.api.ServiceMixException: Could not dispatch
exchange. No matching endpoints.
Attached servicemix log for your reference.Is there any issue in http
targetservice attribute?
Regards,
Praveen Chakinala
http://servicemix.396122.n5.nabble.com/file/n4553353/servicemix.log
servicemix.log
--
View this message in context: http://servicemix.396122.n5.nabble.com/camel-nmr-endpoint-Servicemix-4-x-tp4552746p4553353.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: camel nmr endpoint (Servicemix 4.x)
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
When you deploy your camel router, you should be able to see some log
about the NMR endpoint registration in data/log/servicemix.log, where
can give you hint that what the target service/endpoint name in http
consumer should be.
Take a look at [1] to get more details about what the nmr URI should be.
You can try it with
<camel:from
uri="nmr:endpoint>
[1]http://camel.apache.org/nmr.html
Freeman
On 2011-7-5, at 下午6:48, pchakinala wrote:
> Hi Freeman,
> After changing it to <camel:from
> uri="nmr:endpoint:http://planetsoft.com/picf2/sendMsg"/> also got same
> exception
>
> 16:15:07,406 | INFO | - /manuTransmit/ |
> AnnotationTypeConverterLoader |
> 68 - org.apache.camel.camel-core - 2.6.0 | Loading file
> META-INF/services/org/apache/camel/TypeConverter to retrieve list of
> packages, from url:
> bundle://68.0:1/META-INF/services/org/apache/camel/TypeConverter
> 16:15:07,421 | DEBUG | - /manuTransmit/ |
> DefaultPackageScanClassResolver |
> 68 - org.apache.camel.camel-core - 2.6.0 | Searching for annotations
> of
> org.apache.camel.Converter in packages:
> [org.apache.camel.component.file,
> org.apache.camel.component.bean, org.apache.camel.converter]
> 16:15:07,421 | DEBUG | - /manuTransmit/ |
> DefaultPackageScanClassResolver |
> 68 - org.apache.camel.camel-core - 2.6.0 | Found: []
> 16:15:07,421 | DEBUG | - /manuTransmit/ |
> NMR |
> 83 - org.apache.servicemix.nmr.core - 1.4.0 | Channel
> org.apache.servicemix.nmr.core.ChannelImpl@fd9691 dispatching
> exchange: [
> id: 5e83134e-3735-410a-be60-b035fb680e17
> mep: InOnly
> status: Active
> role: Consumer
> target:
> PropertyMatchingReference[{SERVICE_NAME={http://planetsoft.com/
> picf2}sendMsg}]
> properties: [
> org.apache.servicemix.senderEndpoint =
> {http://planetsoft.com/picf2}httpManuTransmit:endpoint
> javax.jbi.messaging.MessageExchange =
> org.apache.servicemix.jbi.runtime.impl.InOnlyImpl@173d391
> javax.jbi.messaging.sendSync = <null>
> javax.jbi.InterfaceName = <null>
> javax.jbi.transaction.jta = <null>
> org.apache.servicemix.correlationId =
> 5e83134e-3735-410a-be60-b035fb680e17
> javax.jbi.ServiceName = {http://planetsoft.com/picf2}sendMsg
> ]
> ]
>
> 16:15:07,421 | WARN | - /manuTransmit/ |
> NMR |
> 83 - org.apache.servicemix.nmr.core - 1.4.0 | Error processing
> exchange [
> id: 5e83134e-3735-410a-be60-b035fb680e17
> mep: InOnly
> status: Active
> role: Consumer
> target:
> PropertyMatchingReference[{SERVICE_NAME={http://planetsoft.com/
> picf2}sendMsg}]
> properties: [
> org.apache.servicemix.senderEndpoint =
> {http://planetsoft.com/picf2}httpManuTransmit:endpoint
> javax.jbi.messaging.MessageExchange =
> org.apache.servicemix.jbi.runtime.impl.InOnlyImpl@173d391
> javax.jbi.messaging.sendSync = <null>
> javax.jbi.InterfaceName = <null>
> javax.jbi.transaction.jta = <null>
> org.apache.servicemix.correlationId =
> 5e83134e-3735-410a-be60-b035fb680e17
> javax.jbi.ServiceName = {http://planetsoft.com/picf2}sendMsg
> ]
> ]
>
> org.apache.servicemix.nmr.api.ServiceMixException: Could not dispatch
> exchange. No matching endpoints.
> at
> org
> .apache
> .servicemix.nmr.core.FlowRegistryImpl.dispatch(FlowRegistryImpl.java:
> 110)[83:org.apache.servicemix.nmr.core:1.4.0]
> at
> org.apache.servicemix.nmr.core.ChannelImpl.dispatch(ChannelImpl.java:
> 286)[83:org.apache.servicemix.nmr.core:1.4.0]
> at
> org.apache.servicemix.nmr.core.ChannelImpl.send(ChannelImpl.java:117)
> [83:org.apache.servicemix.nmr.core:1.4.0]
> at
> org
> .apache
> .servicemix
> .jbi.runtime.impl.DeliveryChannelImpl.send(DeliveryChannelImpl.java:
> 178)[122:org.apache.servicemix.jbi.runtime:1.4.0]
> at
> org
> .apache
> .servicemix
> .common.EndpointDeliveryChannel.send(EndpointDeliveryChannel.java:89)
> [121:servicemix-common:2011.01.0]
> at
> org
> .apache
> .servicemix
> .http.processors.ConsumerProcessor.process(ConsumerProcessor.java:
> 177)[162:servicemix-http:2011.01.0]
> at
> org
> .apache
> .servicemix.http.HttpBridgeServlet.service(HttpBridgeServlet.java:56)
> [162:servicemix-http:2011.01.0]
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
> [93:org.apache.geronimo.specs.geronimo-servlet_3.0_spec:1.0]
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 511)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
> 390)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
> 765)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org
> .mortbay
> .jetty
> .handler
> .ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> [94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org
> .mortbay
> .jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> [94:org.apache.servicemix.bundles.jetty:6.1.25.1]
>
>
> It worked fine with JBI Endpoint <camel:from
> uri="jbi:endpoint:http://planetsoft.com/picf2/sendMsg/endpoint"/>
>
> However as per my requirment i should use nmr endpoint.
>
>
> Please suggest.
> Regards,
> Praveen Chakinala
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/camel-nmr-endpoint-Servicemix-4-x-tp4552746p4552850.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Re: camel nmr endpoint (Servicemix 4.x)
Posted by pchakinala <pr...@planetsoft.com>.
Hi Freeman,
After changing it to <camel:from
uri="nmr:endpoint:http://planetsoft.com/picf2/sendMsg"/> also got same
exception
16:15:07,406 | INFO | - /manuTransmit/ | AnnotationTypeConverterLoader |
68 - org.apache.camel.camel-core - 2.6.0 | Loading file
META-INF/services/org/apache/camel/TypeConverter to retrieve list of
packages, from url:
bundle://68.0:1/META-INF/services/org/apache/camel/TypeConverter
16:15:07,421 | DEBUG | - /manuTransmit/ | DefaultPackageScanClassResolver |
68 - org.apache.camel.camel-core - 2.6.0 | Searching for annotations of
org.apache.camel.Converter in packages: [org.apache.camel.component.file,
org.apache.camel.component.bean, org.apache.camel.converter]
16:15:07,421 | DEBUG | - /manuTransmit/ | DefaultPackageScanClassResolver |
68 - org.apache.camel.camel-core - 2.6.0 | Found: []
16:15:07,421 | DEBUG | - /manuTransmit/ | NMR |
83 - org.apache.servicemix.nmr.core - 1.4.0 | Channel
org.apache.servicemix.nmr.core.ChannelImpl@fd9691 dispatching exchange: [
id: 5e83134e-3735-410a-be60-b035fb680e17
mep: InOnly
status: Active
role: Consumer
target:
PropertyMatchingReference[{SERVICE_NAME={http://planetsoft.com/picf2}sendMsg}]
properties: [
org.apache.servicemix.senderEndpoint =
{http://planetsoft.com/picf2}httpManuTransmit:endpoint
javax.jbi.messaging.MessageExchange =
org.apache.servicemix.jbi.runtime.impl.InOnlyImpl@173d391
javax.jbi.messaging.sendSync = <null>
javax.jbi.InterfaceName = <null>
javax.jbi.transaction.jta = <null>
org.apache.servicemix.correlationId =
5e83134e-3735-410a-be60-b035fb680e17
javax.jbi.ServiceName = {http://planetsoft.com/picf2}sendMsg
]
]
16:15:07,421 | WARN | - /manuTransmit/ | NMR |
83 - org.apache.servicemix.nmr.core - 1.4.0 | Error processing exchange [
id: 5e83134e-3735-410a-be60-b035fb680e17
mep: InOnly
status: Active
role: Consumer
target:
PropertyMatchingReference[{SERVICE_NAME={http://planetsoft.com/picf2}sendMsg}]
properties: [
org.apache.servicemix.senderEndpoint =
{http://planetsoft.com/picf2}httpManuTransmit:endpoint
javax.jbi.messaging.MessageExchange =
org.apache.servicemix.jbi.runtime.impl.InOnlyImpl@173d391
javax.jbi.messaging.sendSync = <null>
javax.jbi.InterfaceName = <null>
javax.jbi.transaction.jta = <null>
org.apache.servicemix.correlationId =
5e83134e-3735-410a-be60-b035fb680e17
javax.jbi.ServiceName = {http://planetsoft.com/picf2}sendMsg
]
]
org.apache.servicemix.nmr.api.ServiceMixException: Could not dispatch
exchange. No matching endpoints.
at
org.apache.servicemix.nmr.core.FlowRegistryImpl.dispatch(FlowRegistryImpl.java:110)[83:org.apache.servicemix.nmr.core:1.4.0]
at
org.apache.servicemix.nmr.core.ChannelImpl.dispatch(ChannelImpl.java:286)[83:org.apache.servicemix.nmr.core:1.4.0]
at
org.apache.servicemix.nmr.core.ChannelImpl.send(ChannelImpl.java:117)[83:org.apache.servicemix.nmr.core:1.4.0]
at
org.apache.servicemix.jbi.runtime.impl.DeliveryChannelImpl.send(DeliveryChannelImpl.java:178)[122:org.apache.servicemix.jbi.runtime:1.4.0]
at
org.apache.servicemix.common.EndpointDeliveryChannel.send(EndpointDeliveryChannel.java:89)[121:servicemix-common:2011.01.0]
at
org.apache.servicemix.http.processors.ConsumerProcessor.process(ConsumerProcessor.java:177)[162:servicemix-http:2011.01.0]
at
org.apache.servicemix.http.HttpBridgeServlet.service(HttpBridgeServlet.java:56)[162:servicemix-http:2011.01.0]
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:668)[93:org.apache.geronimo.specs.geronimo-servlet_3.0_spec:1.0]
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
It worked fine with JBI Endpoint <camel:from
uri="jbi:endpoint:http://planetsoft.com/picf2/sendMsg/endpoint"/>
However as per my requirment i should use nmr endpoint.
Please suggest.
Regards,
Praveen Chakinala
--
View this message in context: http://servicemix.396122.n5.nabble.com/camel-nmr-endpoint-Servicemix-4-x-tp4552746p4552850.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: camel nmr endpoint (Servicemix 4.x)
Posted by Freeman Fang <fr...@gmail.com>.
On 2011-7-5, at 下午6:05, pchakinala wrote:
> Hi,
> I am building OSGI Component and usecase flow is like below.
>
> HTTP Client --->servicemix-http consumer ---> camel route --->
> servicemix
> http provider ---> out side service
>
> I am using nmr component to build the route.
>
>
> bean.xml :
> --------
> <bean id="nmr"
> class="org.apache.servicemix.camel.nmr.ServiceMixComponent">
> <property name="nmr">
> <osgi:reference
> interface="org.apache.servicemix.nmr.api.NMR" />
> </property>
> </bean>
>
>
>
>
> <http:endpoint service="picf:httpManuTransmit"
> endpoint="endpoint"
> targetService="picf:sendMsg"
> role="consumer"
> locationURI="http://0.0.0.0:8192/manuTransmit/"
> defaultMep="http://www.w3.org/2004/08/wsdl/in-only" />
>
> <camel:camelContext xmlns="http://camel.apache.org/schema/spring">
>
> <camel:route>
>
> <camel:from
> uri="nmr:endpoint:http://planetsoft.com/picf2/sendMsg/endpoint"/>
Hi,
Change this to
<camel:from
uri="nmr:endpoint:http://planetsoft.com/picf2/sendMsg"/>
Freeman
>
> <camel:convertBodyTo type="java.lang.String"></
> camel:convertBodyTo>
>
> <camel:to
> uri="nmr:endpoint:http://planetsoft.com/picf2/httpMEF/endpoint?mep=in-out
> "
> />
>
> </camel:route>
> </camel:camelContext>
>
> <http:endpoint service="picf:httpMEF" endpoint="endpoint"
> role="provider" soap="false"
> defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
> locationURI="http://localhost:8080/jsp-examples/checkbox/mefACK.jsp
> "/>
> Exception:
> rg.apache.servicemix.senderEndpoint =
> {http://planetsoft.com/picf2}httpManuTransmit:endpoint
> javax.jbi.messaging.MessageExchange =
> org.apache.servicemix.jbi.runtime.impl.InOnlyImpl@db6d37
> javax.jbi.messaging.sendSync = <null>
> javax.jbi.InterfaceName = <null>
> javax.jbi.transaction.jta = <null>
> org.apache.servicemix.correlationId =
> f2c3573c-3ba2-4356-ba1c-496f8e1d343e
> javax.jbi.ServiceName = {http://planetsoft.com/picf2}sendMsg
> ]
> ]
>
> 15:23:23,843 | WARN | - /manuTransmit/ |
> NMR |
> 83 - org.apache.servicemix.nmr.core - 1.4.0 | Error processing
> exchange [
> id: f2c3573c-3ba2-4356-ba1c-496f8e1d343e
> mep: InOnly
> status: Active
> role: Consumer
> target:
> PropertyMatchingReference[{SERVICE_NAME={http://planetsoft.com/
> picf2}sendMsg}]
> properties: [
> org.apache.servicemix.senderEndpoint =
> {http://planetsoft.com/picf2}httpManuTransmit:endpoint
> javax.jbi.messaging.MessageExchange =
> org.apache.servicemix.jbi.runtime.impl.InOnlyImpl@db6d37
> javax.jbi.messaging.sendSync = <null>
> javax.jbi.InterfaceName = <null>
> javax.jbi.transaction.jta = <null>
> org.apache.servicemix.correlationId =
> f2c3573c-3ba2-4356-ba1c-496f8e1d343e
> javax.jbi.ServiceName = {http://planetsoft.com/picf2}sendMsg
> ]
> ]
>
> org.apache.servicemix.nmr.api.ServiceMixException: Could not dispatch
> exchange. No matching endpoints.
> at
> org
> .apache
> .servicemix.nmr.core.FlowRegistryImpl.dispatch(FlowRegistryImpl.java:
> 110)[83:org.apache.servicemix.nmr.core:1.4.0]
> at
> org.apache.servicemix.nmr.core.ChannelImpl.dispatch(ChannelImpl.java:
> 286)[83:org.apache.servicemix.nmr.core:1.4.0]
> at
> org.apache.servicemix.nmr.core.ChannelImpl.send(ChannelImpl.java:117)
> [83:org.apache.servicemix.nmr.core:1.4.0]
> at
> org
> .apache
> .servicemix
> .jbi.runtime.impl.DeliveryChannelImpl.send(DeliveryChannelImpl.java:
> 178)[122:org.apache.servicemix.jbi.runtime:1.4.0]
> at
> org
> .apache
> .servicemix
> .common.EndpointDeliveryChannel.send(EndpointDeliveryChannel.java:89)
> [121:servicemix-common:2011.01.0]
> at
> org
> .apache
> .servicemix
> .http.processors.ConsumerProcessor.process(ConsumerProcessor.java:
> 177)[162:servicemix-http:2011.01.0]
> at
> org
> .apache
> .servicemix.http.HttpBridgeServlet.service(HttpBridgeServlet.java:56)
> [162:servicemix-http:2011.01.0]
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
> [93:org.apache.geronimo.specs.geronimo-servlet_3.0_spec:1.0]
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 511)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
> 390)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
> 765)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org
> .mortbay
> .jetty
> .handler
> .ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> [94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org
> .mortbay
> .jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> [94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> 152)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.jetty.Server.handle(Server.java:322)
> [94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 542)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.jetty.HttpConnection
> $RequestHandler.content(HttpConnection.java:943)
> [94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
> [94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
> [94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> [94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org
> .mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
> 410)[94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> at
> org.mortbay.thread.QueuedThreadPool
> $PoolThread.run(QueuedThreadPool.java:582)
> [94:org.apache.servicemix.bundles.jetty:6.1.25.1]
> 15:23:23,890 | WARN | - /manuTransmit/ |
> jetty |
> 133 - org.ops4j.pax.web.pax-web-jetty - 0.7.4 | /manuTransmit/
>
>
>
> Please suggest me is there any issue in creating camel from,to
> endpoint
> cofiguration. Please find attached source files.
>
> Regards,
> Praveen Chakinala
> http://servicemix.396122.n5.nabble.com/file/n4552746/issue.zip
> issue.zip
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/camel-nmr-endpoint-Servicemix-4-x-tp4552746p4552746.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com