hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zulfi Umrani" <zumr...@novell.com>
Subject Re: Following code throws IllegalArgumentException: host parameter is null! Does any one know why?
Date Mon, 09 Jun 2003 21:54:42 GMT
This problem got solved when I pass the HostConfiguration object in the
"executeMethod" method. Looks like it's redundant, but did get rid of
the exception!

>>> adrian@intencha.com 6/9/2003 8:46:03 PM >>>

On Tuesday, June 10, 2003, at 07:24  AM, Zulfi Umrani wrote:

> Following code throws IllegalArgumentException: host parameter is
null!
> Does any one know why?

Because the host parameter is null...  somewhere, somehow.  When 
reporting an exception with any Java product, please include the full 
stack trace of the exception so that we know where to start looking.  
You also need to tell us what version your using both of the JRE and 
the product as well as what OS you're running on.  (Including sample 
code is great, thanks!)

With HttpClient there's even more useful information you can extract as

well in the form of a debug log.  You should take a look at 
http://jakarta.apache.org/commons/httpclient/troubleshooting.html which

outlines the steps to take when you have a problem with HttpClient.  In

particular take a look at the logging guide at 
http://jakarta.apache.org/commons/httpclient/logging.html u 

With that information we're likely to be a lot more helpful.

Regards,

Adrian Sutton.


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


Mime
View raw message