Hi,
I moved from Smx 4.5.3 to 5.0.1. Both were on a Linux Ubuntu 12.10 with Java
1.7 installed.
After updgrading the version dependencies of my project to the corresponding
ones of Smx 5.0.1, I deployed it in the container.
My module is a netty tcp server which routes (using camel) to an activemq
message queue. For serializing objects I'm using avro same way like this:
*<camel-osgi:camelContext id="ccListener" trace="true"
xmlns="http://camel.apache.org/schema/spring">
<endpoint id="activemqEndpointTest" uri="activemq:test"/>
<dataFormats>
<avro id="avroDataFormat" instanceClassName="com.test.avro.Test"/>
</dataFormats>
<route id="listenerTest">
<from ref="nettyEndpointTest"/>
<marshal ref="avroDataFormat"/>
<to ref="activemqEndpointTest" pattern="InOut"/>
<unmarshal ref="avroDataFormat"/>
</route>
</camel-osgi:camelContext>*
When I try to deploy my kar package the server, smx throws the following
exception:
*2014-05-22 13:41:01,824 | ERROR | OsgiExtenderThread-8 |
ContextLoaderListener | 111 -
org.springframework.osgi.extender - 1.2.1 | [] Application context refresh
failed (OsgiBundleXmlApplicationContext(bundle=com.test.listener-test,
config=osgibundle:/META-INF/spring/*.xml))
org.apache.camel.RuntimeCamelException: java.lang.ClassNotFoundException:
org.apache.avro.generic.GenericContainer
at
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1363)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:120)[114:org.apache.camel.camel-spring:2.12.3]
at
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:303)[114:org.apache.camel.camel-spring:2.12.3]
at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:96)[80:org.springframework.context:3.2.4.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)[80:org.springframework.context:3.2.4.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:948)[80:org.springframework.context:3.2.4.RELEASE]
at
org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)[112:org.springframework.osgi.core:1.2.1]
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)[112:org.springframework.osgi.core:1.2.1]
at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[112:org.springframework.osgi.core:1.2.1]
at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[112:org.springframework.osgi.core:1.2.1]
at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[111:org.springframework.osgi.extender:1.2.1]
at java.lang.Thread.run(Unknown Source)[:1.7.0]
Caused by: java.lang.ClassNotFoundException:
org.apache.avro.generic.GenericContainer
at
org.apache.camel.impl.DefaultClassResolver.resolveMandatoryClass(DefaultClassResolver.java:53)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.dataformat.avro.AvroDataFormat.loadSchema(AvroDataFormat.java:104)[190:org.apache.camel.camel-avro:2.12.3]
at
org.apache.camel.dataformat.avro.AvroDataFormat.doStart(AvroDataFormat.java:74)[190:org.apache.camel.camel-avro:2.12.3]
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.processor.MarshalProcessor.doStart(MarshalProcessor.java:118)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:79)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:79)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.processor.interceptor.TraceInterceptor.doStart(TraceInterceptor.java:358)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:1154)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:41)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.support.ChildServiceSupport.start(ChildServiceSupport.java:28)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.processor.interceptor.DefaultChannel.doStart(DefaultChannel.java:153)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:61)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.processor.MulticastProcessor.doStart(MulticastProcessor.java:991)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:59)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:103)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:89)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:79)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:74)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.impl.RouteService.startChildService(RouteService.java:329)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.impl.RouteService.warmUp(RouteService.java:158)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:2150)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:2080)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1868)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1740)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1579)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1547)[108:org.apache.camel.camel-core:2.12.3]
at
org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:221)[114:org.apache.camel.camel-spring:2.12.3]
at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:118)[114:org.apache.camel.camel-spring:2.12.3]
... 10 more
*
My project was working correctly on Smx 4.5.3.
Could anyone help me? I don't know if it is a bug or some dependency missing
from my side.
Regards,
Oscar
--
View this message in context:
http://servicemix.396122.n5.nabble.com/SMX-5-0-1-RuntimeCamelException-ClassNotFoundException-org-apache-avro-generic-GenericContainer-tp5720393.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.