There are a couple of things that could be happening but my guess is that somehow connections are still being used once released. Are you holding onto the InputStream returned from HttpMethod.getResponseBodyAsStream() after the method's connection is released? Also, what version of HttpClient are you using?
The best way to debug these sorts of things is to create example code that exhibits the problem. If you could post something like this I would be more than happy to reproduce the problem and debug.
Mike
christopher justin wrote:
I have a quetion regarding Class MultiThreadedHttpConnectionManager - I must say first, thanks for the work you have done creating this class and others related to HttpClient.. it is exactly what I am looking for, as I require multi-threading and better control and more feature rich than the Java URLConnection.
I have followed the example for mult-threading and have basically the same exact set up that the example shows (except i do connect to 2 different proxies). What happens though, if I do a single thread, everything is fine.. I can pull hundreds of web pages, one after another. But, if I do 2 or more threads, I start getting errors, like this:
INFO: Recoverable exception caught when processing request
Aug 21, 2003 9:05:29 PM org.apache.commons.httpclient.HttpMethodBase processRequ
est
WARNING: Recoverable exception caught but MethodRetryHandler.retryMethod() retur
ned false, rethrowing exception
A recoverable exception occurred, retrying. org.apache.commons.httpclient.HttpR
ecoverableException: Error in parsing the status line from the response: unable
to find line starting with "HTTP"
I don't understand, its as if there is no concurency control to the HttpConnection object when I do client.executeMethod(get) from within a thread. Have you encoutered this with the theading manager ?
Your help would be greatly appreciated..
thanks
chris
_________________________________________________________________
Help protect your PC: Get a free online virus scan at McAfee.com. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]