Errors:DirectConsumerNotAvailableException: No consumers available.

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Errors:DirectConsumerNotAvailableException: No consumers available.

hoboy

Does anybody has an idea ?

Here is my camel-context.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:osgi="http://www.springframework.org/schema/osgi"
        xmlns:cxf="http://camel.apache.org/schema/cxf" xmlns:context="http://www.springframework.org/schema/context"
        xmlns:cxfcore="http://cxf.apache.org/core" xmlns:ctx="http://www.springframework.org/schema/context"
        xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
        xmlns:jaxrs="http://cxf.apache.org/jaxrs" xmlns:util="http://www.springframework.org/schema/util"
        xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd
       http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
       http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd
       http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
       http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
       http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
       http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">

        <bean id="ApplicationActivator" class="com.test.camel.spring.dm.ApplicationActivator" />
        <bean id="serviceClass" class="com.test.camel.spring.dm.MyResource" />

        <cxf:rsServer id="endpoint" address="<a href="http://localhost:9090&quot;&gt;">http://localhost:9090">
                <cxf:serviceBeans>
                        <ref bean="serviceClass" />
                </cxf:serviceBeans>
        </cxf:rsServer>
        <camelContext xmlns="http://camel.apache.org/schema/spring">
                <route>
                        <from uri="cxfrs:bean:endpoint" />
                        <log message="Befor calling service, the message is ${body}" />
                        <to uri="direct:serviceClass" />
                </route>
        </camelContext>
</beans>




