Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Soap UI: ERROR:java.net.SocketException: Connection reset

Tags:

java

soapui

I am getting ERROR:

java.net.SocketException: Connection reset.

I have followed the below link to resolve the issue. But no luck..

  • SOAPUI Certificate authentication

  • http://geekswithblogs.net/gvdmaaden/archive/2011/02/24/how-to-configure-soapui-with-client-certificate-authentication.aspx

I have given the error logs below. Can any one look this and let me know how to resolve this issue?

Thu Mar 23 16:11:51 IST 2017:ERROR:java.net.SocketException: Connection reset
   java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(Unknown Source)
    at java.net.SocketInputStream.read(Unknown Source)
    at sun.security.ssl.InputRecord.readFully(Unknown Source)
    at sun.security.ssl.InputRecord.read(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source)
    at sun.security.ssl.AppOutputStream.write(Unknown Source)
    at org.apache.http.impl.io.AbstractSessionOutputBuffer.flushBuffer(AbstractSessionOutputBuffer.java:131)
    at org.apache.http.impl.io.AbstractSessionOutputBuffer.flush(AbstractSessionOutputBuffer.java:138)
    at org.apache.http.impl.conn.LoggingSessionOutputBuffer.flush(LoggingSessionOutputBuffer.java:95)
    at org.apache.http.impl.AbstractHttpClientConnection.doFlush(AbstractHttpClientConnection.java:270)
    at org.apache.http.impl.AbstractHttpClientConnection.flush(AbstractHttpClientConnection.java:275)
    at org.apache.http.impl.conn.AbstractClientConnAdapter.flush(AbstractClientConnAdapter.java:197)
    at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:258)
    at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$SoapUIHttpRequestExecutor.doSendRequest(HttpClientSupport.java:113)
    at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
    at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:633)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:454)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
    at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.execute(HttpClientSupport.java:247)
    at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.execute(HttpClientSupport.java:362)
    at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.submitRequest(HttpClientRequestTransport.java:324)
    at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:237)
    at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:127)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
like image 565
ChanGan Avatar asked Mar 23 '17 10:03

ChanGan


People also ask

What is Java net SocketException connection reset?

The java. net. SocketException: Connection reset error usually comes when one of the parties in TCP connection like client or server is trying to read/write data, but other parties abruptly close the connection like it was crashed, stopped or terminated.

How do I resolve socket timeout exception in SoapUI?

To resolve this issue, do as follows: ​Open SoapUI. Go to File > Preferences > HTTP Settings. Change the Socket Timeout (ms) value to 600000 (10 minutes).


2 Answers

WINDOWS

Option 1:

  1. find the following file on your computer (make sure you have write access to the file): C:\Program Files\SmartBear\SoapUI-5.2.1\bin\SoapUI-5.2.1.vmoptions

  2. Add the following line to the file:

-Dsoapui.https.protocols="SSLv3,TLSv1.2"

  1. Run SoapUI with the .exe file (SoapUI-5.2.1.exe)

Option 2: (if option 1 does not work for you).

  1. Edit the following batch file on your computer (make sure you have write access to the file): C:\Program Files\SmartBear\SoapUI-5.2.1\bin\soapui.bat
  2. Add the following line to the file (after: if "%SOAPUI_HOME%" == "" goto START):

set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.https.protocols="SSLv3,TLSv1.2"

  1. Run SoapUI with the batch file (soapui.bat)

MAC (OSX)

The default install location for Mac is in the root Applications folder, and the vmoptions.txt file is in there. Right-click the SOAPUI .app file (in the /Applications folder), and choose "Show Package Contents" to get to the internal files.

/Applications/SoapUI-X.X.X.app/Contents/vmoptions.txt

Add the following line to the vmoptions.txt file:

-Dsoapui.https.protocols=TLSv1.2

LINUX

  1. Edit: bin/SoapUI-5.3.0.vmoptions in SoapUI directory

  2. Add the following line to the file:

-Dsoapui.https.protocols=TLSv1.2

I hope it helps.

like image 90
SergiSPN Avatar answered Sep 21 '22 14:09

SergiSPN


Tried all solutions but nothing worked. It started to work after ignoring jre directory in SoapUI. So if above solutions won't work for you then try this:

  1. Close SoapUI
  2. Go to SoapUi directory for example: C:\Program Files\SmartBear\SoapUI-5.3.0\
  3. Rename directory "jre" to "jre.ignore"
  4. Done. Open SoapUi and it should work now.
like image 31
Krzysztof Cieśliński Avatar answered Sep 17 '22 14:09

Krzysztof Cieśliński