You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by paul <tj...@fairex.com> on 2004/03/31 04:52:39 UTC
Encountering problems with httpclient
Dear all,
Need some help here. I am sending many xml to a IIS webserver using
the same Httpclient object & same PostMethod object to sent. Wheneven I
sent xmls within intervals of less than 2 secs,
the following exceptions occurred :
=============================================
Mar 31, 2004 10:19:36 AM org.apache.commons.httpclient.HttpMethodBase
readResponse
INFO: Discarding unexpected response: HTTP/1.1 100 Continue
Mar 31, 2004 10:19:36 AM org.apache.commons.httpclient.HttpMethodBase
processRequest
INFO: Recoverable exception caught when processing request
Mar 31, 2004 10:19:36 AM org.apache.commons.httpclient.HttpMethodBase
processRequest
WARNING: Recoverable exception caught but
MethodRetryHandler.retryMethod() returned false, rethrowing exception
org.apache.commons.httpclient.HttpRecoverableException:
java.net.SocketTimeoutException: Read timed out
at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1965)
at
org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2659)
at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1093)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:675)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:529)
=============================================
Pls help. Thanks
Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
Re: Encountering problems with httpclient
Posted by paul <tj...@fairex.com>.
Michael,
I am using the latest version. I have found the solution : use
MultiThreadedHttpConnectionManager. Before that I was using the default
Simple.....
Paul
Michael Becke wrote:
> Hi Paul,
>
> Sounds like you are using an older version of HttpClient. I suggest
> upgrading to 2.0.
>
> Mike
>
> On Mar 30, 2004, at 9:52 PM, paul wrote:
>
>> Dear all,
>>
>> Need some help here. I am sending many xml to a IIS webserver
>> using the same Httpclient object & same PostMethod object to sent.
>> Wheneven I sent xmls within intervals of less than 2 secs,
>> the following exceptions occurred :
>> =============================================
>> Mar 31, 2004 10:19:36 AM
>> org.apache.commons.httpclient.HttpMethodBase readResponse
>> INFO: Discarding unexpected response: HTTP/1.1 100 Continue
>> Mar 31, 2004 10:19:36 AM
>> org.apache.commons.httpclient.HttpMethodBase processRequest
>> INFO: Recoverable exception caught when processing request
>> Mar 31, 2004 10:19:36 AM
>> org.apache.commons.httpclient.HttpMethodBase processRequest
>> WARNING: Recoverable exception caught but
>> MethodRetryHandler.retryMethod() returned false, rethrowing exception
>> org.apache.commons.httpclient.HttpRecoverableException:
>> java.net.SocketTimeoutException: Read timed out
>> at
>> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBas
>> e.java:1965)
>> at
>> org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodB
>> ase.java:2659)
>> at
>> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.jav
>> a:1093)
>> at
>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:
>> 675)
>> at
>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:
>> 529)
>> =============================================
>>
>> Pls help. Thanks
>>
>> Paul
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> commons-httpclient-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail:
>> commons-httpclient-dev-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-httpclient-dev-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
Re: Encountering problems with httpclient
Posted by Michael Becke <be...@u.washington.edu>.
Hi Paul,
Sounds like you are using an older version of HttpClient. I suggest
upgrading to 2.0.
Mike
On Mar 30, 2004, at 9:52 PM, paul wrote:
> Dear all,
>
> Need some help here. I am sending many xml to a IIS webserver using
> the same Httpclient object & same PostMethod object to sent. Wheneven
> I sent xmls within intervals of less than 2 secs,
> the following exceptions occurred :
> =============================================
> Mar 31, 2004 10:19:36 AM org.apache.commons.httpclient.HttpMethodBase
> readResponse
> INFO: Discarding unexpected response: HTTP/1.1 100 Continue
> Mar 31, 2004 10:19:36 AM org.apache.commons.httpclient.HttpMethodBase
> processRequest
> INFO: Recoverable exception caught when processing request
> Mar 31, 2004 10:19:36 AM org.apache.commons.httpclient.HttpMethodBase
> processRequest
> WARNING: Recoverable exception caught but
> MethodRetryHandler.retryMethod() returned false, rethrowing exception
> org.apache.commons.httpclient.HttpRecoverableException:
> java.net.SocketTimeoutException: Read timed out
> at
> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBas
> e.java:1965)
> at
> org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodB
> ase.java:2659)
> at
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.jav
> a:1093)
> at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:
> 675)
> at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:
> 529)
> =============================================
>
> Pls help. Thanks
>
> Paul
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-httpclient-dev-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org