Hi It looks like a classpath problem with incompatible JARs. Make sure you have the same version of Spring JARs etc. Also it depends on which version of Spring you use, that is supported by Camel or ActiveMQ. For example the later releases of Camel requires Spring 3.0+.
On Mon, Sep 17, 2012 at 1:08 AM, fbotti <fbo...@gmail.com> wrote: > Hi guys, > I have a problem while i'm implementing a consumer from an > activeMQ queue. The use case would be: consume from a queue proccess that > message and then create a message on another route. This is my Java-DSL > route: > > from("activemq:queue:personasTrigger") > .to("bean:MyProcessor") > .log("testing:PersonasTrigger?level=INFO") > .inOnly("activemq:queue:personas"); > > I believe that I have some dependencies in my pom that are missing but I > cannot get to the point. The stack trace that I'm getting while I execute > with mvn camel:run is: > > > org.springframework.jms.listener.AbstractMessageListenerContainer.setErrorHandler(Lorg/springframework/util/ErrorHandler;)V > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > org.apache.maven.lifecycle.LifecycleExecutionException > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) > at > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > Caused by: org.apache.maven.plugin.MojoExecutionException > at org.apache.camel.maven.RunMojo.execute(RunMojo.java:482) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) > ... 17 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:440) > at java.lang.Thread.run(Thread.java:662) > Caused by: java.lang.NoSuchMethodError: > org.springframework.jms.listener.AbstractMessageListenerContainer.setErrorHandler(Lorg/springframework/util/ErrorHandler;)V > at > org.apache.camel.component.jms.JmsConfiguration.configureMessageListenerContainer(JmsConfiguration.java:901) > at > org.apache.camel.component.jms.JmsConfiguration.createMessageListenerContainer(JmsConfiguration.java:375) > at > org.apache.camel.component.jms.JmsEndpoint.createMessageListenerContainer(JmsEndpoint.java:190) > at > org.apache.camel.component.jms.JmsEndpoint.createConsumer(JmsEndpoint.java:169) > at > org.apache.camel.component.jms.JmsEndpoint.createConsumer(JmsEndpoint.java:74) > at > org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:65) > at > org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:80) > at org.apache.camel.impl.RouteService.warmUp(RouteService.java:134) > at > org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:1921) > at > org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1849) > at > org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1642) > at > org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1531) > at > org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1413) > at > org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:181) > at > org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60) > at > org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1381) > at > org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:230) > at > org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:120) > at > org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:242) > at > org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97) > at > org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303) > at > org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911) > at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428) > at > org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) > at > org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93) > at > org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:186) > at org.apache.camel.spring.Main.doStart(Main.java:140) > at > org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60) > at org.apache.camel.main.MainSupport.run(MainSupport.java:140) > at org.apache.camel.main.MainSupport.run(MainSupport.java:326) > at org.apache.camel.spring.Main.main(Main.java:73) > ... 6 more > > > TIA, > > Federico > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/ActiveMQ-route-not-responding-tp5719447.html > Sent from the Camel Development mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen