'Facing Connection Reset issue for SOAP service call while using Axis2

I am facing a connection reset issue while invoking service call using Axis2.The same service works fine with Axis1.4 in the same environment.

Below is the trace

https-jsse-nio-10.0.5.5-8443-exec-7, WRITE: TLSv1.2 Handshake, length = 216
https-jsse-nio-10.0.5.5-8443-exec-7, waiting for close_notify or alert: state 1
https-jsse-nio-10.0.5.5-8443-exec-7, Exception while waiting for close java.net.SocketException: Connection reset
https-jsse-nio-10.0.5.5-8443-exec-7, handling exception: java.net.SocketException: Connection reset
%% Invalidated:  [Session-41, SSL_NULL_WITH_NULL_NULL]
https-jsse-nio-10.0.5.5-8443-exec-7, SEND TLSv1.2 ALERT:  fatal, description = unexpected_message
https-jsse-nio-10.0.5.5-8443-exec-7, WRITE: TLSv1.2 Alert, length = 2
https-jsse-nio-10.0.5.5-8443-exec-7, Exception sending alert: java.net.SocketException: Broken pipe (Write failed)
https-jsse-nio-10.0.5.5-8443-exec-7, called closeSocket()
org.apache.axis2.AxisFault: Connection reset
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:431)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:265)
at org.apache.axis2.transport.http.AbstractHTTPTransportSender.writeMessageWithCommons(AbstractHTTPTransportSender.java:385)

I have tried multiple solutions available online but unable to resolve it. Tried setting Timeout to 60 sec as well not sure what is causing the issue. If it was certificate issue it would have been same for axis1.4 also but thats not the case.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source