Yes, I have set checking enabled to true. 

As for the IIS , I will need to check the logs. 

Is it possible to catch the HttpRecoverableException , and retry the Post 
method again?
-----Original Message-----
From: Michael Becke <[EMAIL PROTECTED]>
To: "Commons HttpClient Project" <commons-httpclient-
[EMAIL PROTECTED]>
Date: Thu, 27 May 2004 08:50:18 -0400
Subject: Re: HttpClient problems

> Hi Paul,
> 
> Two quick questions.
> 
>   - Have you set  
> MultiThreadedHttpConnectionManager.setConnectionStaleCheckingEnabled() 
> to false?  If so this could be causing the problem.
> 
>   - It seems that the server is closing the request in mid stream. 
> Have  
> you checked the IIS logs?  There might be something there.
> 
> Mike
> 
> On May 27, 2004, at 8:25 AM, paul wrote:
> 
> > Here's the wire log :
> > ==============================================================
> > 2004/05/26 20:09:50:262 SGT [DEBUG]
> MultiThreadedHttpConnectionManager  
> > - -HttpConnectionManager.getConnection:  config =  
> > HostConfiguration[hos
> > t=somewhere.com, protocol=https:443, port=443], timeout = 0
> > 2004/05/26 20:09:50:262 SGT [DEBUG]
> MultiThreadedHttpConnectionManager  
> > - -Getting free connection,  
> > hostConfig=HostConfiguration[host=somewhere.com, protocol=https:443, 
> > port=443]
> > 2004/05/26 20:09:50:263 SGT [DEBUG] HttpConnection -  
> > -HttpConnection.setSoTimeout(0)
> > 2004/05/26 20:09:50:270 SGT [DEBUG] HttpMethodBase - -Execute loop
> try  
> > 1
> > 2004/05/26 20:09:50:280 SGT [DEBUG] wire - ->> "POST  
> > /fxlweb/XMLGateway.asp HTTP/1.1[\r][\n]"
> > 2004/05/26 20:09:50:281 SGT [DEBUG] HttpMethodBase - -Adding Host  
> > request header
> > 2004/05/26 20:09:50:282 SGT [DEBUG] wire - ->> "Content-type:  
> > text/xml; charset=ISO-8859-1[\r][\n]"
> > 2004/05/26 20:09:50:283 SGT [DEBUG] wire - ->> "Authorization: Basic 
> > someencrypteddata[\r][\n]"
> > 2004/05/26 20:09:50:283 SGT [DEBUG] wire - ->> "HTTP-Version:  
> > HTTP/1.1[\r][\n]"
> > 2004/05/26 20:09:50:284 SGT [DEBUG] wire - ->> "Connection:  
> > Keep-Alive[\r][\n]"
> > 2004/05/26 20:09:50:285 SGT [DEBUG] wire - ->> "User-Agent: Jakarta  
> > Commons-HttpClient/2.0final[\r][\n]"
> > 2004/05/26 20:09:50:286 SGT [DEBUG] wire - ->> "Host:  
> > somewhere.com[\r][\n]"
> > 2004/05/26 20:09:50:287 SGT [DEBUG] wire - ->> "Cookie: $Version=0;  
> > ASPSESSIONIDAACRQATR=DKBJEFCAIKAHLGIMJKIBEGBH; $Path=/[\r][\n]"
> > 2004/05/26 20:09:50:287 SGT [DEBUG] wire - ->> "Content-Length:  
> > 594[\r][\n]"
> > 2004/05/26 20:09:50:288 SGT [DEBUG] wire - ->> "[\r][\n]"
> > 2004/05/26 20:09:50:289 SGT [DEBUG] EntityEnclosingMethod - -Using  
> > unbuffered request body
> > 2004/05/26 20:09:50:290 SGT [DEBUG] wire - ->> "<?xml version="1.0"  
> > encoding="UTF-8"?>xmldata here"
> > 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(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)
> >
> > =============================================================
> > Thanks a lot for the info.
> >
> > Ortwin Glück wrote:
> >
> >>
> >>
> >> paul wrote:
> >>
> >>> 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(HttpMethodB 
> >>> ase.java:1965)
> >>>      at  
> >>>
> org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMetho 
> >>> dBase.java:2659)
> >>
> >>
> >>
> >>
> >>> Does anybody know what causes the SocketException ?
> >>
> >>
> >> Not yet, but we're gonna find out for you :-)
> >>
> >> Please produce a wirelog and send the section with the request /  
> >> response immediately preceding the exception.
> >> For instructions about how to make a wirelog please see our Logging 
> >> Guide:
> >> http://jakarta.apache.org/commons/httpclient/logging.html
> >>
> >> Please note that wire logging will slow down your application  
> >> considerably! This is escpecially bad, because the problem you are  
> >> experiencing seems to happen randomly. Please make sure you disable 
> >> logging after you have successfully captured the output.
> >>
> >>
> >>> Is it becos I didn't
> >>> set a higher maximum connection per host using  
> >>> setMaxConnectionsPerHost on the MultiThreadedHttpConnectionManager 
> >>> object ?
> >>
> >>
> >> Probably not - just doesn't look like it.
> >>
> >>> Pls help. This is urgent as I am currently using it on a production
>  
> >>> system.
> >>
> >>
> >> You are welcome. Maybe we should start offering commercial support  
> >> and make A LOT of money :-)
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail:  
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:  
> > [EMAIL PROTECTED]
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to