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
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
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:
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
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
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
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
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
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.
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
When is HttpClient 4.1 GA release planned?
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
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
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
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
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
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
Yes all defaults.
Code snippet
m_multiThreadedHttpConnectionManager = new
MultiThreadedHttpConnectionManager();
m_client = new HttpClient(m_multiThreadedHttpConnectionManager);
PostMethod post = new PostMethod(url);
try {
post.setRequestEntity(new
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]
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.
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
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:
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);
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)
24 matches
Mail list logo