hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paul <tj...@fairex.com>
Subject HttpClient problems
Date Thu, 27 May 2004 10:54:36 GMT
Dear all,

  Need help on using Httpclient 2.0. Currently, I have encountering a 
random problem with sending xml over to a remote site. Here's the debug 
log :

===================================================
2004/05/26 20:09:50:290 SGT [DEBUG] EntityEnclosingMethod - -Request 
body sent
2004/05/26 20:09:50:562 SGT [DEBUG] HttpMethodBase - -Closing the 
connection.
2004/05/26 20:09:50:563 SGT [INFO] HttpMethodBase - -Recoverable 
exception caught when processing request
2004/05/26 20:09:50:563 SGT [WARN] HttpMethodBase - -Recoverable 
exception caught but MethodRetryHandler.retryMethod() returned false, 
rethrow
ing exception
2004/05/26 20:09:50:564 SGT [DEBUG] MultiThreadedHttpConnectionManager - 
-Freeing connection, hostConfig=HostConfiguration[host=somewhere.com, 
protocol=https:443, port=443]
2004/05/26 20:09:50:564 SGT [DEBUG] MultiThreadedHttpConnectionManager - 
-Notifying no-one, there are no waiting threads
org.apache.commons.httpclient.HttpRecoverableException: 
java.net.SocketException: Connection reset
      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)
==================================================================

Does anybody know what causes the SocketException ? Is it becos I didn't 
set a higher maximum connection per host using setMaxConnectionsPerHost 
on the MultiThreadedHttpConnectionManager object ?

Pls help. This is urgent as I am currently using it on a production system.

Paul


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org


Mime
View raw message