Announcement Announcement Module
Collapse
No announcement yet.
Problem with serialVersionUid after upgrading to Spring 3.1 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with serialVersionUid after upgrading to Spring 3.1

    After upgrading to Spring 3.1 I get the following exception when trying to send credentials over Spring Remoting:


    Code:
    org.springframework.security.authentication.UsernamePasswordAuthenticationToken; local class incompatible: stream classdesc serialVersionUID = 8708436205186947465, local class serialVersionUID = 310
    java.io.InvalidClassException: org.springframework.security.authentication.UsernamePasswordAuthenticationToken; local class incompatible: stream classdesc serialVersionUID = 8708436205186947465, local class serialVersionUID = 310
     at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
    ...
    310? WAT?

    What is the reason and how to make it work again?

  • #2
    Make sure client and server use the same version of the jars. classes are serialized if there would be breaking changes the serialized state doesn't match anymore (what the exception indicates).

    Comment

    Working...
    X