org.apache.camel.component.direct.DirectConsumerNotAvailableException: No consumers available on endpoint: Endpoint[direct://serviceClass]. Exchange[Message: [org.apache.cxf.jaxrs.impl.RequestImpl@3cd5c46f]]
        at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:47)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.component.cxf.jaxrs.CxfRsInvoker.asyncInvoke(CxfRsInvoker.java:93)[205:org.apache.camel.camel-cxf:2.15.1.redhat-621001]
        at org.apache.camel.component.cxf.jaxrs.CxfRsInvoker.performInvocation(CxfRsInvoker.java:68)[205:org.apache.camel.camel-cxf:2.15.1.redhat-621001]
        at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:97)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:200)[194:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.4.redhat-621001]
        at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:99)[194:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.4.redhat-621001]
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:251)[190:org.apache.cxf.cxf-rt-transports-http:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:261)[203:org.apache.cxf.cxf-rt-transports-http-jetty:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)[203:org.apache.cxf.cxf-rt-transports-http-jetty:3.0.4.redhat-621001]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1088)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1024)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.Server.handle(Server.java:370)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at java.lang.Thread.run(Thread.java:745)[:1.7.0_80]
11:56:26,832 | WARN  | qtp653709610-134 | PhaseInterceptorChain            | 185 - org.apache.cxf.cxf-core - 3.0.4.redhat-621001 | Application {http://dm.spring.camel.com.test/}MyResource has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: No consumers available on endpoint: Endpoint[direct://serviceClass]. Exchange[Message: [org.apache.cxf.jaxrs.impl.RequestImpl@3cd5c46f]] while invoking public javax.ws.rs.core.Response com.test.camel.spring.dm.MyResource.getResource(javax.ws.rs.core.Request) with params [org.apache.cxf.jaxrs.impl.RequestImpl@3cd5c46f].
        at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:167)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:141)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:200)[194:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.4.redhat-621001]
        at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:99)[194:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.4.redhat-621001]
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:277)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:251)[190:org.apache.cxf.cxf-rt-transports-http:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:261)[203:org.apache.cxf.cxf-rt-transports-http-jetty:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)[203:org.apache.cxf.cxf-rt-transports-http-jetty:3.0.4.redhat-621001]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1088)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1024)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:193)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.Server.handleAsync(Server.java:410)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:519)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at java.lang.Thread.run(Thread.java:745)[:1.7.0_80]
Caused by: org.apache.camel.component.direct.DirectConsumerNotAvailableException: No consumers available on endpoint: Endpoint[direct://serviceClass]. Exchange[Message: [org.apache.cxf.jaxrs.impl.RequestImpl@3cd5c46f]]
        at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:47)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.component.cxf.jaxrs.CxfRsInvoker.asyncInvoke(CxfRsInvoker.java:93)[205:org.apache.camel.camel-cxf:2.15.1.redhat-621001]
        at org.apache.camel.component.cxf.jaxrs.CxfRsInvoker.performInvocation(CxfRsInvoker.java:68)[205:org.apache.camel.camel-cxf:2.15.1.redhat-621001]
        at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:97)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:200)[194:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.4.redhat-621001]
        at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:99)[194:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.4.redhat-621001]
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:251)[190:org.apache.cxf.cxf-rt-transports-http:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:261)[203:org.apache.cxf.cxf-rt-transports-http-jetty:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)[203:org.apache.cxf.cxf-rt-transports-http-jetty:3.0.4.redhat-621001]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1088)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1024)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.Server.handle(Server.java:370)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        ... 10 more
11:56:26,836 | WARN  | qtp653709610-134 | PhaseInterceptorChain            | 185 - org.apache.cxf.cxf-core - 3.0.4.redhat-621001 | Exception in handleFault on interceptor org.apache.cxf.jaxrs.interceptor.JAXRSDefaultFaultOutInterceptor@630eb20
org.apache.cxf.interceptor.Fault: No consumers available on endpoint: Endpoint[direct://serviceClass]. Exchange[Message: [org.apache.cxf.jaxrs.impl.RequestImpl@3cd5c46f]] while invoking public javax.ws.rs.core.Response com.test.camel.spring.dm.MyResource.getResource(javax.ws.rs.core.Request) with params [org.apache.cxf.jaxrs.impl.RequestImpl@3cd5c46f].
        at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:167)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:141)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:200)[194:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.4.redhat-621001]
        at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:99)[194:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.4.redhat-621001]
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:277)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:251)[190:org.apache.cxf.cxf-rt-transports-http:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:261)[203:org.apache.cxf.cxf-rt-transports-http-jetty:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)[203:org.apache.cxf.cxf-rt-transports-http-jetty:3.0.4.redhat-621001]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1088)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1024)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:193)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.Server.handleAsync(Server.java:410)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:519)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at java.lang.Thread.run(Thread.java:745)[:1.7.0_80]
Caused by: org.apache.camel.component.direct.DirectConsumerNotAvailableException: No consumers available on endpoint: Endpoint[direct://serviceClass]. Exchange[Message: [org.apache.cxf.jaxrs.impl.RequestImpl@3cd5c46f]]
        at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:47)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.component.cxf.jaxrs.CxfRsInvoker.asyncInvoke(CxfRsInvoker.java:93)[205:org.apache.camel.camel-cxf:2.15.1.redhat-621001]
        at org.apache.camel.component.cxf.jaxrs.CxfRsInvoker.performInvocation(CxfRsInvoker.java:68)[205:org.apache.camel.camel-cxf:2.15.1.redhat-621001]
        at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:97)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:200)[194:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.4.redhat-621001]
        at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:99)[194:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.4.redhat-621001]
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:251)[190:org.apache.cxf.cxf-rt-transports-http:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:261)[203:org.apache.cxf.cxf-rt-transports-http-jetty:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)[203:org.apache.cxf.cxf-rt-transports-http-jetty:3.0.4.redhat-621001]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1088)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1024)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.Server.handle(Server.java:370)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        ... 10 more
11:56:26,838 | ERROR | qtp653709610-134 | tractFaultChainInitiatorObserver | 185 - org.apache.cxf.cxf-core - 3.0.4.redhat-621001 | Error occurred during error handling, give up!
org.apache.cxf.interceptor.Fault: No consumers available on endpoint: Endpoint[direct://serviceClass]. Exchange[Message: [org.apache.cxf.jaxrs.impl.RequestImpl@3cd5c46f]] while invoking public javax.ws.rs.core.Response com.test.camel.spring.dm.MyResource.getResource(javax.ws.rs.core.Request) with params [org.apache.cxf.jaxrs.impl.RequestImpl@3cd5c46f].
        at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:167)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:141)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:200)[194:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.4.redhat-621001]
        at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:99)[194:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.4.redhat-621001]
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:277)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:251)[190:org.apache.cxf.cxf-rt-transports-http:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:261)[203:org.apache.cxf.cxf-rt-transports-http-jetty:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)[203:org.apache.cxf.cxf-rt-transports-http-jetty:3.0.4.redhat-621001]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1088)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1024)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:193)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.Server.handleAsync(Server.java:410)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:519)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at java.lang.Thread.run(Thread.java:745)[:1.7.0_80]
Caused by: org.apache.camel.component.direct.DirectConsumerNotAvailableException: No consumers available on endpoint: Endpoint[direct://serviceClass]. Exchange[Message: [org.apache.cxf.jaxrs.impl.RequestImpl@3cd5c46f]]
        at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:47)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.component.cxf.jaxrs.CxfRsInvoker.asyncInvoke(CxfRsInvoker.java:93)[205:org.apache.camel.camel-cxf:2.15.1.redhat-621001]
        at org.apache.camel.component.cxf.jaxrs.CxfRsInvoker.performInvocation(CxfRsInvoker.java:68)[205:org.apache.camel.camel-cxf:2.15.1.redhat-621001]
        at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:97)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:200)[194:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.4.redhat-621001]
        at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:99)[194:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.4.redhat-621001]
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:251)[190:org.apache.cxf.cxf-rt-transports-http:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:261)[203:org.apache.cxf.cxf-rt-transports-http-jetty:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)[203:org.apache.cxf.cxf-rt-transports-http-jetty:3.0.4.redhat-621001]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1088)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1024)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.Server.handle(Server.java:370)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        ... 10 more
11:56:26,839 | WARN  | qtp653709610-134 | AbstractHttpConnection           | 95 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.17.v20150415 | /test/getResource/
java.lang.RuntimeException: org.apache.cxf.interceptor.Fault: No consumers available on endpoint: Endpoint[direct://serviceClass]. Exchange[Message: [org.apache.cxf.jaxrs.impl.RequestImpl@3cd5c46f]] while invoking public javax.ws.rs.core.Response com.test.camel.spring.dm.MyResource.getResource(javax.ws.rs.core.Request) with params [org.apache.cxf.jaxrs.impl.RequestImpl@3cd5c46f].
        at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:116)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.phase.PhaseInterceptorChain.wrapExceptionAsFault(PhaseInterceptorChain.java:365)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:323)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:277)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:251)[190:org.apache.cxf.cxf-rt-transports-http:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:261)[203:org.apache.cxf.cxf-rt-transports-http-jetty:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)[203:org.apache.cxf.cxf-rt-transports-http-jetty:3.0.4.redhat-621001]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1088)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1024)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:193)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.Server.handleAsync(Server.java:410)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:519)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at java.lang.Thread.run(Thread.java:745)[:1.7.0_80]
