intermittent SocketException in HC 4.0.1 GA

2010-03-25 Thread Natarajan_Valli
I just updated our code to use HC 4.0.1 GA (no change to server app that run in jboss server) and getting following 2 exceptions Any suggestions to resolve this issue would be much appreciated. Thanks again, Valli java.net.SocketException: Software caused connection abort: socket

URL/URI syntax issue in HC 4.0.1

2010-03-22 Thread Natarajan_Valli
The URL, http://win2k3_64_ora:9300/app, seems to be correct and works in internet browser. However, the client that goes through HC 4.0.1 could not connect. The '_' in hostname seems to cause this issue. We noticed this issue in earlier version of HC. Any ideas or workaround to resolve this

RE: URL/URI syntax issue in HC 4.0.1

2010-03-22 Thread Natarajan_Valli
Ken, Thank you for information. AFAIK, this is valid URL (not malformed). Anyway, I will try to workaround using httpcore directly. Can we use both HttpCore HttpClient APIs together? Thanks Valli -Original Message- From: Ken Krugler [mailto:kkrugler_li...@transpac.com] Sent:

RE: why httpclient 3.0.1 connects to default port 80

2010-03-17 Thread Natarajan_Valli
I further debugged this problem and found that the class org.apache.commons.httpclient.URI seems to have problem. It does not parse the port from given URL when the hostname in URL contains '_' (the class allows only alpha-numeric and '-'). Why the URI class does not like '_' in hostname

RE: why httpclient 3.0.1 connects to default port 80

2010-03-16 Thread Natarajan_Valli
Actually the problem is when I use actual host and port, HC ignores the given port and tries to connect to 80. If I use localhost instead of actual hostname, it works fine. Context log generated for URL: http://win2k3_64_ora:9300 2010-03-16 21:51:15,030 DEBUG DefaultHttpParams

RE: connection reset issue

2010-01-11 Thread Natarajan_Valli
Yes. The server receives request and sends response back to client. Both threads on client side run file for a while before hitting this problem. This seems to be kind of timing issue. For example, if I enable HC wire log, runs fine no connection reset issue. Thanks Valli -Original

RE: connection reset issue

2010-01-11 Thread Natarajan_Valli
I quickly updated our code to use HC 4.0.1 which throws following exception -Original Message- From: Natarajan, Valli Sent: Monday, January 11, 2010 9:47 AM To: HttpClient User Discussion Subject: RE: connection reset issue Yes. The server receives request and sends response back to

RE: connection reset issue

2010-01-11 Thread Natarajan_Valli
Sorry I hit send too fast; here is the excption Caused by: org.apache.http.client.NonRepeatableRequestException: Cannot retry request with a non-repeatable request entity. The cause lists the reason the original request failed. at

connection reset issue

2010-01-10 Thread Natarajan_Valli
There are 2 threads send requests to a server simultaneously. After a while one of the threads (same thread every time) closes the connection and throws following exception and other thread seems to run fine and server is alive too. I'm using version 3.0.1. I could not send context log.

RE: HC 4.0 GA: IllegalStateException

2009-11-19 Thread Natarajan_Valli
Thanks for prompt reply. I will try with version 4.0.1-SNAPSHOT. Is the snapshot stable enough to use in production environment? I initially tried to send the context log as an attachment but the mail bounced back due to size limit. Is there alternate way to post log files? I can try to send us

HC 4.1 release date

2009-11-13 Thread Natarajan_Valli
When is HttpClient 4.1 GA release planned?

RE: Connection metrics with Http Client/Core

2009-04-27 Thread Natarajan_Valli
We're using HttpClient version 3.0.1. Could anyone offer some pointers as to how we might get this information in version 3.0.1? Thanks Valli -Original Message- From: Oleg Kalnichevski [mailto:ol...@apache.org] Sent: Sunday, November 23, 2008 9:23 AM To: HttpClient User Discussion

RE: stream corruption

