Skip to Main Content

Java APIs

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 with ObjectInputStream

843790Jan 28 2007 — edited Feb 1 2007
Hi,

I got this problem with EOFException while I'm having a file transfer from server to client but I have no idea how it can come up with that exception. If you guys know anything might be able to solve it, I will be grateful to listen to the solution.

The exception below was coming from server console.
java.io.EOFException
       at java.io.ObjectInputStream$BlockDataInputStream.readFully(Unknown Source)
       at java.io.ObjectInputStream.readArray(Unknown Source)
       at java.io.ObjectInputStream.readObject0(Unknown Source)
       at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
       at java.io.ObjectInputStream.readSerialData(Unknown Source)
       at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
       at java.io.ObjectInputStream.readObject0(Unknown Source)
       at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
       at java.io.ObjectInputStream.readSerialData(Unknown Source)
       at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
       at java.io.ObjectInputStream.readObject0(Unknown Source)
       at java.io.ObjectInputStream.readObject(Unknown Source)
       at com.otnateos.model.connection.SocketConnection.run(SocketConnection.java:98)
       at java.lang.Thread.run(Unknown Source)
Message was edited by:
ot6
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 1 2007
Added on Jan 28 2007
9 comments
3,385 views