{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-session/issues/799","repository_url":"https://api.github.com/repos/spring-projects/spring-session","labels_url":"https://api.github.com/repos/spring-projects/spring-session/issues/799/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-session/issues/799/comments","events_url":"https://api.github.com/repos/spring-projects/spring-session/issues/799/events","html_url":"https://github.com/spring-projects/spring-session/issues/799","id":235680505,"number":799,"title":"deserialization issue","user":{"login":"outlawed","id":5110842,"avatar_url":"https://avatars2.githubusercontent.com/u/5110842?v=3","gravatar_id":"","url":"https://api.github.com/users/outlawed","html_url":"https://github.com/outlawed","followers_url":"https://api.github.com/users/outlawed/followers","following_url":"https://api.github.com/users/outlawed/following{/other_user}","gists_url":"https://api.github.com/users/outlawed/gists{/gist_id}","starred_url":"https://api.github.com/users/outlawed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outlawed/subscriptions","organizations_url":"https://api.github.com/users/outlawed/orgs","repos_url":"https://api.github.com/users/outlawed/repos","events_url":"https://api.github.com/users/outlawed/events{/privacy}","received_events_url":"https://api.github.com/users/outlawed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-06-13T20:20:37Z","updated_at":"2017-07-11T10:52:57Z","closed_at":null,"body":"i am getting a SerializationException -\r\n\r\n```\r\nExecution of message listener failed, and no ErrorHandler has been set.\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.lang.ClassCastException: cannot assign instance of org.springframework.beans.factory.support.StaticListableBeanFactory to field org.springframework.aop.scope.DefaultScopedObject.beanFactory of type org.springframework.beans.factory.config.ConfigurableBeanFactory in instance of org.springframework.aop.scope.DefaultScopedObject\r\nat org.springframework.data.redis.serializer.JdkSerializationRedisSerializer.deserialize(JdkSerializationRedisSerializer.java:81)\r\nat org.springframework.data.redis.core.AbstractOperations.deserializeHashValue(AbstractOperations.java:335)\r\nat org.springframework.data.redis.core.AbstractOperations.deserializeHashMap(AbstractOperations.java:279)\r\nat org.springframework.data.redis.core.DefaultHashOperations.entries(DefaultHashOperations.java:227)\r\nat org.springframework.data.redis.core.DefaultBoundHashOperations.entries(DefaultBoundHashOperations.java:102)\r\nat org.springframework.session.data.redis.RedisOperationsSessionRepository.getSession(RedisOperationsSessionRepository.java:432)\r\nat org.springframework.session.data.redis.RedisOperationsSessionRepository.onMessage(RedisOperationsSessionRepository.java:519)\r\nat org.springframework.data.redis.listener.RedisMessageListenerContainer.executeListener(RedisMessageListenerContainer.java:249)\r\nat org.springframework.data.redis.listener.RedisMessageListenerContainer.processMessage(RedisMessageListenerContainer.java:239)\r\nat org.springframework.data.redis.listener.RedisMessageListenerContainer$1.run(RedisMessageListenerContainer.java:967)\r\nat java.lang.Thread.run(Thread.java:745)\r\nCaused by: 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.lang.ClassCastException: cannot assign instance of org.springframework.beans.factory.support.StaticListableBeanFactory to field org.springframework.aop.scope.DefaultScopedObject.beanFactory of type org.springframework.beans.factory.config.ConfigurableBeanFactory in instance of org.springframework.aop.scope.DefaultScopedObject\r\nat org.springframework.core.serializer.support.DeserializingConverter.convert(DeserializingConverter.java:78)\r\nat org.springframework.core.serializer.support.DeserializingConverter.convert(DeserializingConverter.java:36)\r\nat org.springframework.data.redis.serializer.JdkSerializationRedisSerializer.deserialize(JdkSerializationRedisSerializer.java:79)\r\n... 10 common frames omitted\r\nCaused by: java.lang.ClassCastException: cannot assign instance of org.springframework.beans.factory.support.StaticListableBeanFactory to field org.springframework.aop.scope.DefaultScopedObject.beanFactory of type org.springframework.beans.factory.config.ConfigurableBeanFactory in instance of org.springframework.aop.scope.DefaultScopedObject\r\nat java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2133)\r\nat java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1305)\r\nat java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1942)\r\nat java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2018)\r\nat java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)\r\nat java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)\r\nat java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2018)\r\nat org.springframework.aop.framework.AdvisedSupport.readObject(AdvisedSupport.java:557)\r\nat sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)\r\nat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\nat java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1058)\r\nat java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1909)\r\nat java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)\r\nat java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)\r\nat java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2018)\r\nat java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1942)\r\nat java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)\r\nat java.io.ObjectInputStream.readObject(ObjectInputStream.java:373)\r\nat org.springframework.core.serializer.support.DeserializingConverter.convert(DeserializingConverter.java:73)\r\n... 12 common frames omitted\r\nat java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2024)\r\nat java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)\r\nat java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)\r\nat java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1942)\r\nat java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)\r\nat java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2018)\r\nat java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1942)\r\nat java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)\r\nat java.io.ObjectInputStream.readArray(ObjectInputStream.java:1714)\r\nat java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)\r\nat java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:503)\r\nat java.lang.reflect.Method.invoke(Method.java:498)\r\nat java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)\r\nat java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2018)\r\nat java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1942)\r\nat java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)\r\nat java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)\r\nat java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)\r\nat java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2018)\r\nat java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1942)\r\nat java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)\r\nat org.springframework.core.serializer.DefaultDeserializer.deserialize(DefaultDeserializer.java:70)\r\n```\r\n\r\nI am using springBootVersion = '1.5.3.RELEASE'. I am using Redis for session replication and the application is deployed in cloud."},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-session/issues/comments/314407970","html_url":"https://github.com/spring-projects/spring-session/issues/799#issuecomment-314407970","issue_url":"https://api.github.com/repos/spring-projects/spring-session/issues/799","id":314407970,"user":{"login":"sanaulla123","id":371037,"avatar_url":"https://avatars2.githubusercontent.com/u/371037?v=3","gravatar_id":"","url":"https://api.github.com/users/sanaulla123","html_url":"https://github.com/sanaulla123","followers_url":"https://api.github.com/users/sanaulla123/followers","following_url":"https://api.github.com/users/sanaulla123/following{/other_user}","gists_url":"https://api.github.com/users/sanaulla123/gists{/gist_id}","starred_url":"https://api.github.com/users/sanaulla123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanaulla123/subscriptions","organizations_url":"https://api.github.com/users/sanaulla123/orgs","repos_url":"https://api.github.com/users/sanaulla123/repos","events_url":"https://api.github.com/users/sanaulla123/events{/privacy}","received_events_url":"https://api.github.com/users/sanaulla123/received_events","type":"User","site_admin":false},"created_at":"2017-07-11T10:52:57Z","updated_at":"2017-07-11T10:52:57Z","body":"@dsyer \r\nExactly related to https://github.com/spring-projects/spring-security-oauth/issues/705\r\n\r\nWhen we added (work around mentioned: https://github.com/spring-projects/spring-session/issues/395)\r\n```\r\nspring.application.name=application\r\nspring.application.index=1\r\n``` \r\n\r\nto both the applications, the issue was resolved. \r\n\r\nBut we wouldn't want two different applications to have the same name (this will cause issues when we use centralised configuration)\r\n\r\nThe bug https://jira.spring.io/browse/SPR-14117 has been marked as fixed, but the resolution was not mentioned. I am using the latest spring boot 1.5.4.RELEASE"}}
{"actor":{"display_login":"sanaulla123"}}