You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Kedar Panse <ke...@bancbridge.com> on 2004/06/06 23:38:09 UTC
[HTTPCLINET 3.0 -alpha] org/apache/commons/codec/DecoderException
I am trying to use HTTPClient 3.0 alpha.... getting DecoderException
OS: XP Home
Processor: P4 (Intel)
JDK: 1.5.0 beta1
import org.apache.commons.httpclient.*;
import org.apache.commons.logging.*;
import org.apache.commons.httpclient.methods.*;
public class HTTPCtest{
public static void main(String[] argv){
try{
HttpClient client = new HttpClient();
HttpMethod method = new GetMethod("http://www.google.com/");
int statusCode = client.executeMethod(method);
System.out.println(method.getResponseBodyAsString());
method.releaseConnection();
}catch(Exception e){
e.printStackTrace();
}
}
}
java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException
at
org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:202)
at
org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:88)
at HTTPCtest.main(HTTPCtest.java:11)
Exception in thread "main"
Any guesses??
Thanks,
Kedar
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [HTTPCLINET 3.0 -alpha] org/apache/commons/codec/DecoderException
Posted by Kedar Panse <ke...@bancbridge.com>.
Would like to mention Works on 1.4 .2. I guess some changes in 1.5??
Will it break in next java release?
Kedar
Kedar Panse wrote:
> I am trying to use HTTPClient 3.0 alpha.... getting DecoderException
>
> OS: XP Home
> Processor: P4 (Intel)
> JDK: 1.5.0 beta1
>
>
>
>
>
>
> import org.apache.commons.httpclient.*;
> import org.apache.commons.logging.*;
> import org.apache.commons.httpclient.methods.*;
>
> public class HTTPCtest{
> public static void main(String[] argv){
> try{
> HttpClient client = new HttpClient();
> HttpMethod method = new GetMethod("http://www.google.com/");
> int statusCode = client.executeMethod(method);
> System.out.println(method.getResponseBodyAsString());
> method.releaseConnection();
> }catch(Exception e){
> e.printStackTrace();
> }
> }
> }
>
>
>
> java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException
> at
> org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:202)
>
> at
> org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:88)
> at HTTPCtest.main(HTTPCtest.java:11)
> Exception in thread "main"
>
>
>
> Any guesses??
>
>
> Thanks,
>
> Kedar
>
>
> ---------------------------------------------------------------------
> 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: [HTTPCLINET 3.0
-alpha] org/apache/commons/codec/DecoderException
Posted by Oleg Kalnichevski <ol...@bluewin.ch>.
Commons Codec is the only new dependency for 3.0 release
Oleg
On Sun, 2004-06-06 at 23:55, Kedar Panse wrote:
> Ohh ok thanks. Are there any other libraries I need to have those are
> new for 3.0?
>
>
>
> Kedar
>
>
> Oleg Kalnichevski wrote:
>
> >Kedar,
> >HttpClient 3.0 requires Commons Codec 1.2 as a runtime dependency
> >
> >http://jakarta.apache.org/commons/codec/
> >
> >Oleg
> >
> >On Sun, 2004-06-06 at 23:38, Kedar Panse wrote:
> >
> >
> >>I am trying to use HTTPClient 3.0 alpha.... getting DecoderException
> >>
> >>OS: XP Home
> >>Processor: P4 (Intel)
> >>JDK: 1.5.0 beta1
> >>
> >>
> >>
> >>
> >>
> >>
> >>import org.apache.commons.httpclient.*;
> >>import org.apache.commons.logging.*;
> >>import org.apache.commons.httpclient.methods.*;
> >>
> >>public class HTTPCtest{
> >>
> >>
> >> public static void main(String[] argv){
> >> try{
> >> HttpClient client = new HttpClient();
> >> HttpMethod method = new GetMethod("http://www.google.com/");
> >> int statusCode = client.executeMethod(method);
> >> System.out.println(method.getResponseBodyAsString());
> >> method.releaseConnection();
> >>
> >> }catch(Exception e){
> >> e.printStackTrace();
> >> }
> >>
> >>
> >> }
> >>
> >> }
> >>
> >>
> >>
> >>java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException
> >> at
> >>org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:202)
> >> at
> >>org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:88)
> >> at HTTPCtest.main(HTTPCtest.java:11)
> >>Exception in thread "main"
> >>
> >>
> >>
> >>Any guesses??
> >>
> >>
> >>Thanks,
> >>
> >>Kedar
> >>
> >>
> >>---------------------------------------------------------------------
> >>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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [HTTPCLINET 3.0 -alpha] org/apache/commons/codec/DecoderException
Posted by Kedar Panse <ke...@bancbridge.com>.
Ohh ok thanks. Are there any other libraries I need to have those are
new for 3.0?
Kedar
Oleg Kalnichevski wrote:
>Kedar,
>HttpClient 3.0 requires Commons Codec 1.2 as a runtime dependency
>
>http://jakarta.apache.org/commons/codec/
>
>Oleg
>
>On Sun, 2004-06-06 at 23:38, Kedar Panse wrote:
>
>
>>I am trying to use HTTPClient 3.0 alpha.... getting DecoderException
>>
>>OS: XP Home
>>Processor: P4 (Intel)
>>JDK: 1.5.0 beta1
>>
>>
>>
>>
>>
>>
>>import org.apache.commons.httpclient.*;
>>import org.apache.commons.logging.*;
>>import org.apache.commons.httpclient.methods.*;
>>
>>public class HTTPCtest{
>>
>>
>> public static void main(String[] argv){
>> try{
>> HttpClient client = new HttpClient();
>> HttpMethod method = new GetMethod("http://www.google.com/");
>> int statusCode = client.executeMethod(method);
>> System.out.println(method.getResponseBodyAsString());
>> method.releaseConnection();
>>
>> }catch(Exception e){
>> e.printStackTrace();
>> }
>>
>>
>> }
>>
>> }
>>
>>
>>
>>java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException
>> at
>>org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:202)
>> at
>>org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:88)
>> at HTTPCtest.main(HTTPCtest.java:11)
>>Exception in thread "main"
>>
>>
>>
>>Any guesses??
>>
>>
>>Thanks,
>>
>>Kedar
>>
>>
>>---------------------------------------------------------------------
>>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: [HTTPCLINET 3.0 -alpha]
org/apache/commons/codec/DecoderException
Posted by Oleg Kalnichevski <ol...@bluewin.ch>.
Kedar,
HttpClient 3.0 requires Commons Codec 1.2 as a runtime dependency
http://jakarta.apache.org/commons/codec/
Oleg
On Sun, 2004-06-06 at 23:38, Kedar Panse wrote:
> I am trying to use HTTPClient 3.0 alpha.... getting DecoderException
>
> OS: XP Home
> Processor: P4 (Intel)
> JDK: 1.5.0 beta1
>
>
>
>
>
>
> import org.apache.commons.httpclient.*;
> import org.apache.commons.logging.*;
> import org.apache.commons.httpclient.methods.*;
>
> public class HTTPCtest{
>
>
> public static void main(String[] argv){
> try{
> HttpClient client = new HttpClient();
> HttpMethod method = new GetMethod("http://www.google.com/");
> int statusCode = client.executeMethod(method);
> System.out.println(method.getResponseBodyAsString());
> method.releaseConnection();
>
> }catch(Exception e){
> e.printStackTrace();
> }
>
>
> }
>
> }
>
>
>
> java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException
> at
> org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:202)
> at
> org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:88)
> at HTTPCtest.main(HTTPCtest.java:11)
> Exception in thread "main"
>
>
>
> Any guesses??
>
>
> Thanks,
>
> Kedar
>
>
> ---------------------------------------------------------------------
> 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