A few months back I serialized a java.io.Serializable object into a file. Now I need to read the contents, but since then the serialVersionUID has changed, and now I\'m get
As a hack, you can generate the serialVer your jvm is probably using using the serialver tool:
serialver -classpath whatever com.foo.bar.MyClass
If you then manually set the serialVerUID in your class it ought to match and you ought to be able to load, assuming you haven't changed the class in such a way as to invalidate.