Forum Discussion

alharo's avatar
alharo
New Member
4 years ago
Solved

ERROR: javax.net.ssl.sslexception connection reset when not using VPN

Hi experts,

I'm getting this error when not using VPN. When using VPN, I got response.

Note: my server is behind a reverse proxy. 

What could be the problems? 

Here is the error log:

 

Wed Feb 24 14:55:10 ICT 2021:ERROR:javax.net.ssl.SSLException: Connection reset
   javax.net.ssl.SSLException: Connection reset
   	at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:127)
   	at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:320)
   	at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:263)
   	at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:258)
   	at java.base/sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1342)
   	at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:844)
   	at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:161)
   	at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:82)
   	at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:278)
   	at org.apache.http.impl.conn.LoggingSessionInputBuffer.readLine(LoggingSessionInputBuffer.java:123)
   	at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
   	at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
   	at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
   	at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:286)
   	at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:257)
   	at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:230)
   	at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$SoapUIHttpRequestExecutor.doReceiveResponse(HttpClientSupport.java:147)
   	at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
   	at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:684)
   	at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:486)
   	at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
   	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
   	at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.execute(HttpClientSupport.java:233)
   	at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.execute(HttpClientSupport.java:323)
   	at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.submitRequest(HttpClientRequestTransport.java:301)
   	at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:231)
   	at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:119)
   	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
   	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
   	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
   	at java.base/java.lang.Thread.run(Thread.java:835)
   	Suppressed: java.net.SocketException: Connection reset by peer: socket write error
   		at java.base/java.net.SocketOutputStream.socketWrite0(Native Method)
   		at java.base/java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:110)
   		at java.base/java.net.SocketOutputStream.write(SocketOutputStream.java:150)
   		at java.base/sun.security.ssl.SSLSocketOutputRecord.encodeAlert(SSLSocketOutputRecord.java:81)
   		at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:351)
   		... 30 more
   Caused by: java.net.SocketException: Connection reset
   	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:186)
   	at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
   	at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:448)
   	at java.base/sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(SSLSocketInputRecord.java:68)
   	at java.base/sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1132)
   	at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:828)
   	... 26 more

 

  • Hey alharo,

    First thing i change when getting ssl exception is http to https or https to http.
    More often than not, thats been the problem.

    However from your description you state your endpoint is available behind the VPN, but not if you dont logon to the VPN. Why is that a problem? The system im currently testing is only available once iv3 tunneled and ive had lots of projects where this is the case.

    Ta

    Rich

2 Replies

  • richie's avatar
    richie
    Community Hero
    Hey alharo,

    First thing i change when getting ssl exception is http to https or https to http.
    More often than not, thats been the problem.

    However from your description you state your endpoint is available behind the VPN, but not if you dont logon to the VPN. Why is that a problem? The system im currently testing is only available once iv3 tunneled and ive had lots of projects where this is the case.

    Ta

    Rich
    • sonya_m's avatar
      sonya_m
      SmartBear Alumni (Retired)

      Thank you for the advice, Richie!

       

      alharo Does this help?