2009-12-24 113 views
0

我使用MySQL 5.1和我的連接器版本是使用mysql-connector-java的5.1.7。我經常遇到以下異常。什麼是問題?ClientAbortException:java.net.SocketException異常:連接被對方​​復位:套接字寫錯誤

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 
+2

這看起來不像MySQL涉及的連接器.... – 2009-12-24 05:24:22

+0

那麼我會出錯哪裏? – Srinivasan 2009-12-24 05:47:11

+1

這是http://stackoverflow.com/questions/839314/clientabortexception-java-net-socketexception – 2012-08-06 12:16:19

回答

0

正如Jim所說的那樣,堆棧跟蹤不涉及MySql連接器。它的tomcat在向客戶端提供error.jsp服務器時出於某種原因關閉了它的端口。您應該檢查服務器日誌以避免錯誤發生。

+0

的副本我檢查了我的服務器日誌文件夾Catalina_home/logs文件夾。但是日誌文件中沒有錯誤。 – Srinivasan 2009-12-24 07:12:17

+0

你的error.jsp的內容是什麼?任何易於崩潰的代碼片段? – Shantanu 2009-12-24 07:35:52

+0

這是我的內容的error.jsp \t \t \t 錯誤頁 \t \t \t \t <字型= 「漫畫SAN MS」 大小= 4> \t \t \t

<字體color = red> 404錯誤頁面

\t \t \t 對不起,您請求了一個不存在的頁面。 \t \t \t – Srinivasan 2010-01-22 05:46:04

相關問題