小编Pan*_*ogi的帖子

Hibernate在1天后未能执行查询

一天之后,我的网络应用程序中出现以下错误.我没有很多搜索它无法解决这个问题.有人可以帮帮我吗?

Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was59461 milliseconds ago.The last packet sent successfully to the server was 59461 milliseconds ago, which  is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:406) …
Run Code Online (Sandbox Code Playgroud)

java mysql hibernate c3p0 tomcat6

4
推荐指数
1
解决办法
7280
查看次数

标签 统计

c3p0 ×1

hibernate ×1

java ×1

mysql ×1

tomcat6 ×1