Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EOFException at setting auto commit;

 
Pavel Kubal
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I'm getting this exception when I call setAutoCommit() method. It is called many (1000+) times in my application. But sometimes it throws this exception and I don't know why.

2005/08/10 22:17:22: ** BEGIN NESTED EXCEPTION **
2005/08/10 22:17:22:
2005/08/10 22:17:22: java.io.EOFException
2005/08/10 22:17:22:
2005/08/10 22:17:22: STACKTRACE:
2005/08/10 22:17:22:
2005/08/10 22:17:22: java.io.EOFException
2005/08/10 22:17:22: at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1845)
2005/08/10 22:17:22: at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2292)
2005/08/10 22:17:22: at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2788)
2005/08/10 22:17:22: at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1534)
2005/08/10 22:17:22: at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1625)
2005/08/10 22:17:22: at com.mysql.jdbc.Connection.execSQL(Connection.java:2291)
2005/08/10 22:17:22: at com.mysql.jdbc.Connection.setAutoCommit(Connection.java:496)

.....

Anyone knows?
 
Karthikeyan Rajendraprasad
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you post the block of code where you get the exception(MysqlIO.java:1845)
 
Pavel Kubal
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exception is thrown in this part of code [Connection.java:496] in calling Connection.setAutoCommit(false);
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic