This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EOFException in Data class during testing

 
K. Tsang
Bartender
Posts: 3585
16
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all, when I did my multi-threading tests sometimes I get the EOFException when my record number reaches like 159.

Subsequent runs will affect my find method yet it still returns the correct number of records. The most interesting point is when my test program encounter create method, it continues to create but in this order:
159, 161, 163....
only odd numbers from 159 onwards.

Ok I figured it out what I did wrong. My total records calculation is wrong. Now I fixed the problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic