hibernate 保护链接的选项

来源:互联网 发布:coredata 更新数据 编辑:程序博客网 时间:2024/05/22 05:28

Struts has detected an unhandled exception:
Messages:
  1. Broken pipe
  2. The last packet successfully received from the server was 181,031,777 milliseconds ago. The last packet sent successfully to the server was 181,031,777 milliseconds ago. 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.
  3. JDBC begin transaction failed:
  4. Could not open Hibernate Session for transaction; nested exception is org.hibernate.TransactionException: JDBC begin transaction failed:
File:org/hibernate/engine/transaction/internal/jdbc/JdbcTransaction.java
0 0