SoapUI 中的大消息失败 - “获取响应时出错;java.net.SocketException:连接重置”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19414518/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 16:57:34  来源:igfitidea点击:

Large messages failing in SoapUI - "Error getting response; java.net.SocketException: Connection reset"

javawcfsoapui

提问by Marty

I'm using Soap UI 4.6.0 to hit a WCF web service, and when I have really large message payloads, I'm seeing the following error:

我正在使用 Soap UI 4.6.0 来访问 WCF Web 服务,当我有非常大的消息有效负载时,我看到以下错误:

Error getting response; java.net.SocketException: Connection reset

The WCF service has around 10 methods, each with progressively larger inputs (eg, 10 int properties, 50 int properties, 100 int properties, etc). This works with the smaller messages, but as they get around 2000-3000 int properties, the error occurs.

WCF 服务有大约 10 个方法,每个方法都有更大的输入(例如,10 个 int 属性、50 个 int 属性、100 个 int 属性等)。这适用于较小的消息,但是当它们获得大约 2000-3000 个 int 属性时,就会发生错误。

The call appearsto succeed on the server side, and with this coming from java, I'm assuming I'm butting up against some size limitation/configuration in the client. Is this something I can tweak within Soap UI, the java runtime, or elsewhere?

该调用似乎在服务器端成功了,并且这来自 java,我假设我遇到了客户端中的某些大小限制/配置。这是我可以在 Soap UI、java 运行时或其他地方调整的东西吗?

回答by Abhishek Asthana

Normally a connection reset means that one of the underlying servers timed out waiting for data from another server/application and it reset the connection.

通常,连接重置意味着其中一个底层服务器超时等待来自另一台服务器/应用程序的数据并重置连接。

You should try out the suggestions @kroonwijk gave it'll tell you which server is causing the reset and what is causing the server to reset the connection.

您应该尝试@kroonwijk 给出的建议,它会告诉您是哪个服务器导致重置以及是什么导致服务器重置连接。

Also see What's causing my java.net.SocketException: Connection reset?

另请参阅是什么导致了我的 java.net.SocketException:连接重置?

回答by Vikas Prasad

For me the trick that worked was adding below entry in SoapUI-5.2.0.vmoptions file (it can be found in the bin directory of installa

对我来说,有效的技巧是在 SoapUI-5.2.0.vmoptions 文件中添加以下条目(它可以在 installa 的 bin 目录中找到)

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

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

回答by Krzysztof Cie?liński

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