Camel 2.11.0 -- TypeConverterLoaderException
Hello, We switched from camel 2.9.0 to 2.11.0 version. However, when we load the camel context (using springs dsl), we get following exception: Exception in thread "main" org.apache.camel.RuntimeCamelException: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages: [org.apache.camel.scala.converter.ScalaMutableCollections, org.apache.camel.scala.converter.ScalaOption, org.apache.camel.scala.converter.ScalaImmutableCollections] at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1338) at org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:1091) at org.apache.camel.impl.DefaultCamelContext.getTypeConverterRegistry(DefaultCamelContext.java:1106) at org.apache.camel.impl.DefaultCamelContext.forceLazyInitialization(DefaultCamelContext.java:2154) at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1573) at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1478) at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:179) at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1446) at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:228) at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:118) at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:287) 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.(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83) .. ... ... Caused by: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages: [org.apache.camel.scala.converter.ScalaMutableCollections, org.apache.camel.scala.converter.ScalaOption, org.apache.camel.scala.converter.ScalaImmutableCollections] at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:117) at org.apache.camel.impl.converter.BaseTypeConverterRegistry.loadTypeConverters(BaseTypeConverterRegistry.java:511) at org.apache.camel.impl.converter.DefaultTypeConverter.doStart(DefaultTypeConverter.java:42) at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:1803) at org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:959) at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:920) at org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:1089) ... 19 more Is this because of camel-scala-2.9.0-2.11.0.jar ? Do we need to add any more jars..? Thank you, Regards vkarkhanis -- View this message in context: http://camel.465427.n5.nabble.com/Camel-2-11-0-TypeConverterLoaderException-tp5735404.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel 2.11.0 -- TypeConverterLoaderException
Hi, Can you check if there are two camel-scala jars in you class path and the scala version that you are using? BTW, if you don't use the scala, you can just move the camel-scala jars away directly. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Wednesday, July 10, 2013 at 11:36 AM, vkarkhanis wrote: > Hello, > We switched from camel 2.9.0 to 2.11.0 version. However, when we load the > camel context (using springs dsl), we get following exception: > > > Exception in thread "main" org.apache.camel.RuntimeCamelException: > org.apache.camel.TypeConverterLoaderException: Failed to load type > converters because of: Cannot find any type converter classes from the > following packages: > [org.apache.camel.scala.converter.ScalaMutableCollections, > org.apache.camel.scala.converter.ScalaOption, > org.apache.camel.scala.converter.ScalaImmutableCollections] > at > org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1338) > at > org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:1091) > at > org.apache.camel.impl.DefaultCamelContext.getTypeConverterRegistry(DefaultCamelContext.java:1106) > at > org.apache.camel.impl.DefaultCamelContext.forceLazyInitialization(DefaultCamelContext.java:2154) > at > org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1573) > at > org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1478) > at > org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:179) > at > org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) > at > org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1446) > at > org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:228) > at > org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:118) > at > org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:287) > 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.(ClassPathXmlApplicationContext.java:139) > at > org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83) > .. > ... > ... > > Caused by: org.apache.camel.TypeConverterLoaderException: Failed to load > type converters because of: Cannot find any type converter classes from the > following packages: > [org.apache.camel.scala.converter.ScalaMutableCollections, > org.apache.camel.scala.converter.ScalaOption, > org.apache.camel.scala.converter.ScalaImmutableCollections] > at > org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:117) > at > org.apache.camel.impl.converter.BaseTypeConverterRegistry.loadTypeConverters(BaseTypeConverterRegistry.java:511) > at > org.apache.camel.impl.converter.DefaultTypeConverter.doStart(DefaultTypeConverter.java:42) > at > org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) > at > org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:1803) > at > org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:959) > at > org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:920) > at > org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:1089) > ... 19 more > > > Is this because of camel-scala-2.9.0-2.11.0.jar ? > Do we need to add any more jars..? > > > Thank you, > Regards > > vkarkhanis > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-2-11-0-TypeConverterLoaderException-tp5735404.html > Sent from the Camel - Users mailing list archive at Nabble.com > (http://Nabble.com).
Re: Camel 2.11.0 -- TypeConverterLoaderException
Hello Willem, Thanks for the reply. We have following two jars in the classpath: 1. camel-scala-2.11.0.jar 2. camel-scala_2.9-2.11.0.jar Can you please let me know if you are referring to the above two jars. Thank you, Regards vkarkhanis -- View this message in context: http://camel.465427.n5.nabble.com/Camel-2-11-0-TypeConverterLoaderException-tp5735404p5735427.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel 2.11.0 -- TypeConverterLoaderException
Which Scala version do you use? Best, Christian Sent from a mobile device Am 10.07.2013 12:34 schrieb "vkarkhanis" : > Hello Willem, > Thanks for the reply. > > We have following two jars in the classpath: > > 1. camel-scala-2.11.0.jar > 2. camel-scala_2.9-2.11.0.jar > > Can you please let me know if you are referring to the above two jars. > > Thank you, > Regards > > vkarkhanis > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-2-11-0-TypeConverterLoaderException-tp5735404p5735427.html > Sent from the Camel - Users mailing list archive at Nabble.com. >
Re: Camel 2.11.0 -- TypeConverterLoaderException
Hello, Frankly, we don't use Scala at all ! We just wanted to switch to camel 2.9.0 to 2.11.0 and would still be java. Thank you, Regards vkarkhanis -- View this message in context: http://camel.465427.n5.nabble.com/Camel-2-11-0-TypeConverterLoaderException-tp5735404p5735432.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel 2.11.0 -- TypeConverterLoaderException
Than remove these both jar files and try again. Best, Christian Sent from a mobile device Am 10.07.2013 13:16 schrieb "vkarkhanis" : > Hello, > Frankly, we don't use Scala at all ! We just wanted to switch to camel > 2.9.0 > to 2.11.0 and would still be java. > > Thank you, > Regards > vkarkhanis > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-2-11-0-TypeConverterLoaderException-tp5735404p5735432.html > Sent from the Camel - Users mailing list archive at Nabble.com. >