• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EOFException at setting auto commit;

 
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Exception is thrown in this part of code [Connection.java:496] in calling Connection.setAutoCommit(false);
 
A magnificient life is loaded with tough challenges. En garde tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic