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,不起作用;求解!!!
展开
 我来答
root_u
2014-01-23 · 超过61用户采纳过TA的回答
知道小有建树答主
回答量:180
采纳率:100%
帮助的人:84万
展开全部
Connection reset by peer: socket write error 连接被重置,socket 写入错误

odbc的错误 应该就是数据库的原因了 请规范数据库操作
每次打开就要记得关掉
追问
不是哦,是连接超时,mysql的默认连接是8小时,过了8小时就会报这个错。。。
追答
没错啊   就是因为你的连接一直开着~~~需要读取或者写入再去打开数据库
ivydj08
2014-10-10
知道答主
回答量:8
采纳率:0%
帮助的人:5.4万
展开全部
看看是不是端口的问题。我在项目启动遇到同样问题。原来在项目中配置URL时没有写端口,而启动端口由3306变成3307,导致错误。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
百度网友03da833
2014-01-23
知道答主
回答量:2
采纳率:0%
帮助的人:2788
展开全部
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 **
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 1条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式