commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eduardo Francos <>
Subject [HTTPClient] NullPointerException in continuation status line
Date Thu, 06 Feb 2003 12:32:21 GMT

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:

The "correct" url is

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 
View raw message