{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-security-oauth/issues/535","labels_url":"https://api.github.com/repos/spring-projects/spring-security-oauth/issues/535/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-security-oauth/issues/535/comments","events_url":"https://api.github.com/repos/spring-projects/spring-security-oauth/issues/535/events","html_url":"https://github.com/spring-projects/spring-security-oauth/issues/535","id":96707400,"number":535,"title":"Fail to deserialize OAuth2Authentication from different server","user":{"login":"sckoh","id":6284224,"avatar_url":"https://avatars.githubusercontent.com/u/6284224?v=3","gravatar_id":"","url":"https://api.github.com/users/sckoh","html_url":"https://github.com/sckoh","followers_url":"https://api.github.com/users/sckoh/followers","following_url":"https://api.github.com/users/sckoh/following{/other_user}","gists_url":"https://api.github.com/users/sckoh/gists{/gist_id}","starred_url":"https://api.github.com/users/sckoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sckoh/subscriptions","organizations_url":"https://api.github.com/users/sckoh/orgs","repos_url":"https://api.github.com/users/sckoh/repos","events_url":"https://api.github.com/users/sckoh/events{/privacy}","received_events_url":"https://api.github.com/users/sckoh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-23T01:57:53Z","updated_at":"2016-01-05T13:32:01Z","closed_at":null,"body":"Server A is unable to deserialize OAuth2Authentication that is serialized by Server B\r\n\r\n\r\n\r\n\tWARN (JdbcTokenStore.java:204) - Failed to deserialize authentication for 3abc332b-a405-4d98-8b80-4bb06f2e5353\r\n\tjava.lang.IllegalArgumentException: java.io.InvalidClassException: org.hibernate.collection.internal.AbstractPersistentCollection; local class incompatible: stream classdesc serialVersionUID = -7238232378593030571, local class serialVersionUID = -8914173462748164853\r\n\tat org.springframework.security.oauth2.common.util.SerializationUtils.deserialize(SerializationUtils.java:40)\r\n\tat org.springframework.security.oauth2.provider.token.store.JdbcTokenStore.deserializeAuthentication(JdbcTokenStore.java:385)\r\n\r\n\r\nI'm using version 2.0.3\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-security-oauth/issues/comments/168997759","html_url":"https://github.com/spring-projects/spring-security-oauth/issues/535#issuecomment-168997759","issue_url":"https://api.github.com/repos/spring-projects/spring-security-oauth/issues/535","id":168997759,"user":{"login":"sornalingam","id":2902053,"avatar_url":"https://avatars.githubusercontent.com/u/2902053?v=3","gravatar_id":"","url":"https://api.github.com/users/sornalingam","html_url":"https://github.com/sornalingam","followers_url":"https://api.github.com/users/sornalingam/followers","following_url":"https://api.github.com/users/sornalingam/following{/other_user}","gists_url":"https://api.github.com/users/sornalingam/gists{/gist_id}","starred_url":"https://api.github.com/users/sornalingam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sornalingam/subscriptions","organizations_url":"https://api.github.com/users/sornalingam/orgs","repos_url":"https://api.github.com/users/sornalingam/repos","events_url":"https://api.github.com/users/sornalingam/events{/privacy}","received_events_url":"https://api.github.com/users/sornalingam/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T13:32:01Z","updated_at":"2016-01-05T13:32:01Z","body":"One workaround what I have done is,  \r\n1) Truncate table  oauth_access_token\r\n2) Make the new Oauth token request \r\n\r\nIt solved the problem for me. But this is an temporary fix. "}}