Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

EOFException thrown by ObjectInputStream

807606Mar 12 2007 — edited Mar 12 2007
Hi,
as soon as i terminate my program (using CTRL+C), i get the following from an ObjectInputStream created on a tcp socket. Is this message just thrown, because while the stream is blocking i "violently" terminate the execution or because an object is being read at that time?

java.io.EOFException
        at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2498)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1273)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
        at swarm.sys.agents.Farm$PreviousFarmMessageReaderThread.run(Farm.java:263)
        at java.lang.Thread.run(Thread.java:595)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 9 2007
Added on Mar 12 2007
1 comment
286 views