Caused by: org.apache.cxf.interceptor.Fault: No consumers available on endpoint: Endpoint[direct://serviceClass]. Exchange[Message: [org.apache.cxf.jaxrs.impl.RequestImpl@3cd5c46f]] while invoking public javax.ws.rs.core.Response com.test.camel.spring.dm.MyResource.getResource(javax.ws.rs.core.Request) with params [org.apache.cxf.jaxrs.impl.RequestImpl@3cd5c46f].
        at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:167)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:141)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:200)[194:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.4.redhat-621001]
        at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:99)[194:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.4.redhat-621001]
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        ... 22 more
Caused by: org.apache.camel.component.direct.DirectConsumerNotAvailableException: No consumers available on endpoint: Endpoint[direct://serviceClass]. Exchange[Message: [org.apache.cxf.jaxrs.impl.RequestImpl@3cd5c46f]]
        at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:47)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[175:org.apache.camel.camel-core:2.15.1.redhat-621001]
        at org.apache.camel.component.cxf.jaxrs.CxfRsInvoker.asyncInvoke(CxfRsInvoker.java:93)[205:org.apache.camel.camel-cxf:2.15.1.redhat-621001]
        at org.apache.camel.component.cxf.jaxrs.CxfRsInvoker.performInvocation(CxfRsInvoker.java:68)[205:org.apache.camel.camel-cxf:2.15.1.redhat-621001]
        at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:97)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:200)[194:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.4.redhat-621001]
        at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:99)[194:org.apache.cxf.cxf-rt-frontend-jaxrs:3.0.4.redhat-621001]
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[185:org.apache.cxf.cxf-core:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:251)[190:org.apache.cxf.cxf-rt-transports-http:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:261)[203:org.apache.cxf.cxf-rt-transports-http-jetty:3.0.4.redhat-621001]
        at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)[203:org.apache.cxf.cxf-rt-transports-http-jetty:3.0.4.redhat-621001]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1088)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1024)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.Server.handle(Server.java:370)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)[95:org.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415]
        ... 10 more
