commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kedar Panse <ke...@bancbridge.com>
Subject Re: [HTTPCLINET 3.0 -alpha] org/apache/commons/codec/DecoderException
Date Sun, 06 Jun 2004 21:42:40 GMT
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


Mime
View raw message