You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Stephen Charles Huey <st...@fastmail.fm> on 2004/12/28 10:54:59 UTC

3.0 beta 1 can't find DecoderException

I have the 3.0 beta 1 HttpClient JAR in my classpath, and I get to a
point in my code where I execute a GET method on my site, but it gives
me this:

java.lang.NoClassDefFoundError:
org/apache/commons/codec/DecoderException
  at
  org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:217)
  at
  org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:88)
  at BasicConnect.main(BasicConnect.java:27)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)


I extracted the JAR, and I can't see any directory for codec...am I
supposed to download something else with it?  I have commons logging...

Thanks,
Stephen

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: 3.0 beta 1 can't find DecoderException

Posted by Stephen Charles Huey <st...@fastmail.fm>.
Whoops...sorry, it's late here!  Yeah, I was thinking that codec must be
within the HttpClient JAR...


----- Original message -----
From: "Arto Pastinen" <ar...@ofw.fi>
To: "Jakarta Commons Users List" <co...@jakarta.apache.org>
Date: Tue, 28 Dec 2004 12:01:28 +0200
Subject: Re: 3.0 beta 1 can't find DecoderException

Hi!

Can't you add commons-codec to your classpath?

Artsi

On Tue, 2004-12-28 at 11:54, Stephen Charles Huey wrote:
> I have the 3.0 beta 1 HttpClient JAR in my classpath, and I get to a
> point in my code where I execute a GET method on my site, but it gives
> me this:
> 
> java.lang.NoClassDefFoundError:
> org/apache/commons/codec/DecoderException
>   at
>   org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:217)
>   at
>   org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:88)
>   at BasicConnect.main(BasicConnect.java:27)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>   at java.lang.reflect.Method.invoke(Unknown Source)
> 
> 
> I extracted the JAR, and I can't see any directory for codec...am I
> supposed to download something else with it?  I have commons logging...
> 
> Thanks,
> Stephen
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: 3.0 beta 1 can't find DecoderException

Posted by Arto Pastinen <ar...@ofw.fi>.
Hi!

Can't you add commons-codec to your classpath?

Artsi

On Tue, 2004-12-28 at 11:54, Stephen Charles Huey wrote:
> I have the 3.0 beta 1 HttpClient JAR in my classpath, and I get to a
> point in my code where I execute a GET method on my site, but it gives
> me this:
> 
> java.lang.NoClassDefFoundError:
> org/apache/commons/codec/DecoderException
>   at
>   org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:217)
>   at
>   org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:88)
>   at BasicConnect.main(BasicConnect.java:27)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>   at java.lang.reflect.Method.invoke(Unknown Source)
> 
> 
> I extracted the JAR, and I can't see any directory for codec...am I
> supposed to download something else with it?  I have commons logging...
> 
> Thanks,
> Stephen
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org