Hello,
can anybody help me with this error?
It's a Java Application, connecting with hibernate. Autoreconnect = true doesnt work. I get this error every day.
Error 1:
Quote:
JDBCExceptionReporter.java:78 | The last packet successfully received from the server was 128.768.593 milliseconds ago. The last packet sent successfully to the server was 128.768.593 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.
Error 2:
Quote:
JDBCExceptionReporter.java:78 | No operations allowed after connection closed.Connection was implicitly closed by the driver.
hibernate.cfg
Code:
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://url/db</property>
<property name="hibernate.connection.username">user</property>
<property name="hibernate.connection.password">pw</property>
<property name="hibernate.connection.pool_size">20</property>
<property name="hibernate.current_session_context_class">thread</property>
<property name="hibernate.dbcp.initialSize">20</property>
<property name="hibernate.dbcp.maxActive">20</property>
<property name="hibernate.dbcp.maxIdle">20</property>
<property name="hibernate.dbcp.minIdle">0</property>
<property name="hibernate.dbcp.testOnBorrow">true</property>
<property name="hibernate.dbcp.validationQuery">SELECT 1</property>
<property name="hibernate.show_sql">false</property>