You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by sarfaraj <sa...@gmail.com> on 2013/04/03 19:45:11 UTC

Failed to load type converters because of: Cannot find any type converter classes from the following packages: [org.apache.activemq.camel.converter]

Hi,

I got following error .... I am usning servicemix 4.4.2 V, which has camel
2.8.5.

Could someone tell me what is wrong with my app ?

>>>>>>>>>>>>>>>>>>

19:14:36,454 | ERROR | ExtenderThread-4 | ContextLoaderListener            |
76 - org.springframework.osgi.extender - 1.2.1 | Application context refresh
failed (OsgiBundleXmlApplicationContext(bundle=my-camel-context,
config=osgibundle:/META-INF/spring/*.xml))
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:1171)[91:org.apache.camel.camel-core:2.8.5]
	at
org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:996)[91:org.apache.camel.camel-core:2.8.5]
	at
org.apache.camel.impl.DefaultCamelContext.getTypeConverterRegistry(DefaultCamelContext.java:1011)[91:org.apache.camel.camel-core:2.8.5]
	at
org.apache.camel.impl.DefaultCamelContext.forceLazyInitialization(DefaultCamelContext.java:1971)[91:org.apache.camel.camel-core:2.8.5]
	at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1445)[91:org.apache.camel.camel-core:2.8.5]
	at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1357)[91:org.apache.camel.camel-core:2.8.5]
	at
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:178)[94:org.apache.camel.camel-spring:2.8.5]
	at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:67)[91:org.apache.camel.camel-core:2.8.5]
	at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:54)[91:org.apache.camel.camel-core:2.8.5]
	at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1325)[91:org.apache.camel.camel-core:2.8.5]
	at
org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:223)[94:org.apache.camel.camel-spring:2.8.5]
	at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:117)[94:org.apache.camel.camel-spring:2.8.5]
	at
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:240)[94:org.apache.camel.camel-spring:2.8.5]
	at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)[65:org.springframework.context:3.0.6.RELEASE]
	at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)[65:org.springframework.context:3.0.6.RELEASE]
	at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)[65:org.springframework.context:3.0.6.RELEASE]
	at
org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)[73:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)[73:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[73:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[73:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[76:org.springframework.osgi.extender:1.2.1]
	at java.lang.Thread.run(Thread.java:662)[:1.6.0_25]
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)[91:org.apache.camel.camel-core:2.8.5]
	at
org.apache.camel.impl.converter.BaseTypeConverterRegistry.loadTypeConverters(BaseTypeConverterRegistry.java:453)[91:org.apache.camel.camel-core:2.8.5]
	at
org.apache.camel.impl.converter.DefaultTypeConverter.doStart(DefaultTypeConverter.java:42)[91:org.apache.camel.camel-core:2.8.5]
	at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:67)[91:org.apache.camel.camel-core:2.8.5]
	at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:54)[91:org.apache.camel.camel-core:2.8.5]
	at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:56)[91:org.apache.camel.camel-core:2.8.5]
	at
org.apache.camel.impl.DefaultCamelContext.startServices(DefaultCamelContext.java:1643)[91:org.apache.camel.camel-core:2.8.5]
	at
org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:894)[91:org.apache.camel.camel-core:2.8.5]
	at
org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:994)[91:org.apache.camel.camel-core:2.8.5]
	... 20 more


Just For additional information My camel route has following beans. Is it
related to above error ?

<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:camel="http://camel.apache.org/schema/spring"
       xmlns:osgix="http://www.springframework.org/schema/osgi-compendium"
       xmlns:ctx="http://www.springframework.org/schema/context"
       
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
       http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd
       http://www.springframework.org/schema/osgi-compendium
http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd
       http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
       ">



--
View this message in context: http://camel.465427.n5.nabble.com/Failed-to-load-type-converters-because-of-Cannot-find-any-type-converter-classes-from-the-following--tp5730293.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Failed to load type converters because of: Cannot find any type converter classes from the following packages: [org.apache.activemq.camel.converter]

Posted by amitwave <am...@gmail.com>.
Hi,
Did you get any solution?



--
View this message in context: http://camel.465427.n5.nabble.com/Failed-to-load-type-converters-because-of-Cannot-find-any-type-converter-classes-from-the-following--tp5730293p5739743.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Failed to load type converters because of: Cannot find any type converter classes from the following packages: [org.apache.activemq.camel.converter]

Posted by sarfaraj <sa...@gmail.com>.
After restarting servicemix again i see the same above error. I don't know
what happening exactly.

Sometime i get that error sometime i am not.

Any one had the same experience ?



--
View this message in context: http://camel.465427.n5.nabble.com/Failed-to-load-type-converters-because-of-Cannot-find-any-type-converter-classes-from-the-following--tp5730293p5730317.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Failed to load type converters because of: Cannot find any type converter classes from the following packages: [org.apache.activemq.camel.converter]

Posted by sarfaraj <sa...@gmail.com>.
I am able to resolved this. It's due to my application error. 



--
View this message in context: http://camel.465427.n5.nabble.com/Failed-to-load-type-converters-because-of-Cannot-find-any-type-converter-classes-from-the-following--tp5730293p5730309.html
Sent from the Camel - Users mailing list archive at Nabble.com.