camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem jiang <willem.ji...@gmail.com>
Subject Re: Camel 2.11.0 -- TypeConverterLoaderException
Date Wed, 10 Jul 2013 05:30:01 GMT
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.<init>(ClassPathXmlApplicationContext.java:139)
> at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(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).




Mime
View raw message