Java Thread MySQL Error
My java thread bails on me after a few hours. I get the ff errors from my log4j. Anyway, I tried upgrading the mysql-java-connector to mysql-connector-java-5.0.5-bin.jar. And added “autoreconnect=true” in the url string… url=jdbc:mysql://127.0.0.1:3306/cncphs?autoreconnect=true.
1086 java.io.EOFException 1087 1088 STACKTRACE: 1089 1090 java.io.EOFException 1091 at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1895) 1092 at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2342) 1093 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2838) 1094 at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1584) 1095 at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1675) 1096 at com.mysql.jdbc.Connection.execSQL(Connection.java:2295) 1097 at com.mysql.jdbc.Connection.execSQL(Connection.java:2228) 1098 at com.mysql.jdbc.Statement.executeQuery(Statement.java:1159) 1099 at DBThread.run(DBThread.java:45) 1100 |