I have an issue where we updated a few of our Saga classes to contain a new eventhandler method.
We now see a lot of exceptions occurring where the existing saga’s cannot be deserialized because apparently the serialVersionUID has changed (nobody realized this would happen by adding a method).
Caused by: org.axonframework.serializer.SerializationException: An error occurred while deserializing: SomeSaga; local class incompatible: stream classdesc serialVersionUID = 2342437250069672294, local class serialVersionUID = -1349044639818330111
I now wonder how we can correct this issue as I have to deal with old saga’s with the old serialVersionUID and new saga’s which have been given a new serialVersionUID. I know there’s a concept of upcasting events, but I have trouble finding a source if this concept can also be applied to saga’s, Has anyone been in a similar situtation?
Any help would be appreciated!