Hi Yeah that is fixed in the next AMQ 5.6 release. https://issues.apache.org/jira/browse/AMQ-3458
On Sat, Feb 4, 2012 at 1:36 PM, MarkD <[email protected]> wrote: > Hi all, > > I've got a problem with an OSGi app that adds some route via a > ServiceFactory using Spring to define the beans and manage the services. I > think it began after I moved to the latest Camel version (2.8 and up). The > routes are no longer started and therefore only exist as RouteDefinitions in > the CamelContext. > > I noticed the following exception on start up which could be the root cause > of the problem. I'm almost 100% sure I've not changed anything else so i'm > wondering if there is something new in the discovery of converters. > > Exception in thread "SpringOsgiExtenderThread-2" > 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.activemq.camel.converter] > at > org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1196) > at > org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:1019) > at > org.apache.camel.impl.DefaultCamelContext.getTypeConverterRegistry(DefaultCamelContext.java:1034) > at > org.apache.camel.impl.DefaultCamelContext.forceLazyInitialization(DefaultCamelContext.java:2003) > at > org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1481) > at > org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1391) > 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:1359) > 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:240) > 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.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235) > at > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358) > at > org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) > at > org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320) > at > org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132) > at java.lang.Thread.run(Thread.java:662) > 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.activemq.camel.converter] > at > org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:117) > at > org.apache.camel.impl.converter.BaseTypeConverterRegistry.loadTypeConverters(BaseTypeConverterRegistry.java:413) > at > org.apache.camel.impl.converter.DefaultTypeConverter.doStart(DefaultTypeConverter.java:42) > at > org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60) > at > org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:1675) > at > org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:910) > at > org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:1017) > > -- > View this message in context: > http://camel.465427.n5.nabble.com/TypeConverterLoaderException-with-ActiveMQ-route-in-OSGi-tp5456103p5456103.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
