You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by dennisbaerten <de...@baerten-vandebroek.be> on 2012/09/16 00:15:15 UTC
javax.jbi.messaging.MessagingException: Could not find route for
exchange ...
I have the following setup
camel-sa that contains : camel-su & cxfbc-su
camel-su : camel-context.xml contains
<camel:endpoint id="mediator-file-csv-receiver"
uri="file://${esb.mediator.csv.upload.directory}"/>
<bean id="mediatorBindyDataformat"
class="org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat">
<constructor-arg value="com.mycompany.xpert.upload.domain" />
</bean>
<camel:route>
<camel:from ref="mediator-file-csv-receiver" />
<camel:to ref="log-request" />
<camel:unmarshal>
<camel:bindy type="Csv" packages="com.mycompany.xpert.upload.domain"/>
</camel:unmarshal>
<camel:split>
<camel:simple>body</camel:simple>
<camel:marshal ref="xstream-utf8" />
<camel:convertBodyTo type="java.lang.String" />
<camel:to
uri="jbi:endpoint:http://www.mycompany.com/upload/mediator-upload-route/endpoint"
/>
</camel:split>
</camel:route>
<camel:route>
<camel:from
uri="jbi:endpoint:http://www.mycompany.com/upload/mediator-upload-route/endpoint"
/>
<camel:to
uri="jbi:endpoint:http://www.mycompany.com/xpert/mediator/service/MediatorService/MediatorWS?mep=in&operation={http://www.mycompany.com/xpert/mediator/service/MediatorService}uploadMediator"
/>
</camel:route>
cxfbc-su : xbean.xml contains
<cxfbc:provider wsdl="classpath:MediatorService.wsdl"
locationURI="${uploadMediatorURI}"
interfaceName="mediator:MediatorService" service="mediator:MediatorWS"
useJBIWrapper="false" useSOAPEnvelope="false"
busCfg="http_conduit_config.xml"/>
file polling : OK
convert csv file to objects with bindy : OK
convert objects to xml : OK
send xml to application webservice : NOK
Then I get the following exception which is not clear to me :
INFO | jvm 1 | 2012/09/15 23:44:32 | DEBUG - DefaultErrorHandler
- Failed delivery for exchangeId: ID-vm-1365-1347742430821-7-6. On delivery
attempt: 0 caught: javax.jbi.messaging.MessagingException: Could not find
route for exchange: InOnly[
INFO | jvm 1 | 2012/09/15 23:44:32 | id:
ID:192.168.152.39-139cbb55277-3:9
INFO | jvm 1 | 2012/09/15 23:44:32 | status: Active
INFO | jvm 1 | 2012/09/15 23:44:32 | role: provider
INFO | jvm 1 | 2012/09/15 23:44:32 | operation:
{http://www.mycompany.com/xpert/mediator/service/MediatorService}uploadMediator
INFO | jvm 1 | 2012/09/15 23:44:32 | in: <?xml version="1.0"
encoding="UTF-8"?><map><entry><string>com.mycompany.xpert.upload.domain.MediatorUpload</string><com.mycompany.xpert.upload.domain.MediatorUpload><producerNumber>producerNumber</producerNumber><company>company</company><reference>reference</reference><firstName>firstName</firstName><lastName>lastName</lastName><phone>phone</phone><fax>fax</fax><mobile>mobile</mobile>email<cbfaNumber>9999</cbfaNumber><language>language</language><street>street</street><zipcode>zipcode</zipcode><houseNumber>houseNumber</houseNumber><busNumber>busNumber</busNumber><city>city2</city><country>country</country></com.mycompany.xpert.upload.domain.MediatorUpload></entry></map>
INFO | jvm 1 | 2012/09/15 23:44:32 | ] for service: null and interface:
null
--
View this message in context: http://camel.465427.n5.nabble.com/javax-jbi-messaging-MessagingException-Could-not-find-route-for-exchange-tp5719417.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: javax.jbi.messaging.MessagingException: Could not find route for
exchange ...
Posted by Christian Müller <ch...@gmail.com>.
I think you will get better support on the ServiceMix user mailing list for
this kind of question, because it's related to the ServiceMix JBI component.
But good to know you could figured out by yourself.
Best,
Christian
On Sun, Sep 16, 2012 at 2:33 PM, dennisbaerten <dennis@baerten-vandebroek.be
> wrote:
> Problem found, both xbean and camelcontext did not have the correct
> servicename from the wsdl.
> I used MediatorService, which actually should be IMediatorService like in
> the wdsl ...
>
> <wsdl:service name="MediatorWS">
> <wsdl:port binding="tns:MediatorWSSoapBinding"
> name="IMediatorService">
>
>
> So the following xbean definition
>
> <cxfbc:provider wsdl="classpath:MediatorService.wsdl"
> locationURI="${uploadMediatorURI}"
> interfaceName="mediator:IMediatorService"
> service="mediator:MediatorWS"
> useJBIWrapper="false" useSOAPEnvelope="false"
> busCfg="http_conduit_config.xml"/>
>
> and camelcontext route
>
> <camel:to
> uri="jbi:endpoint:
> http://www.mycompany.com/xpert/mediator/service/MediatorWS/IMediatorService?mep=in&operation={http://www.mycompany.com/xpert/mediator/service}uploadMediator
> "
> />
>
>
> are working correctly now.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/javax-jbi-messaging-MessagingException-Could-not-find-route-for-exchange-tp5719417p5719430.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Re: javax.jbi.messaging.MessagingException: Could not find route
for exchange ...
Posted by dennisbaerten <de...@baerten-vandebroek.be>.
Problem found, both xbean and camelcontext did not have the correct
servicename from the wsdl.
I used MediatorService, which actually should be IMediatorService like in
the wdsl ...
<wsdl:service name="MediatorWS">
<wsdl:port binding="tns:MediatorWSSoapBinding" name="IMediatorService">
So the following xbean definition
<cxfbc:provider wsdl="classpath:MediatorService.wsdl"
locationURI="${uploadMediatorURI}"
interfaceName="mediator:IMediatorService" service="mediator:MediatorWS"
useJBIWrapper="false" useSOAPEnvelope="false"
busCfg="http_conduit_config.xml"/>
and camelcontext route
<camel:to
uri="jbi:endpoint:http://www.mycompany.com/xpert/mediator/service/MediatorWS/IMediatorService?mep=in&operation={http://www.mycompany.com/xpert/mediator/service}uploadMediator"
/>
are working correctly now.
--
View this message in context: http://camel.465427.n5.nabble.com/javax-jbi-messaging-MessagingException-Could-not-find-route-for-exchange-tp5719417p5719430.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: javax.jbi.messaging.MessagingException: Could not find route
for exchange ...
Posted by dennisbaerten <de...@baerten-vandebroek.be>.
I've changed the last route within the camelcontext like this :
<camel:route>
<camel:from
uri="jbi:endpoint:http://www.mycompany.com/upload/mediator-upload-route/endpoint"
/>
<camel:to
uri="jbi:endpoint:http://www.mycompany.com/xpert/mediator/service/MediatorWS/MediatorService?mep=in&operation={http://www.mycompany.com/xpert/mediator/service}uploadMediator"
/>
</camel:route>
Within the wrapper.log I can see the following lines
INFO | jvm 1 | 2012/09/16 13:41:03 | DEBUG - DefaultCamelContext
-
jbi://endpoint:http://www.mycompany.com/upload/mediator-upload-route/endpoint
converted to endpoint:
Endpoint[endpoint:http://www.mycompany.com/upload/mediator-upload-route/endpoint]
by component: org.apache.servicemix.camel.JbiComponent@15dbe2e
INFO | jvm 1 | 2012/09/16 13:41:03 | DEBUG - DefaultManagementAgent
- Registered MBean with objectname:
org.apache.camel:context=vm/camel-19,type=endpoints,name="endpoint:http://www.mycompany.com/upload/mediator-upload-route/endpoint"
INFO | jvm 1 | 2012/09/16 13:41:03 | DEBUG - SimpleLanguage
- Expression is evaluated as simple (non strict) expression: body
INFO | jvm 1 | 2012/09/16 13:41:03 | DEBUG - DefaultCamelContext
-
jbi://endpoint:http://www.mycompany.com/xpert/mediator/service/MediatorWS/MediatorService?mep=in&operation=%7Bhttp%3A%2F%2Fwww.mycompany.com%2Fxpert%2Fmediator%2Fservice%7DuploadMediator
converted to endpoint:
Endpoint[endpoint:http://www.mycompany.com/xpert/mediator/service/MediatorWS/MediatorService]
by component: org.apache.servicemix.camel.JbiComponent@15dbe2e
INFO | jvm 1 | 2012/09/16 13:41:03 | DEBUG - DefaultManagementAgent
- Registered MBean with objectname:
org.apache.camel:context=vm/camel-19,type=endpoints,name="endpoint:http://www.mycompany.com/xpert/mediator/service/MediatorWS/MediatorService"
INFO | jvm 1 | 2012/09/16 13:41:03 | DEBUG - DefaultCamelContext
- Warming up route id: route61 having autoStartup=true
So it looks like this all is OK ... but is still not working ( same
exception )
--
View this message in context: http://camel.465427.n5.nabble.com/javax-jbi-messaging-MessagingException-Could-not-find-route-for-exchange-tp5719417p5719429.html
Sent from the Camel - Users mailing list archive at Nabble.com.