1 Reply Latest reply on Aug 27, 2009 11:11 AM by Stan Lewis

    java.lang.ClassNotFoundException: org.apache.camel.converter.CamelConverter

    Mack Fata Newbie

      Using ESB 4.1.02, I am getting the following exception within a camel route/bundle:

       

       

      java.lang.ClassNotFoundException: org.apache.camel.converter.CamelConverter$1 not found from bundle

           at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103)

           at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)

           at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

           at org.apache.camel.util.ResolverUtil.addIfMatching(ResolverUtil.java:499)

           at org.apache.camel.osgi.OsgiResolverUtil.loadImplementationsInBundle(OsgiResolverUtil.java:141)

           at org.apache.camel.osgi.OsgiResolverUtil.findInOsgiClassLoader(OsgiResolverUtil.java:98)

           at org.apache.camel.osgi.OsgiResolverUtil.find(OsgiResolverUtil.java:77)

           at org.apache.camel.util.ResolverUtil.findAnnotated(ResolverUtil.java:267)

           at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:72)

           at org.apache.camel.impl.converter.DefaultTypeConverter.checkLoaded(DefaultTypeConverter.java:276)

           at org.apache.camel.impl.converter.DefaultTypeConverter.doConvertTo(DefaultTypeConverter.java:114)

           at org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:90)

           at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:79)

           at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:52)

           at org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:74)

           at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:52)

           at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)

           at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66)

           at org.apache.servicemix.camel.CamelProviderEndpoint.handleActiveProviderExchange(CamelProviderEndpoint.java:116)

           at org.apache.servicemix.camel.CamelProviderEndpoint.process(CamelProviderEndpoint.java:74)

           at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:627)

           at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:581)

           at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:478)

           at org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCycle.java:347)

           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

           at java.lang.Thread.run(Thread.java:619)

      Caused by: java.lang.ClassNotFoundException: org.apache.camel.converter.CamelConverter$1

           at org.apache.felix.framework.searchpolicy.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:558)

           at org.apache.felix.framework.searchpolicy.ModuleImpl.access$100(ModuleImpl.java:59)

           at org.apache.felix.framework.searchpolicy.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1427)

           at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

           at org.apache.felix.framework.searchpolicy.ModuleImpl.getClassByDelegation(ModuleImpl.java:421)

           at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1354)

           at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:746)

           at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)

           ... 26 more

      09:07:48,579 | DEBUG | x-camel-thread-2 | ResolverUtil                     | g.apache.camel.util.ResolverUtil  509 | Could not find class 'org/apache/camel/converter/NIOConverter.class' in classloader: BundleDelegatingClassLoader for . Reason: java.lang.ClassNotFoundException: org.apache.camel.converter.NIOConverter not found from bundle

      java.lang.ClassNotFoundException: org.apache.camel.converter.NIOConverter not found from bundle

           at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103)

           at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)

           at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

           at org.apache.camel.util.ResolverUtil.addIfMatching(ResolverUtil.java:499)

           at org.apache.camel.osgi.OsgiResolverUtil.loadImplementationsInBundle(OsgiResolverUtil.java:141)

           at org.apache.camel.osgi.OsgiResolverUtil.findInOsgiClassLoader(OsgiResolverUtil.java:98)

           at org.apache.camel.osgi.OsgiResolverUtil.find(OsgiResolverUtil.java:77)

           at org.apache.camel.util.ResolverUtil.findAnnotated(ResolverUtil.java:267)

           at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:72)

           at org.apache.camel.impl.converter.DefaultTypeConverter.checkLoaded(DefaultTypeConverter.java:276)

           at org.apache.camel.impl.converter.DefaultTypeConverter.doConvertTo(DefaultTypeConverter.java:114)

           at org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:90)

           at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:79)

           at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:52)

           at org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:74)

           at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:52)

           at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)

           at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66)

           at org.apache.servicemix.camel.CamelProviderEndpoint.handleActiveProviderExchange(CamelProviderEndpoint.java:116)

           at org.apache.servicemix.camel.CamelProviderEndpoint.process(CamelProviderEndpoint.java:74)

           at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:627)

           at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:581)

           at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchangeInTx(AsyncBaseLifeCycle.java:478)

           at org.apache.servicemix.common.AsyncBaseLifeCycle$2.run(AsyncBaseLifeCycle.java:347)

           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

           at java.lang.Thread.run(Thread.java:619)

      Caused by: java.lang.ClassNotFoundException: org.apache.camel.converter.NIOConverter

           at org.apache.felix.framework.searchpolicy.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:558)

           at org.apache.felix.framework.searchpolicy.ModuleImpl.access$100(ModuleImpl.java:59)

           at org.apache.felix.framework.searchpolicy.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1427)

           at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

           at org.apache.felix.framework.searchpolicy.ModuleImpl.getClassByDelegation(ModuleImpl.java:421)

           at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1354)

           at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:746)

           at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)

           ... 26 more