5 Replies Latest reply on Jul 18, 2010 3:43 PM by Rafal N

    cxf -> nmr with camel in servicemix 4.2

    Rafal N Newbie

      I want to route web service requests to nmr using camel. I have written something like:

       

       

       

      Unfortunately, I get the fg:

       

      12:56:04,440 | WARN  | 8@qtp-11680652-0 | NMR                              | .servicemix.nmr.core.ChannelImpl  293 | Error processing exchange [

        id:        385c35fb-19cc-4b7a-b5ae-3d3b719bdb12

        mep:       InOnly

        status:    Active

        role:      Consumer

        target:    PropertyMatchingReference[{NAME=SomeEndpoint}]

        In: [

          content:

          properties: [

            operationName = submitResult

          ]

        ]

      ]

       

      org.apache.servicemix.nmr.api.ServiceMixException: Could not dispatch exchange. No matching endpoints.

           at org.apache.servicemix.nmr.core.FlowRegistryImpl.dispatch(FlowRegistryImpl.java:110)

           at org.apache.servicemix.nmr.core.ChannelImpl.dispatch(ChannelImpl.java:286)

           at org.apache.servicemix.nmr.core.ChannelImpl.sendSync(ChannelImpl.java:141)

           at org.apache.servicemix.nmr.core.ChannelImpl.sendSync(ChannelImpl.java:127)

           at org.apache.servicemix.camel.nmr.ServiceMixProducer.process(ServiceMixProducer.java:59)

           at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:97)

           at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:95)

           at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:146)

           at org.apache.camel.processor.SendProcessor.doProcess(SendProcessor.java:94)

           at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:82)

           at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

           at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)

           at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)

           at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:93)

           at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

           at org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:177)

           at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:143)

           at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:88)

           at org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)

           at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:228)

           at org.apache.camel.processor.Pipeline.process(Pipeline.java:74)

           at org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:66)

           at org.apache.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48)

           at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

           at org.apache.camel.component.cxf.CxfConsumer$1.invoke(CxfConsumer.java:91)

           at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)

           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

           at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

           at java.util.concurrent.FutureTask.run(FutureTask.java:138)

           at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)

           at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)

           at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)

           at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)

           at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:312)

           at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:276)

           at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)

           at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)

           at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)

           at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

           at org.mortbay.jetty.Server.handle(Server.java:326)

           at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)

           at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)

           at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)

           at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)

           at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)

           at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)

           at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

      12:56:04,442 | ERROR | 8@qtp-11680652-0 | DefaultErrorHandler              | rg.apache.camel.processor.Logger  248 | Failed delivery for exchangeId: ac284874-f6cf-4da5-b692-2430ef664cf0. Exhausted after delivery attempt: 1 caught: org.apache.servicemix.nmr.api.ServiceMixException: Could not dispatch exchange. No matching endpoints.

      org.apache.servicemix.nmr.api.ServiceMixException: Could not dispatch exchange. No matching endpoints.

           at org.apache.servicemix.nmr.core.FlowRegistryImpl.dispatch(FlowRegistryImpl.java:110)

           at org.apache.servicemix.nmr.core.ChannelImpl.dispatch(ChannelImpl.java:286)

           at org.apache.servicemix.nmr.core.ChannelImpl.sendSync(ChannelImpl.java:141)

           at org.apache.servicemix.nmr.core.ChannelImpl.sendSync(ChannelImpl.java:127)

           at org.apache.servicemix.camel.nmr.ServiceMixProducer.process(ServiceMixProducer.java:59)

           at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:97)

           at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:95)

           at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:146)

           at org.apache.camel.processor.SendProcessor.doProcess(SendProcessor.java:94)

           at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:82)

           at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

           at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)

           at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)

           at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:93)

           at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

           at org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:177)

           at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:143)

           at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:88)

           at org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)

           at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:228)

           at org.apache.camel.processor.Pipeline.process(Pipeline.java:74)

           at org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:66)

           at org.apache.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48)

           at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

           at org.apache.camel.component.cxf.CxfConsumer$1.invoke(CxfConsumer.java:91)

           at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)

           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

           at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

           at java.util.concurrent.FutureTask.run(FutureTask.java:138)

           at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)

           at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)

           at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)

           at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)

           at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:312)

           at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:276)

           at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)

           at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)

           at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)

           at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

           at org.mortbay.jetty.Server.handle(Server.java:326)

           at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)

           at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)

           at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)

           at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)

           at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)

           at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)

           at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

      12:56:04,444 | WARN  | 8@qtp-11680652-0 | PhaseInterceptorChain            | ache.cxf.common.logging.LogUtils  361 | Interceptor for ResultServiceService#submitResult has thrown exception, unwinding now

      org.apache.cxf.interceptor.Fault: Could not dispatch exchange. No matching endpoints.

           at org.apache.camel.component.cxf.CxfConsumer$1.invoke(CxfConsumer.java:101)

           at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)

           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

           at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

           at java.util.concurrent.FutureTask.run(FutureTask.java:138)

           at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)

           at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)

           at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)

           at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)

           at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:312)

           at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:276)

           at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)

           at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)

           at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)

           at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

           at org.mortbay.jetty.Server.handle(Server.java:326)

           at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)

           at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)

           at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)

           at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)

           at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)

           at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)

           at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

      Caused by: org.apache.servicemix.nmr.api.ServiceMixException: Could not dispatch exchange. No matching endpoints.

           at org.apache.servicemix.nmr.core.FlowRegistryImpl.dispatch(FlowRegistryImpl.java:110)

           at org.apache.servicemix.nmr.core.ChannelImpl.dispatch(ChannelImpl.java:286)

           at org.apache.servicemix.nmr.core.ChannelImpl.sendSync(ChannelImpl.java:141)

           at org.apache.servicemix.nmr.core.ChannelImpl.sendSync(ChannelImpl.java:127)

           at org.apache.servicemix.camel.nmr.ServiceMixProducer.process(ServiceMixProducer.java:59)

           at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:97)

           at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:95)

           at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:146)

           at org.apache.camel.processor.SendProcessor.doProcess(SendProcessor.java:94)

           at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:82)

           at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

           at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)

           at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)

           at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:93)

           at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

           at org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:177)

           at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:143)

           at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:88)

           at org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)

           at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:228)

           at org.apache.camel.processor.Pipeline.process(Pipeline.java:74)

           at org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:66)

           at org.apache.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48)

           at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)

           at org.apache.camel.component.cxf.CxfConsumer$1.invoke(CxfConsumer.java:91)

           ... 22 more

       

       

      I would be grateful, if someone gave me a clue how to resolve this issue.