EOFException « MySQL « JPA Q&A





1. Hibernate, c3p0, and Mysql: the java.io.EOFException    stackoverflow.com

I'm using Hibernate with MySQL and c3p0, and when the MySQL connection expires after 8 hours (wait_timeout), Hibernate is unable to reconnect and i get the following exception:

com.mysql.jdbc.CommunicationsException: Communications link failure ...

2. Hibernate, MySQL and the EOFException    coderanch.com

Hi folks, I am encountering the old problem with MySQL and Hibernate. Whenever I deploy an application, it works fine in the beginning. After a while of inactivity, however, I get the infamous EOFException. Here is the part of the stack trace: root cause com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.io.EOFException STACKTRACE: java.io.EOFException at ...