{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-session/issues/280","labels_url":"https://api.github.com/repos/spring-projects/spring-session/issues/280/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-session/issues/280/comments","events_url":"https://api.github.com/repos/spring-projects/spring-session/issues/280/events","html_url":"https://github.com/spring-projects/spring-session/issues/280","id":103140215,"number":280,"title":"SerializationFailedException after re-deploying with changed session object","user":{"login":"nsdiv","id":2092911,"avatar_url":"https://avatars.githubusercontent.com/u/2092911?v=3","gravatar_id":"","url":"https://api.github.com/users/nsdiv","html_url":"https://github.com/nsdiv","followers_url":"https://api.github.com/users/nsdiv/followers","following_url":"https://api.github.com/users/nsdiv/following{/other_user}","gists_url":"https://api.github.com/users/nsdiv/gists{/gist_id}","starred_url":"https://api.github.com/users/nsdiv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsdiv/subscriptions","organizations_url":"https://api.github.com/users/nsdiv/orgs","repos_url":"https://api.github.com/users/nsdiv/repos","events_url":"https://api.github.com/users/nsdiv/events{/privacy}","received_events_url":"https://api.github.com/users/nsdiv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-08-25T23:50:57Z","updated_at":"2015-11-06T01:46:57Z","closed_at":null,"body":"After a re-deploy, because of spring-sessions, the sessions are alive. But if a class that has an object instance in the session changes, we get the following error.\r\n\r\nLogLevel=ERROR; msg=Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception; category=o.a.c.c.C.[.[.[.[dispatcherServlet]; \r\norg.springframework.data.redis.serializer.SerializationException: Cannot deserialize; nested exception is org.springframework.core.serializer.support.SerializationFailedException: Failed to deserialize payload. Is the byte array a result of corresponding serialization for DefaultDeserializer?; nested exception is java.io.InvalidClassException: sb.se.domain.BillingPlanPromo; local class incompatible: stream classdesc serialVersionUID = 1760563701508754914, local class serialVersionUID = 140820402964695138\r\n\r\nThis error does make sense. However, the users ends up seeing a 500 page. Two solutions come to my mind here:\r\n1. Somehow ignore that particular session object class instance while keeping the session alive.\r\n2. Create a new session for the user\r\n\r\nIs any of these solutions (or any other) possible?"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-session/issues/comments/154259826","html_url":"https://github.com/spring-projects/spring-session/issues/280#issuecomment-154259826","issue_url":"https://api.github.com/repos/spring-projects/spring-session/issues/280","id":154259826,"user":{"login":"nsdiv","id":2092911,"avatar_url":"https://avatars.githubusercontent.com/u/2092911?v=3","gravatar_id":"","url":"https://api.github.com/users/nsdiv","html_url":"https://github.com/nsdiv","followers_url":"https://api.github.com/users/nsdiv/followers","following_url":"https://api.github.com/users/nsdiv/following{/other_user}","gists_url":"https://api.github.com/users/nsdiv/gists{/gist_id}","starred_url":"https://api.github.com/users/nsdiv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsdiv/subscriptions","organizations_url":"https://api.github.com/users/nsdiv/orgs","repos_url":"https://api.github.com/users/nsdiv/repos","events_url":"https://api.github.com/users/nsdiv/events{/privacy}","received_events_url":"https://api.github.com/users/nsdiv/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T01:46:56Z","updated_at":"2015-11-06T01:46:56Z","body":"No, haven't looked into this in a while. I'll check again."}}