You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Oleg Kalnichevski <ol...@apache.org> on 2005/12/09 23:28:48 UTC
Re: [HttpClient] : Exception comes while executing GET
On Fri, 2005-12-09 at 14:31 -0500, Rajat Sharma wrote:
> This one is interesting. I got an exception in
>
> HttpClientInstance.executeMethod(getMethodInstance)
>
>
> StackTrace is as follows :
>
> Dec 9, 2005 2:13:09 PM org.apache.commons.httpclient.HttpMethodBase processRequest
> INFO: Recoverable exception caught when processing request
> Dec 9, 2005 2:13:09 PM org.apache.commons.httpclient.HttpMethodBase processRequest
> WARNING: Recoverable exception caught but MethodRetryHandler.retryMethod() returned false, rethrowing exception
> org.apache.commons.httpclient.HttpRecoverableException: org.apache.commons.httpclient.HttpRecoverableException: Error in parsing the status line from the response: unable to find line starting with "HTTP"
> at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1962)
> at org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2653)
> at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1087)
> at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:643)
> at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:497)
>
>
> Why is there an exception coming ?
> Is there a way to workaround this issue ?
>
Raj,
Turn on the wire logging and see what kind of response you are getting
from the server. Usually this kind of exception is thrown when the
target server fails to respond with a valid HTTP response
Oleg
>
> Raj
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org