Hi, Did you ever really deploy a JBI endpoint play the role as a provider, so that the camel jbi consumer endpoint can talk to? Please take a look at [1] to get more details about how camel-jbi works [1]http://camel.apache.org/jbi.html ------------- Freeman(Yue) Fang
Red Hat, Inc. FuseSource is now part of Red Hat Web: http://fusesource.com | http://www.redhat.com/ Twitter: freemanfang Blog: http://freemanfang.blogspot.com http://blog.sina.com.cn/u/1473905042 weibo: http://weibo.com/u/1473905042 On 2012-11-1, at 下午3:15, gasius wrote: > Thank you for response but seems it's not the case. > > My blueprint refers to the class which defines one simple route: > /from("timer:foo?period=5000").setBody().constant("<xml>hello</xml>").log("SMX4 > app contains ${body}").to("jbi:service:http://test.com/TestService");/ > > When I start fresh SMX instance (after cache clean) and deploy this > application I can see such message in log (it's ok because I do not deploy > 2nd application containing jbi endpoint): > > /SMX4 app contains <xml>hello</xml> > Error processing exchange [ ... ] > Could not dispatch exchange. No matching endpoints./ > > But when I restart SMX instance I always can see only this: > > /SMX4 app contains <xml>hello</xml> > Failed delivery for exchangeId: ID-myhost-55497-1351693058334-2-1. Exhausted > after delivery attempt: 1 caught: java.lang.NullPointerException > java.lang.NullPointerException > at > org.apache.servicemix.camel.JbiBinding.createJbiMessageExchange(JbiBinding.java:151)[195:servicemix-camel:2011.02.2] > at > org.apache.servicemix.camel.JbiBinding.makeJbiMessageExchange(JbiBinding.java:125)[195:servicemix-camel:2011.02.2] > at > org.apache.servicemix.camel.CamelConsumerEndpoint.prepareMessageExchange(CamelConsumerEndpoint.java:127)[195:servicemix-camel:2011.02.2] > at > org.apache.servicemix.camel.CamelConsumerEndpoint.process(CamelConsumerEndpoint.java:104)[195:servicemix-camel:2011.02.2] > at > org.apache.servicemix.camel.JbiEndpoint$JbiProducer$2.call(JbiEndpoint.java:130)[195:servicemix-camel:2011.02.2] > at > org.apache.servicemix.camel.JbiEndpoint$JbiProducer$2.call(JbiEndpoint.java:127)[195:servicemix-camel:2011.02.2] > at > org.apache.servicemix.camel.JbiBinding.runWithCamelContextClassLoader(JbiBinding.java:114)[195:servicemix-camel:2011.02.2] > at > org.apache.servicemix.camel.JbiEndpoint$JbiProducer.process(JbiEndpoint.java:127)[195:servicemix-camel:2011.02.2] > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:114)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:284)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.processor.SendProcessor.process(SendProcessor.java:109)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:90)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:318)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:209)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:306)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.processor.Pipeline.process(Pipeline.java:116)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.processor.Pipeline.process(Pipeline.java:79)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:139)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:106)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:78)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:69)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:104)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:85)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:121)[91:org.apache.camel.camel-core:2.8.5] > at > org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:58)[91:org.apache.camel.camel-core:2.8.5] > at java.util.TimerThread.mainLoop(Timer.java:512)[:1.6.0_32] > at java.util.TimerThread.run(Timer.java:462)[:1.6.0_32]/ > > > > -- > View this message in context: > http://servicemix.396122.n5.nabble.com/Can-not-call-JBI-endpoint-from-blueprint-tp5714805p5714809.html > Sent from the ServiceMix - User mailing list archive at Nabble.com.