Reply | Threaded
Open this post in threaded view
|

Re: Errors:DirectConsumerNotAvailableException: No consumers available.

hoboy
My goodness this forum is really tough on camel new bee.
No answer to any question at all.
Reply | Threaded
Open this post in threaded view
|

Re: Errors:DirectConsumerNotAvailableException: No consumers available.

astefanutti
You cannot produce to a direct endpoint that has no consumer:

No consumers available on endpoint: Endpoint[direct://serviceClass]

> On 18 Feb 2016, at 17:47, hoboy <[hidden email]> wrote:
>
> My goodness this forum is really tough on camel new bee.
> No answer to any question at all.
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Errors-DirectConsumerNotAvailableException-No-consumers-available-tp5777818p5777863.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: Errors:DirectConsumerNotAvailableException: No consumers available.

Claus Ibsen-2
If you want to call a java bean/method, then use the bean component
instead of direct
http://camel.apache.org/bean

On Thu, Feb 18, 2016 at 7:12 PM, Antonin Stefanutti
<[hidden email]> wrote:

> You cannot produce to a direct endpoint that has no consumer:
>
> No consumers available on endpoint: Endpoint[direct://serviceClass]
>
>> On 18 Feb 2016, at 17:47, hoboy <[hidden email]> wrote:
>>
>> My goodness this forum is really tough on camel new bee.
>> No answer to any question at all.
>>
>>
>>
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/Errors-DirectConsumerNotAvailableException-No-consumers-available-tp5777818p5777863.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>



--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2
Reply | Threaded
Open this post in threaded view
|

Re: Errors:DirectConsumerNotAvailableException: No consumers available.

hoboy
In reply to this post by astefanutti
No consumers available on endpoint: Endpoint[direct://serviceClass]
ok how do I add consumer to Endpoint[direct://serviceClass]  ?
 any link ? or little example ?
Reply | Threaded
Open this post in threaded view
|

Re: Errors:DirectConsumerNotAvailableException: No consumers available.

hoboy
In reply to this post by Claus Ibsen-2
Når hvordan  det ?:)
I only have these 2 java class that are Rest and deployed on jboss server working, but want to deploy them on Fuse ESB
         
The Jax-RS java class
        <bean id="ApplicationActivator" class="com.test.camel.spring.dm.ApplicationActivator" />
        <bean id="serviceClass" class="com.test.camel.spring.dm.MyResource"