commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eduardo Francos <efranco...@incontext.fr>
Subject [HTTPClient] NullPointerException in continuation status line
Date Thu, 06 Feb 2003 12:32:21 GMT
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.
Mime
View raw message