gpt4 book ai didi

java - Mule HTTP 连接重置

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:25:22 29 4
gpt4 key购买 nike

我在 tomcat Web 服务器上部署了 mule 应用程序。我正在公开 Web 服务并使用以下 HTTP 连接器

<http:inbound-endpoint host="0.0.0.0" port="9198"  path="customer/payment/debit" exchange-pattern="request-response">
<mule-ss:http-security-filter realm="mule-realm" securityProviders="userprovider" />
</http:inbound-endpoint>

然后我使用 jaxws-service 来发布网络服务

<cxf:jaxws-service serviceClass="com.cit.wsdl.customer.payment.debit.v1_0.PaymentDebit" service="PaymentDebitService" soapVersion="1.2" />

我遇到以下错误的问题:

ERROR org.mule.module.logging.DispatchingLogger : Caught exception in Exception Strategy: Connection resetjava.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:196) at java.net.SocketInputStream.read(SocketInputStream.java:122) at java.net.SocketInputStream.read(SocketInputStream.java:210) at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78) at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106) at org.mule.transport.http.HttpServerConnection.readLine(HttpServerConnection.java:243) at org.mule.transport.http.HttpServerConnection.getRequestLine(HttpServerConnection.java:509) at org.mule.transport.http.HttpRequestDispatcherWork.run(HttpRequestDispatcherWork.java:70) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)

客户端出现以下错误:

"Exception: An error occurred while receiving the HTTP response to http://10.255.142.36:9198/customer/payment/debit. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details. "

上述错误是随机发生的,但是有请求成功地接收到服务器并由 mule 处理。

最佳答案

'java.net.SocketException: Connection reset' 不是 Mule 或 tomcat 中的故障,而是 tcp 级别的故障。

看起来客户端和 Mule/tomcat 之间建立了 Http(应用程序)级别的通信(作为从服务器收到的 tcp 确认),然后 tcp 连接被重置,要找出根本原因,您需要使用 wireshark。或者,您需要确保没有网络连接中断。

关于java - Mule HTTP 连接重置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42689632/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com