What is the good way to Get Response content by HttpMethodBase:getResponseBodyAsStream

2009-09-11 Thread Bon
Dear all, I'm new with HttpClient, now I have a problem about to get the response content by HttpMethodBase:getResponseAsStream, sometimes I can not finish to get the content (always the image files), and I don't understand why? The program was still running and not terminated

is HTTPCLIENT-841 really fixed ?

2009-09-11 Thread Olivier Lamy
Hi Folks, I have added a comment and attached a jvm error pid. Is there any know issue regarding deadlock issue with the final 4.0 ? (with heavy load). Thanks -- Olivier - To unsubscribe, e-mail:

Re: is HTTPCLIENT-841 really fixed ?

2009-09-11 Thread Oleg Kalnichevski
On Fri, Sep 11, 2009 at 04:29:20PM +0200, Olivier Lamy wrote: Hi Folks, I have added a comment and attached a jvm error pid. Is there any know issue regarding deadlock issue with the final 4.0 ? (with heavy load). Thanks -- Olivier Olivier, Yes, I am prerry certian the issue has been

Re: is HTTPCLIENT-841 really fixed ?

2009-09-11 Thread Oleg Kalnichevski
On Fri, Sep 11, 2009 at 05:15:31PM +0200, Olivier Lamy wrote: It was new stuff we introduced in new version which break under heavy load. So I have to search somewhere else :-(. Thanks for your time, -- Olivier Olivier I would look into upgrading / downgrading the JVM first # # An

Re: is HTTPCLIENT-841 really fixed ?

2009-09-11 Thread Olivier Lamy
Yes I see that look to be already logged : http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6865265. -- Olivier 2009/9/11 Oleg Kalnichevski ol...@apache.org: On Fri, Sep 11, 2009 at 05:15:31PM +0200, Olivier Lamy wrote: It was new stuff we introduced in new version which break under heavy

ResponseBodyAsStream Truncation

2009-09-11 Thread Shelley, Ryan
Hi all... I have, what seems, a pretty basic need, but I'm hitting a roadblock. I get a response from an HttpClient/HttpMethod GET request and when I use responseBody I get the full response, but also a warning that I should be using responseBodyAsStream. I changed my code to use

Re: ResponseBodyAsStream Truncation

2009-09-11 Thread Sam Berlin
Although I can't explain the truncation, there is a clear bug in the code. When doing a read from an InputStream, it's not guaranteed to fill in the entire buffer. You're appending a String built from the entire buffer, not the amount of bytes that were read into the buffer. Also, the code is