Serialization And Deserialization Error : local class incompatible: stream classdesc serialVersionUID = , local class serialVersionUID = -

214 views Asked by At

Let's say I have Class A which is implementing Serialization interface. and class is used so many places. (Services, micro-services).

Now I have added one attribute to the class A, and getting Error:

local class incompatible: stream classdesc serialVersionUID = 6432914265839977553, local class serialVersionUID = -1514387542175529607

Here i don't want to deploy other services who are using class A. and solve this problem.

I know adding serialVersionUID will fix the problem, but for that need to deploy all the other services who are using this class.

I want to fix this without impacting other services who are using this.

I have already gone through this link:

java.io.InvalidClassException: local class incompatible:

0

There are 0 answers