You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2005/02/14 22:51:03 UTC

DO NOT REPLY [Bug 33563] - 3.0 RC1 NullPointerException in new GetMethod

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33563>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33563


olegk@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Additional Comments From olegk@apache.org  2005-02-14 22:51 -------
I am unable to reproduce the problem. I get 'Exception in thread "main"
java.lang.IllegalArgumentException: host parameter is null', which is perfectly
okay.

HttpClient client = new HttpClient();
GetMethod httpget = new GetMethod("/foo/");
try {
  agent.executeMethod(httpget);
  System.out.println(httpget.getStatusLine());
  System.out.println(httpget.getResponseBodyAsString());
} finally {
  httpget.releaseConnection();
}

Feel free to reopen the bug if you can demonstrate the problem with a JUnit test
case

Oleg

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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