ClientAbortException:java.net.SocketException:对等方重置连接:套接字写入错误

发布于 2024-08-15 20:23:38 字数 2308 浏览 8 评论 0原文

我使用的是 MySQL 5.1,连接器版本是 mysql-connector-java-5.1.7。我经常遇到以下异常。有什么问题吗?

Dec 24, 2009 10:29:20 AM org.apache.catalina.core.StandardHostValve status
WARNING: Exception Processing ErrorPage[errorCode=404, location=/error.jsp]
ClientAbortException:  java.net.SocketException: Connection reset by peer: socket write error
    at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:327)
    at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293)
    at org.apache.catalina.connector.Response.flushBuffer(Response.java:537)
    at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:286)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketException: Connection reset by peer: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(Unknown Source)
    at java.net.SocketOutputStream.write(Unknown Source)
    at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:746)
    at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:433)
    at org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:304)
    at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:991)
    at org.apache.coyote.Response.action(Response.java:182)
    at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:322)
    ... 13 more

I am using MySQL 5.1 and my connector version is mysql-connector-java-5.1.7. I am getting following exception frequently. What is the issue?

Dec 24, 2009 10:29:20 AM org.apache.catalina.core.StandardHostValve status
WARNING: Exception Processing ErrorPage[errorCode=404, location=/error.jsp]
ClientAbortException:  java.net.SocketException: Connection reset by peer: socket write error
    at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:327)
    at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:293)
    at org.apache.catalina.connector.Response.flushBuffer(Response.java:537)
    at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:286)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketException: Connection reset by peer: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(Unknown Source)
    at java.net.SocketOutputStream.write(Unknown Source)
    at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:746)
    at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:433)
    at org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuffer.java:304)
    at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:991)
    at org.apache.coyote.Response.action(Response.java:182)
    at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:322)
    ... 13 more

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜巴黎 2024-08-22 20:23:38

正如 Jim 所说,通过堆栈跟踪,它不涉及 MySql 连接器。它的 tomcat 在向客户端提供 error.jsp 时出于某种原因关闭了套接字。您应该检查服务器日志是否将错误归零。

Going by the stacktrace, as Jim said ,it does not involve the MySql connector. Its tomcat closing the socket on its end for some reason while serving error.jsp to the client.You should check the server logs to zero in on the error.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文