Java序列化由于没有指定serialVersionUID导致报错

z.JobPersistenceException: Couldn't retrieve job because the BLOB couldn't be deserialized: com.model.audience.AudienceGenerateMessage; local class incompatible: stream classdesc serialVersionUID = -5788828488888009304, local class serialVersionUID = -2724890663001219374 [See nested exception: java.io.InvalidClassException: com.jd.ad.datamill.pipeline.jsf_service.model.audience.AudienceGenerateMessage; local class incompatible: stream classdesc serialVersionUID = -5788828488888009304, local class serialVersionUID = -2724890663001219374]
at org.q

 

Quartz序列化作业的JobData到数据库的blob字段中时候反序列化报错

 

 

 

研究一下Java序列化细节,还有如何序列化的,Class字段增添字段 反序列化原来的数据是否报错,如何反序列化原理学习

 

 

 

参考一下:https://stackoverflow.com/questions/10378855/java-io-invalidclassexception-local-class-incompatible/10378907

转载于:https://www.cnblogs.com/leodaxin/p/10442095.html

你可能感兴趣的:(Java序列化由于没有指定serialVersionUID导致报错)