cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
alharo
New Member

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
richie
Community Hero

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

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
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta

View solution in original post

2 REPLIES 2
richie
Community Hero

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

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
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta

View solution in original post

sonya_m
Community Manager

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

Thank you for the advice, Richie!

 

@alharo Does this help?


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Top Kudoed Authors