Java. Io. invalidclassexception Solution

Source: Internet
Author: User

Error Message

Oops: jpaqueryexception
An unexpected error occured caused by exception jpaqueryexception: Error while executing query select t from turnedin T, notification n where N. Itemid = T. ID and N. type =? And N. cycler. ID =? And N. isdeleted = false group by T order by T. createtime Desc: org. hibernate. type. serializationexception: cocould not deserialize
...

Caused by: Java. Io. invalidclassexception: models. member. member; local class incompatible: stream classdesc serialversionuid = 8996579512119659486, local class serialversionuid =-7513555048418418149

Cause of exception

The serialversionuid after local and remote member serialization is not

Solution

Change the version number (serialversionuid) in the local serialized class to the same as that in the local serialization class, and change Private Static final long serialversionuid = to a remote one, if not, add this sentence.

 

About"Org. hibernate. type. serializationexception: cocould not deserialize", I checked a lot of information for the following reasons:

1. The sequence version number of this class does not match the version number of the class descriptor read from the stream (JDK version change will cause this problem)

2. This class contains unknown data types (the data type is not specified in the hibernate configuration file)

3. This class does not have an accessible, non-parameter Constructor

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.