axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dan radu (JIRA)" <>
Subject [jira] [Created] (AXIS2-5351) [HTTPSender] Unable to sendViaPost - on Axis2 clientStub
Date Wed, 27 Jun 2012 21:11:44 GMT
dan radu created AXIS2-5351:

             Summary:  [HTTPSender] Unable to sendViaPost  -  on Axis2 clientStub
                 Key: AXIS2-5351
             Project: Axis2
          Issue Type: Bug
          Components: client-api
    Affects Versions: 1.6.1
         Environment: Windows XP, Windows 7, jdk1.6.0_26
            Reporter: dan radu

I am working on an Axis 2 (1.6.1) java client generated with wsdl2java.

It seems to be working but from time to time I get the following error :

14:38:04,855 INFO  [HTTPSender] Unable to sendViaPost to url[...] Connection reset
                at org.apache.commons.httpclient.HttpParser.readRawLine(
                at org.apache.commons.httpclient.HttpParser.readLine(

I am wondering if this could be a multi-threading issue and would like to get some answers
on the matter.
I use a stub that caches the HttpClient. The HttpClient uses the MultiThreadedHttpConnectionManager
and I set the setDefaultMaxConnectionsPerHost to 20.

I understand that the HttpClient by virtue of the associated MultiThreadedHttpConnectionManager
will be thread-safe.
The question is what happens with the Axis2 stub ? Will the stub be thread-safe as well ?

I have seen some posts where it is stated that Axis2 stubs are not thread-safe by design.
If that is the case, what is the benefit of using a multithreaded HttpClient ?
How can I make sure the Axis client stub is usable in multi-threaded environment ?

Thank you

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message