-
Notifications
You must be signed in to change notification settings - Fork 4k
InvalidClassException at SimpleGrantedAuthority #665
Comments
We are running to the same issue if we move to Spring Boot 1.3 from 1.2.8. |
We are also facing the same problem. Did anybody find a fix for this ? |
We had to downgrade for the time being... |
You have some serialized authentication tokens somewhere (I'm guessing a |
Thanks @dsyer it is working for me . I just truncated related table |
@dsyer just coming to this now on upgrading SB to 1.5.9 which means spring-sec 4.1.1 to 4.3.2 . we're using Redis. Surely removing the sessions from redis will force the user to relogin will it not? |
This wasn’t originally a question about sessions. But yes. |
Hi @dsyer, sorry to bother, I have migrated from spring boot 1.5.5 to 2.1.0, I have the same issue.
I don't want to delete the existing tokens, how can I convert them? |
I solved this by sending the buffer back to an migrate service running with spring boot 1.5.5 and retrieve the json feedback to compose the new authentication object and save back to DB. It is really really really bad practice to save serialized class to storage. |
Does this impact already stored refresh tokens as well? What options do we have to convert them, if we are migrating from spring boot 1 to 2? Please advise! |
Did you ever solve this issue? If so, what was the solution? |
I'm having this exception at runtime
I've seen in this StackOverflow question that this problem is fixed just by adding a generated serialVersionUID. Apparently, SimpleGrantedAuthority class doesn't have a generated one which may cause this problem.
Is there any workaround for this?
The text was updated successfully, but these errors were encountered: