Symptom:
Java. Io. invalidclassexception: cartonprintvo; local class incompatible: stream classdesc serialversionuid = XXXXX, local class serialversionuid = XXXXX
Solution:
Today, after modifying a Vo class, the system reports
Java. Io. invalidclassexception: www.gbsou.com. cartonprintvo; local class incompatible: stream classdesc serialversionuid = 1412277949381450533, local class serialversionuid =-3559189311748262112
Exception. the following causes are analyzed:
The value of serialversionuid in the local and remote classes is different.
Solution:
Change the version number (serialversionuid) in the locally serialized class to the same as that in the same process.
From the above column exception, we can see that
Stream classdesc serialversionuid = 1412277949381450533, (remote)
Local class serialversionuid =-3559189311748262112 (local)
So you just need to change Private Static final long serialversionuid = in the local serialization class to a remote one.
No Private Static final long serialversionuid = this line of code is added.