camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnaud Deprez <arnaudep...@gmail.com>
Subject Re: Camel 2.16.0: ProducerTemplate has not been started
Date Tue, 13 Oct 2015 13:00:29 GMT
The bug seems to be related with karaf and not with camel as it works in
karaf 2.4.3 and karaf 3.0.5.

On Tue, Oct 13, 2015 at 1:59 PM Arnaud Deprez <arnaudeprez@gmail.com> wrote:

> Hi,
>
> I upgraded my project to the last 2.16.0 camel release and I get this
> exception in karaf 4.0.2 while it's working in my unit test.
>
> So basically, I've a bean with a private field declared as :
> @Produce
> private ProducerTemplate template;
>
> When I try to request and endpoint with my ProducerTemplate, I get the
> following exception :
>
> java.lang.IllegalStateException: ProducerTemplate has not been started
> at
> org.apache.camel.impl.DefaultProducerTemplate.getProducerCache(DefaultProducerTemplate.java:704)
> at
> org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:128)
> at
> org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:132)
> at
> org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:149)
> at
> org.apache.camel.impl.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:301)
> at
> org.apache.camel.impl.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:331)
> at
> be.lampiris.api.customer.impl.CustomerQueryServiceImpl.query(CustomerQueryServiceImpl.java:65)
> at Proxy35383b7f_3e97_49a0_89d0_cfa78fdbbae9.query(Unknown Source)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_45]
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_45]
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_45]
> at java.lang.reflect.Method.invoke(Method.java:497)[:1.8.0_45]
> at
> org.apache.camel.component.bean.MethodInfo.invoke(MethodInfo.java:408)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.component.bean.MethodInfo$1.doProceed(MethodInfo.java:279)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.component.bean.MethodInfo$1.proceed(MethodInfo.java:252)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:177)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:68)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.component.bean.BeanProducer.process(BeanProducer.java:38)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:141)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:121)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:83)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:141)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:460)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:121)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:83)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:87)[96:org.apache.camel.camel-core:2.16.0]
> at
> org.apache.camel.http.common.CamelServlet.service(CamelServlet.java:143)[99:org.apache.camel.camel-http-common:2.16.0]
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:790)[81:javax.servlet-api:3.1.0]
> at
> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)[215:org.eclipse.jetty.servlet:9.2.10.v20150310]
> at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[215:org.eclipse.jetty.servlet:9.2.10.v20150310]
> at
> org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[245:org.ops4j.pax.web.pax-web-jetty:4.2.2]
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[214:org.eclipse.jetty.server:9.2.10.v20150310]
> at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[213:org.eclipse.jetty.security:9.2.10.v20150310]
> at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[214:org.eclipse.jetty.server:9.2.10.v20150310]
> at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[214:org.eclipse.jetty.server:9.2.10.v20150310]
> at
> org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:271)[245:org.ops4j.pax.web.pax-web-jetty:4.2.2]
> at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[215:org.eclipse.jetty.servlet:9.2.10.v20150310]
> at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[214:org.eclipse.jetty.server:9.2.10.v20150310]
> at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[214:org.eclipse.jetty.server:9.2.10.v20150310]
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[214:org.eclipse.jetty.server:9.2.10.v20150310]
> at
> org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)[245:org.ops4j.pax.web.pax-web-jetty:4.2.2]
> at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[214:org.eclipse.jetty.server:9.2.10.v20150310]
> at
> org.eclipse.jetty.server.Server.handle(Server.java:497)[214:org.eclipse.jetty.server:9.2.10.v20150310]
> at
> org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)[214:org.eclipse.jetty.server:9.2.10.v20150310]
> at
> org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[214:org.eclipse.jetty.server:9.2.10.v20150310]
> at
> org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)[206:org.eclipse.jetty.io:9
> .2.10.v20150310]
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[217:org.eclipse.jetty.util:9.2.10.v20150310]
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[217:org.eclipse.jetty.util:9.2.10.v20150310]
> at java.lang.Thread.run(Thread.java:745)[:1.8.0_45]
>
> So I suppose it's a kind of regression here ?
>
> Rgds,
>
> Arnaud
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message