• Post Reply Bookmark Topic Watch Topic
  • New Topic

OptionalDataException  RSS feed

 
bobo shante
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please explain as well as you can what causes an OptionalDataException and how I may prevent or fix it
 
Laudney Ren
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
public class OptionalDataException
extends ObjectStreamException
Unexpected data appeared in an ObjectInputStream trying to read an Object. Occurs when the stream contains primitive data instead of the object that is expected by readObject. The EOF flag in the exception is true indicating that no more primitive data is available. The count field contains the number of bytes available to read.
Field Summary:
boolean eof
True if there is no more data in the buffered part of the stream.
int length
The number of bytes of primitive data available to be read in the current buffer.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!