I keep getting an InvalidClassException when I read in my serialized objects. What am I doing wrong?

Tim Rohaly

An InvalidClassException is thrown if the serial version of the object read from the stream does not match that of the loaded class. What probably happened is you changed your class definition since the time you wrote out the serialized instance.

To find out how to fix this, see the FAQ at http://www.jguru.com/jguru/faq/view.jsp?EID=5063.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact