Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

EOFException at setting auto commit;

 
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?
 
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);
 
Get out of my mind! Look! A tiny ad!
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic