Description:
I have been using mySQl as a backend for my research project and am performing clustering based on cosine similarity between documents, for which, I am storing word frequencies for each document in the database and comparing two frequency lists for finding similarity. The program works fine for sometime, by comparing documents and then gives the following exception:
Exception in thread main"com.mysql.jdbc.CommunicationsException:
Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.io.EOFException
STACKTRACE:
java.io.EOFException
at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1963)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2428)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2874)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:868)
at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1351)
at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:2333)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:435)
at
com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:2040)
at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:1443)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1777)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3243)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3172)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1197)
at mailExtraction.ClusterFile.executeSelect(ClusterFile.java:72)
at mailExtraction.ClusterFile.getLabel(ClusterFile.java:316)
at mailExtraction.ClusterFile.clusterFiles(ClusterFile.java:118)
at mailExtraction.ClusterFile.main(ClusterFile.java:38)
** END NESTED EXCEPTION **
Last packet sent to the server was 479687 ms ago.
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2586)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2874)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:868)
at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1351)
at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:2333)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:435)
at
com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:2040)
at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:1443)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1777)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3243)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3172)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1197)
at mailExtraction.ClusterFile.executeSelect(ClusterFile.java:72)
at mailExtraction.ClusterFile.getLabel(ClusterFile.java:316)
at mailExtraction.ClusterFile.clusterFiles(ClusterFile.java:118)
at mailExtraction.ClusterFile.main(ClusterFile.java:38)
I am using mysql-5.2.3-falcon-alpha on Windows XP and the JConnector is:mysql-connector-java-5.0.5.zip
--
MySQL AB <http://www.mysql.com/>
How to repeat:
The exception is generated after the Garbage Collection Process of Java starts.