2009-01-23 Thread Natarajan_Valli
Oleg, It is name of the thread. What else should I look for? Any other ideas to investigate or fix this problem? Thanks Valli -Original Message- From: Oleg Kalnichevski [mailto:ol...@apache.org] Sent: Friday, January 23, 2009 8:02 AM To: HttpClient User Discussion Subject: RE: stream

RE: stream corruption

2009-01-22 Thread Natarajan_Valli
Oleg, Please let me know if you need any additional information. Could you provide more info/pointer on XML based object serialization? Thanks Valli -Original Message- From: Oleg Kalnichevski [mailto:ol...@apache.org] Sent: Thursday, January 22, 2009 2:37 PM To: HttpClient User

RE: stream corruption

2009-01-22 Thread Natarajan_Valli
Oleg, I see following in wire log. The content gets mixed when this happens. Does the message look correct? 2009-01-22 19:48:06,239 DEBUG header [SubmitterThread] POST /indexserver/?ftRequestHandler=BatchRequest HTTP/1.1[\r][\n] 2009-01-22 19:48:06,239 DEBUG header [SubmitterThread] POST

stream corruption

2009-01-21 Thread Natarajan_Valli
We use HttpClient version 3.0.1 and recently noticed stream corruption. The corruption is noticed on server side when the server (webapp running in Jboss server) receives those requests. We believe that at some point content of 2 requests are mixed. Is that possible? The problem is very

RE: stream corruption

2009-01-21 Thread Natarajan_Valli
we use standard ones (no customization) org.apache.commons.httpclient.methods.PostMethod org.apache.commons.httpclient.methods.InputStreamRequestEntity (we buffer the serialized java object and pass ByteArrayInputStream to InputStreamRequestEntity). As recommended we re-use HttpClient object

RE: stream corruption

2009-01-21 Thread Natarajan_Valli
Yes all defaults. Code snippet m_multiThreadedHttpConnectionManager = new MultiThreadedHttpConnectionManager(); m_client = new HttpClient(m_multiThreadedHttpConnectionManager); PostMethod post = new PostMethod(url); try { post.setRequestEntity(new

RE: stream corruption

2009-01-21 Thread Natarajan_Valli
I'll try reading response calling either getResponseBodyAsStream or getResponseBodyAsString. However, I am sure the tests return HTTP code 200 always. Is there anything else that could cause this problem? Thanks Valli -Original Message- From: Pete Keyes [mailto:pke...@starbucks.com]

RE: stream corruption

2009-01-21 Thread Natarajan_Valli
Oleg, thanks for adding your comments. We call releaseConnection method in finally. Can you think of anything else which might cause this problem? Again, I'm not saying that this is a bug in httpclient and thank you for confirming. I am seeking some help to fix the problem that we have.

RE: How to retireve parameter's value from a ResponseBody of a post method.

2008-11-05 Thread Natarajan_Valli
You could possibly set ProjectID as a response header and use one of getResponseHeader* methods of PostMethod to get this value... Hope this helps... Regards Valliappan -Original Message- From: Pronab Bhattacharyya [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2008 7:10 AM

RE: Problems calling new PostMethod(url)

2008-08-21 Thread Natarajan_Valli
There may be a runtime exception... Try catching Throwable instead of catching Exception. I hope, this might give more info about the failure. -Original Message- From: talldean [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2008 8:23 AM To: httpclient-users@hc.apache.org Subject:

Sending serialized object and stream

2008-05-16 Thread Natarajan_Valli
Hi All, I've requirement to send both serialized java object and stream object. Here is the code that sends serialized object ByteArrayOutputStream requestStream = new ByteArrayOutputStream(); ObjectOutputStream objectOutput = new ObjectOutputStream(requestStream);

Send/Receive serialized object using Apache's httpclient package

2008-03-17 Thread Natarajan_Valli
Hi, Is it possible send/receive serialized object using HttpClient? I always get java.io.StreamCorruptedException: invalid stream header Exception. Here is my server side (servlet code) public void doPost ( HttpServletRequest request, HttpServletResponse response)