Sounds like you got mixed versions of Camel on the classpath On Thu, May 1, 2014 at 5:18 PM, Charles Moulliard <[email protected]> wrote: > Hi, > > My camel route testing Drools + Camel works fine with Camel 2.10 but when I > use Camel 2.12.x, I get this exception : > > 17:15:42.148 [main] DEBUG o.a.c.i.RouteService - Shutting down child > service on route: testRoute -> Pipeline[[Channel[BeanProcessor[bean: > personHelper]], > Channel[sendTo(Endpoint[kie://ksession1?action=insertBody])], > Channel[choice{when Filter[if: Simple: ${body.canDrink} do: > Channel[Log(Bar)[Person ${body.name} can go to the bar]]], otherwise: > Channel[Log(Home)[Person ${body.name} is staying home]]}]]] > 17:15:42.149 [main] WARN o.a.c.s.SpringCamelContext - Error occurred while > shutting down service: org.apache.camel.impl.RouteService@5617ade8. This > exception will be ignored. > java.lang.AbstractMethodError: > org.apache.camel.converter.jaxb.FallbackTypeConverter.allowNull()Z > at > org.apache.camel.impl.converter.BaseTypeConverterRegistry.doConvertTo(BaseTypeConverterRegistry.java:317) > ~[camel-core-2.12.3.jar:2.12.3] > at > org.apache.camel.impl.converter.BaseTypeConverterRegistry.convertTo(BaseTypeConverterRegistry.java:113) > ~[camel-core-2.12.3.jar:2.12.3] > at > org.apache.camel.impl.converter.BaseTypeConverterRegistry.convertTo(BaseTypeConverterRegistry.java:98) > ~[camel-core-2.12.3.jar:2.12.3] > at > org.apache.camel.util.CamelContextHelper.convertTo(CamelContextHelper.java:93) > ~[camel-core-2.12.3.jar:2.12.3] > at > org.apache.camel.component.bean.RegistryBean.getProcessor(RegistryBean.java:101) > ~[camel-core-2.12.3.jar:2.12.3] > at > org.apache.camel.component.bean.BeanProcessor.getProcessor(BeanProcessor.java:170) > ~[camel-core-2.12.3.jar:2.12.3] > at > org.apache.camel.component.bean.BeanProcessor.doStop(BeanProcessor.java:220) > ~[camel-core-2.12.3.jar:2.12.3] > at org.apache.camel.support.ServiceSupport.stop(ServiceSupport.java:102) > [camel-core-2.12.3.jar:2.12.3] > at org.apache.camel.util.ServiceHelper.stopService(ServiceHelper.java:141) > ~[camel-core-2.12.3.jar:2.12.3] > at org.apache.camel.util.ServiceHelper.stopServices(ServiceHelper.java:163) > ~[camel-core-2.12.3.jar:2.12.3] > at org.apache.camel.util.ServiceHelper.stopServices(ServiceHelper.java:121) > ~[camel-core-2.12.3.jar:2.12.3] > at > org.apache.camel.processor.interceptor.DefaultChannel.doStop(DefaultChannel.java:158) > ~[camel-core-2.12.3.jar:2.12.3] > at org.apache.camel.support.ServiceSupport.stop(ServiceSupport.java:102) > [camel-core-2.12.3.jar:2.12.3] > at org.apache.camel.util.ServiceHelper.stopService(ServiceHelper.java:141) > ~[camel-core-2.12.3.jar:2.12.3] > at org.apache.camel.util.ServiceHelper.stopServices(ServiceHelper.java:163) > ~[camel-core-2.12.3.jar:2.12.3] > at org.apache.camel.util.ServiceHelper.stopService(ServiceHelper.java:143) > ~[camel-core-2.12.3.jar:2.12.3] > at org.apache.camel.util.ServiceHelper.stopServices(ServiceHelper.java:163) > ~[camel-core-2.12.3.jar:2.12.3] > at org.apache.camel.util.ServiceHelper.stopServices(ServiceHelper.java:121) > ~[camel-core-2.12.3.jar:2.12.3] > at > org.apache.camel.processor.MulticastProcessor.doStop(MulticastProcessor.java:1008) > ~[camel-core-2.12.3.jar:2.12.3] > at org.apache.camel.support.ServiceSupport.stop(ServiceSupport.java:102) > [camel-core-2.12.3.jar:2.12.3] > at org.apache.camel.util.ServiceHelper.stopService(ServiceHelper.java:141) > ~[camel-core-2.12.3.jar:2.12.3] > at org.apache.camel.util.ServiceHelper.stopServices(ServiceHelper.java:163) > ~[camel-core-2.12.3.jar:2.12.3] > at org.apache.camel.util.ServiceHelper.stopServices(ServiceHelper.java:121) > ~[camel-core-2.12.3.jar:2.12.3] > at > org.apache.camel.processor.DelegateAsyncProcessor.doStop(DelegateAsyncProcessor.java:83) > ~[camel-core-2.12.3.jar:2.12.3] > at org.apache.camel.support.ServiceSupport.stop(ServiceSupport.java:102) > [camel-core-2.12.3.jar:2.12.3] > at org.apache.camel.util.ServiceHelper.stopService(ServiceHelper.java:141) > ~[camel-core-2.12.3.jar:2.12.3] > at > org.apache.camel.util.ServiceHelper.stopAndShutdownService(ServiceHelper.java:204) > ~[camel-core-2.12.3.jar:2.12.3] > at > org.apache.camel.impl.RouteService.stopChildService(RouteService.java:348) > ~[camel-core-2.12.3.jar:2.12.3] > at org.apache.camel.impl.RouteService.doStop(RouteService.java:219) > ~[camel-core-2.12.3.jar:2.12.3] > at > org.apache.camel.support.ChildServiceSupport.stop(ChildServiceSupport.java:74) > ~[camel-core-2.12.3.jar:2.12.3] > at > org.apache.camel.support.ChildServiceSupport.stop(ChildServiceSupport.java:98) > ~[camel-core-2.12.3.jar:2.12.3] > at org.apache.camel.util.ServiceHelper.stopService(ServiceHelper.java:141) > ~[camel-core-2.12.3.jar:2.12.3] > at > org.apache.camel.util.ServiceHelper.stopAndShutdownService(ServiceHelper.java:204) > ~[camel-core-2.12.3.jar:2.12.3] > at > org.apache.camel.impl.DefaultCamelContext.shutdownServices(DefaultCamelContext.java:1892) > [camel-core-2.12.3.jar:2.12.3] > at > org.apache.camel.impl.DefaultCamelContext.shutdownServices(DefaultCamelContext.java:1917) > [camel-core-2.12.3.jar:2.12.3] > at > org.apache.camel.impl.DefaultCamelContext.shutdownServices(DefaultCamelContext.java:1905) > [camel-core-2.12.3.jar:2.12.3] > at > org.apache.camel.impl.DefaultCamelContext.doStop(DefaultCamelContext.java:1759) > [camel-core-2.12.3.jar:2.12.3] > at org.apache.camel.support.ServiceSupport.stop(ServiceSupport.java:102) > [camel-core-2.12.3.jar:2.12.3] > at > org.apache.camel.test.junit4.CamelTestSupport.doStopCamelContext(CamelTestSupport.java:450) > [camel-test-spring-2.12.3.jar:2.12.3] > at > org.apache.camel.test.junit4.CamelTestSupport.tearDown(CamelTestSupport.java:351) > [camel-test-spring-2.12.3.jar:2.12.3] > at > org.apache.camel.test.spring.CamelSpringTestSupport.tearDown(CamelSpringTestSupport.java:114) > [camel-test-spring-2.12.3.jar:2.12.3] > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > ~[na:1.7.0_51] > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > ~[na:1.7.0_51] > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > ~[na:1.7.0_51] > at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] > at > org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) > [junit-4.11.jar:na] > at > org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) > [junit-4.11.jar:na] > at > org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) > [junit-4.11.jar:na] > at > org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33) > [junit-4.11.jar:na] > at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) > [junit-4.11.jar:na] > > code : > https://github.com/cmoulliard/droolsjbpm-osgi-examples/blob/master/spring-camel-decision-table/src/test/java/org/drools/camel/example/CamelContextXmlTest.java > > What could be the reason ? > > Regards, > > > -- > Charles Moulliard > Apache Committer / Architect @RedHat > Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
-- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/
