wood burning stoves 2.0*
The moose likes JDBC and the fly likes EOFException at setting auto commit; Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Bookmark "EOFException at setting auto commit;" Watch "EOFException at setting auto commit;" New topic
Author

EOFException at setting auto commit;

Pavel Kubal
Ranch Hand

Joined: Mar 13, 2004
Posts: 356
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

Joined: Apr 16, 2003
Posts: 70
can you post the block of code where you get the exception(MysqlIO.java:1845)


Karthikeyan<br />SCJP 1.4, SCWCD.
Pavel Kubal
Ranch Hand

Joined: Mar 13, 2004
Posts: 356
Exception is thrown in this part of code [Connection.java:496] in calling Connection.setAutoCommit(false);
 
GeeCON Prague 2014
 
subject: EOFException at setting auto commit;