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

2022-09-04 01:42:07

我收到错误:

java.net.SocketException:连接重置。

我已按照以下链接来解决问题。但是没有运气..

我已经在下面给出了错误日志。任何人都可以看看这个,让我知道如何解决这个问题?

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)

答案 1

窗户

选项 1:

  1. 在计算机上查找以下文件(确保您具有对该文件的写入权限):C:\Program Files\SmartBear\SoapUI-5.2.1\bin\SoapUI-5.2.1.vmoptions

  2. 将以下行添加到文件中:

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

  1. 使用.exe文件 (SoapUI-5.2.1.exe)

选项 2:(如果选项 1 对您不起作用)。

  1. 在计算机上编辑以下批处理文件(确保您具有对该文件的写入权限):C:\Program Files\SmartBear\SoapUI-5.2.1\bin\soapui.bat
  2. 将以下行添加到文件中(在:之后):if "%SOAPUI_HOME%" == "" goto START

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

  1. 使用批处理文件 (soapui.bat)

MAC (OSX)

Mac 的默认安装位置位于根“应用程序”文件夹中,文件位于该文件夹中。右键单击 SOAPUI .app文件(在“/应用程序”文件夹中),然后选择“显示包内容”以访问内部文件。vmoptions.txt

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

将以下行添加到文件中:vmoptions.txt

-Dsoapui.https.protocols=TLSv1.2

Linux

  1. 编辑:在 SoapUI 目录中bin/SoapUI-5.3.0.vmoptions

  2. 将以下行添加到文件中:

-Dsoapui.https.protocols=TLSv1.2

我希望它有帮助。


答案 2

尝试了所有解决方案,但没有任何效果。它在 SoapUI 中忽略 jre 目录后开始工作。因此,如果上述解决方案对您不起作用,请尝试以下操作:

  1. 关闭 SoapUI
  2. 例如,转到 SoapUi 目录:C:\Program Files\SmartBear\SoapUI-5.3.0\
  3. 将目录“jre”重命名为“jre.ignore”
  4. 做。打开 SoapUi,它现在应该可以工作了。

推荐