• Post Reply Bookmark Topic Watch Topic
  • New Topic

streamCorruption in readObject

 
Chris Shepherd
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm getting a streamCorruptionException that I just can't seem to get around when I am reading in a series of objects. Here is the error from my readObject on...
java.io.StreamCorruptedException: Type code out of range, is 126
java.io.StreamCorruptedException: Type code out of range, is 126
at java.io.ObjectInputStream.peekCode(ObjectInputStream.java:1556)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:292)
at java.io.ObjectInputStream.access$000(ObjectInputStream.java:141)
at java.io.ObjectInputStream$GetFieldImpl.read(ObjectInputStream.java:2801)
at java.io.ObjectInputStream.readFields(ObjectInputStream.java:548)
at WtPlane.readObject(WtPlane.java:66)
I'm assuming that the problem is in my write somewhere, but I'm not doing anything funky. Can anyone help me figure out whats going on? I'm not even sure I understand the type code 126 if someone knows about that. Thanks for any help.
Here is my field declaration and read/write methods.


[ May 01, 2002: Message edited by: Chris Shepherd ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!