hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Kolyadenko" <akolyade...@gmail.com>
Subject java.lang.IllegalArgumentException: host parameter is null
Date Tue, 06 May 2008 16:06:28 GMT
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