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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]