How to handle java.io.InvalidClassException?

This question already has an answer here:

  • What is a serialVersionUID and why should I use it? 21 answers

  • You are using a different version of the Applicant class. Maybe you first wrote the Applicant class object to the database and after that, you modified the class. That's why you are getting this message.

    Write the object to the database again and then try to deserialize it.

    链接地址: http://www.djcxy.com/p/23850.html

    上一篇: 使用serialVersionUID还是禁止警告?

    下一篇: 如何处理java.io.InvalidClassException?