Hi,
1) Check if there is a firewall in between your app and the webservice.
It could be dropping connections.
2) Secondly, axis2 now implicitly uses HttpCient's
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager to manage Http
connection pool.
Check this blob on how to use MultiThreadedHttpConnectionManager
explicitly,
http://amilachinthaka.blogspot.in/2010/01/improving-axis2-http-transport-client.html
Earlier each service invocation was using a new Http Connection, this
was found to be inefficient in terms of performance and hence http
connection pool was introduced.
Please check
a) http://hc.apache.org/httpclient-3.x/performance.html
b) http://hc.apache.org/httpclient-3.x/threading.html
regards,
sathwik
On 09/10/2012 11:03 PM, Asen wrote:
Recently I upgrade my app with Axis2 from 1.5 to 1.6.2.
Since then, I start seeing this error very intermittently.
I am calling a .NET service over https and that is what errors is
thrown back to my client.
My client uses wsdl2java generated stubs.
Does any one have any idea what might be causing that. I have not
observe this with Axis2 1.5.
Is it due to a bad client request, or the remote server is closing the
socket in error, I do not know yet and asking if anyone has seen
similar issue in their applications.
This is a system setting and the java security provider I using to
establish the https connection.
System.getProperties().put( "java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol" );
java.security.Security.addProvider( new
com.sun.net.ssl.internal.ssl.Provider() );
Caused by: org.apache.axis2.AxisFault: Connection reset
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:197)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
...
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at
com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:293)
at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:331)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:830)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:787)
at
com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
at
org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
at
org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
at
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
at
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:621)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
... 49 more
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]