Last packet sent to the server was 0 ms ago. 100
ERRORJDBCExceptionReporter:101-Communicationslinkfailureduetounderlyingexception:**BE...
ERROR JDBCExceptionReporter:101 - Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.SocketException
MESSAGE: Connection reset by peer: socket write error
STACKTRACE:
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 java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.flush(Unknown Source)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2739)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2650)
** END NESTED EXCEPTION **
Last packet sent to the server was 0 ms ago.
16:00:00,197 ERROR JDBCExceptionReporter:101 - Already closed.
16:00:00,197 ERROR JDBCExceptionReporter:101 - Already closed.
16:00:00,200 ERROR JDBCExceptionReporter:101 - Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
长时间未操作,就会报该错;百度了许多,说是把wait_timeout改为10年,觉得这个方法不敢恭维;
autoReconnect=true,不起作用;求解!!! 展开
** BEGIN NESTED EXCEPTION **
java.net.SocketException
MESSAGE: Connection reset by peer: socket write error
STACKTRACE:
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 java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.flush(Unknown Source)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2739)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2650)
** END NESTED EXCEPTION **
Last packet sent to the server was 0 ms ago.
16:00:00,197 ERROR JDBCExceptionReporter:101 - Already closed.
16:00:00,197 ERROR JDBCExceptionReporter:101 - Already closed.
16:00:00,200 ERROR JDBCExceptionReporter:101 - Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
长时间未操作,就会报该错;百度了许多,说是把wait_timeout改为10年,觉得这个方法不敢恭维;
autoReconnect=true,不起作用;求解!!! 展开
展开全部
看看是不是端口的问题。我在项目启动遇到同样问题。原来在项目中配置URL时没有写端口,而启动端口由3306变成3307,导致错误。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
ERROR JDBCExceptionReporter:101 - Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.SocketException
MESSAGE: Connection reset by peer: socket write error
STACKTRACE:
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 java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.flush(Unknown Source)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2739)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2650)
** END NESTED EXCEPTION **
Last packet sent to the server was 0 ms ago.
16:00:00,197 ERROR JDBCExceptionReporter:101 - Already closed.
16:00:00,197 ERROR JDBCExceptionReporter:101 - Already closed.
16:00:00,200 ERROR JDBCExceptionReporter:101 - Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
** BEGIN NESTED EXCEPTION **
java.net.SocketException
MESSAGE: Connection reset by peer: socket write error
STACKTRACE:
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 java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.flush(Unknown Source)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2739)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2650)
** END NESTED EXCEPTION **
Last packet sent to the server was 0 ms ago.
16:00:00,197 ERROR JDBCExceptionReporter:101 - Already closed.
16:00:00,197 ERROR JDBCExceptionReporter:101 - Already closed.
16:00:00,200 ERROR JDBCExceptionReporter:101 - Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询