hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Kolyadenko" <akolyade...@gmail.com>
Subject Re: java.lang.IllegalArgumentException: host parameter is null
Date Wed, 07 May 2008 12:30:48 GMT
Found the problem. I need to use http://yahoo.com instead of yahoo.com.

Thanks all!

On Tue, May 6, 2008 at 11:06 AM, Andrey Kolyadenko <akolyadenko@gmail.com>
wrote:

> Hi,
>
> I am trying to start TrivialApp application in following way: java
> TrivialApp yahoo.com, and have strange error all time:
>
> Exception in thread "main" java.lang.IllegalArgumentException: host
> parameter is null
> at
> org.apache.commons.httpclient.HttpConnection.<init>(HttpConnection.java:206)
> at
> org.apache.commons.httpclient.HttpConnection.<init>(HttpConnection.java:155)
> at
> org.apache.commons.httpclient.SimpleHttpConnectionManager.getConnectionWithTimeout(SimpleHttpConnectionManager.java:175)
> at
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:153)
> at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
> at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
>
> Could you please explain me what the problem?
>
> Thank you.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message