camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Newbie- problem with HTTP component
Date Mon, 19 Jan 2009 05:12:51 GMT
Hi

Looks like a classpath issue. You need the .jar containing this class:
Caused by: java.lang.NoClassDefFoundError:
org/apache/commons/codec/DecoderException

How do you run your application?

If you are using pure maven then it usually can compute the classpath
for you so that is normally not a problem.


On Sun, Jan 18, 2009 at 4:58 PM, petedao <petedao@gmail.com> wrote:
>
> Hello
>
> I am just starting to use Activemq, and I have some problems.
>
> With  <to uri="http://192.168.1.101:10000/testServlet"/>, I am getting the
> following error with Camel 1.5.
>
> DEBUG AnnotationTypeConverterLoader  - Loading converter class:
> org.apache.camel.component.http.HttpConverter
> ERROR DeadLetterChannel              - Failed delivery for exchangeId:
> ID-localhost.localdomain/57652-1232322279735/0-0. On delivery attempt: 0
> caught: java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException
> java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
>        at
> org.apache.camel.component.http.HttpMethods.createMethod(HttpMethods.java:51)
>        at
> org.apache.camel.component.http.HttpProducer.createMethod(HttpProducer.java:181)
>        at
> org.apache.camel.component.http.HttpProducer.process(HttpProducer.java:65)
>        at
> org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
>        at
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:75)
>        at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:63)
>        at
> org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:172)
>        at
> org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:93)
>        at org.apache.camel.processor.Pipeline.process(Pipeline.java:115)
>        at org.apache.camel.processor.Pipeline.process(Pipeline.java:89)
>        at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:63)
>        at
> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:47)
>        at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)
>        at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66)
>        at
> org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:72)
>        at
> org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:531)
>        at
> org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:466)
>        at
> org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:435)
>        at
> org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:322)
>        at
> org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:260)
>        at
> org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:944)
>        at
> org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:875)
>        at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.reflect.InvocationTargetException
>        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>        at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>        at
> org.apache.camel.component.http.HttpMethods.createMethod(HttpMethods.java:49)
>        ... 22 more
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/commons/codec/DecoderException
>        at
> org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:220)
>        at
> org.apache.commons.httpclient.methods.ExpectContinueMethod.<init>(ExpectContinueMethod.java:93)
>        at
> org.apache.commons.httpclient.methods.EntityEnclosingMethod.<init>(EntityEnclosingMethod.java:119)
>        at
> org.apache.commons.httpclient.methods.PostMethod.<init>(PostMethod.java:106)
>        ... 27 more
> Caused by: java.lang.ClassNotFoundException:
> org.apache.commons.codec.DecoderException
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>        ... 31 more
>
>
> Could someone please help me out?
> --
> View this message in context: http://www.nabble.com/Newbie--problem-with-HTTP-component-tp21529295s22882p21529295.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/

Mime
View raw message