You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Eduardo Francos <ef...@incontext.fr> on 2003/02/06 13:32:21 UTC

[HTTPClient] NullPointerException in continuation status line

Hi,

Configuration: HTTPClient 2.0 Alpha 2

I'm getting a NullPointerException instead of the expected 404 (the stack trace is below) when I try to get 
the following url:
http://www.pc.ibm.com/us/accessories/monitors/p_allmodelos.html

The "correct" url is
http://www.pc.ibm.com/us/accessories/monitors/p_allmodels.html

I traced the problem to HttpMethodBase.readResponseHeaders and found that the response contains a header 
with value (note the space at the beginning) " The file does not exist or is read-protected." *but with a 
null name*, so when calling setResponseHeader(header) the call header.getName().toLowerCase() throws the 
exception.