Not able to get SSL from Axis2 going through LittleProxy to work

430 views
Skip to first unread message

Simon Jongsma

unread,
Jun 5, 2014, 9:33:47 AM6/5/14
to littl...@googlegroups.com
Guys,

I am trying to get an SSL (https) Axis2 webclient connection to go through LittleProxy 0.5.3.
I have established that Axis2 webclient connection with or without authentication works correctly if it is a http (non SSL) connection.

The SSL web request works correctly when not going through proxy (going directly to endpoint).
But if SSL request is routed through the proxy this stack trace will occur:

Caused by: org.apache.axis2.AxisFault: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) [axis2-kernel-1.6.2.jar:1.6.2]
at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:78) [axis2-kernel-1.6.2.jar:]
at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84) [axis2-transport-http-1.6.2.jar:]
at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499) [commons-httpclient-3.1.jar:]
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114) [commons-httpclient-3.1.jar:]
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096) [commons-httpclient-3.1.jar:]
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) [commons-httpclient-3.1.jar:]
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) [commons-httpclient-3.1.jar:]
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) [commons-httpclient-3.1.jar:]
at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:621) [axis2-transport-http-1.6.2.jar:]
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193) [axis2-transport-http-1.6.2.jar:]
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) [axis2-transport-http-1.6.2.jar:]
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404) [axis2-transport-http-1.6.2.jar:]
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231) [axis2-transport-http-1.6.2.jar:]
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443) [axis2-kernel-1.6.2.jar:1.6.2]
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406) [axis2-kernel-1.6.2.jar:1.6.2]
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) [axis2-kernel-1.6.2.jar:1.6.2]
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) [axis2-kernel-1.6.2.jar:1.6.2]
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:555) [axis2-kernel-1.6.2.jar:1.6.2]
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:531) [axis2-kernel-1.6.2.jar:1.6.2]
at nl.makelaarsuite.cgs.framework.adapterservice.outgoing.OutgoingWSAdapter.sendRequest(OutgoingWSAdapter.java:159) [cgs-framework-ejb-2.4.3-SNAPSHOT.jar:2.4.3-SNAPSHOT]
... 351 more
Caused by: com.ctc.wstx.exc.WstxIOException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at com.ctc.wstx.sw.BaseStreamWriter._finishDocument(BaseStreamWriter.java:1406) [wstx-asl-3.2.9.jar:3.2.9]
at com.ctc.wstx.sw.BaseStreamWriter.close(BaseStreamWriter.java:247) [wstx-asl-3.2.9.jar:3.2.9]
at org.apache.axiom.om.impl.MTOMXMLStreamWriter.close(MTOMXMLStreamWriter.java:222) [axiom-api-1.2.13.jar:1.2.13]
at org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:192) [axiom-impl-1.2.13.jar:1.2.13]
at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74) [axis2-kernel-1.6.2.jar:]
... 370 more
Caused by: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at sun.security.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1476) [jsse.jar:1.7.0_25]
at sun.security.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1488) [jsse.jar:1.7.0_25]
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:70) [jsse.jar:1.7.0_25]
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82) [rt.jar:1.7.0_25]
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140) [rt.jar:1.7.0_25]
at org.apache.commons.httpclient.ChunkedOutputStream.flush(ChunkedOutputStream.java:191) [commons-httpclient-3.1.jar:]
at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:103) [wstx-asl-3.2.9.jar:3.2.9]
at com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:225) [wstx-asl-3.2.9.jar:3.2.9]
at com.ctc.wstx.sw.BufferingXmlWriter.close(BufferingXmlWriter.java:198) [wstx-asl-3.2.9.jar:3.2.9]
at com.ctc.wstx.sw.BaseStreamWriter._finishDocument(BaseStreamWriter.java:1404) [wstx-asl-3.2.9.jar:3.2.9]
... 374 more
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:946) [jsse.jar:1.7.0_25]
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312) [jsse.jar:1.7.0_25]
at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:702) [jsse.jar:1.7.0_25]
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122) [jsse.jar:1.7.0_25]
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82) [rt.jar:1.7.0_25]
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140) [rt.jar:1.7.0_25]
at org.apache.commons.httpclient.ChunkedOutputStream.flush(ChunkedOutputStream.java:191) [commons-httpclient-3.1.jar:]
at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:103) [wstx-asl-3.2.9.jar:3.2.9]
at com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:225) [wstx-asl-3.2.9.jar:3.2.9]
at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:259) [wstx-asl-3.2.9.jar:3.2.9]
at org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:230) [axiom-api-1.2.13.jar:1.2.13]
at org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:190) [axiom-impl-1.2.13.jar:1.2.13]
... 371 more
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at sun.security.ssl.InputRecord.read(InputRecord.java:482) [jsse.jar:1.7.0_25]
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927) [jsse.jar:1.7.0_25]
... 382 more

Any clue what is the problem here?

Ox Cart

unread,
Jun 6, 2014, 11:05:07 AM6/6/14
to littl...@googlegroups.com
Hi Simon,

That's a very old version of LittleProxy.

Does the more recent version exhibit the same issue?

http://search.maven.org/#artifactdetails%7Corg.littleshoot%7Clittleproxy%7C1.0.0-beta7%7Cjar

Reply all
Reply to author
Forward
0 new messages