org.springframework.data.redis.serializer.SerializationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • use the jedis driver 2.0.0 , invoke the api template.opsForSet().randomMember(Object key), throw exception stack: org.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.StreamCorruptedException: invalid stream header: 69736C61 at org.springframework.data.redis.serializer.JdkSerializationRedisSerializer.deserialize(JdkSerializationRedisSerializer.java:44) at org.springframework.data.redis.core.AbstractOperations.deserializeValue(AbstractOperations.java:189) at org.springframework.data.redis.core.AbstractOperations$ValueDeserializingRedisCallback.doInRedis(AbstractOperations.java:50) at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:162) at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:133) at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:75) at org.springframework.data.redis.core.DefaultSetOperations.randomMember(DefaultSetOperations.java:164) at com.anansi.gs.common.db.redis.RedisProxy.srandmember(RedisProxy.java:164) at com.anansi.gs.parking.model.dao.PlayerDAO.getRaceStrangers(PlayerDAO.java:216) at com.anansi.gs.parking.service.PlayerService.getRaceStrangers(PlayerService.java:424) at com.anansi.gs.parking.service.PlayerService$$FastClassByCGLIB$$f64d8f94.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
    via by qiu,
  • use the jedis driver 2.0.0 , invoke the api template.opsForSet().randomMember(Object key), throw exception stack: org.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.StreamCorruptedException: invalid stream header: 69736C61 at org.springframework.data.redis.serializer.JdkSerializationRedisSerializer.deserialize(JdkSerializationRedisSerializer.java:44) at org.springframework.data.redis.core.AbstractOperations.deserializeValue(AbstractOperations.java:189) at org.springframework.data.redis.core.AbstractOperations$ValueDeserializingRedisCallback.doInRedis(AbstractOperations.java:50) at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:162) at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:133) at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:75) at org.springframework.data.redis.core.DefaultSetOperations.randomMember(DefaultSetOperations.java:164) at com.anansi.gs.common.db.redis.RedisProxy.srandmember(RedisProxy.java:164) at com.anansi.gs.parking.model.dao.PlayerDAO.getRaceStrangers(PlayerDAO.java:216) at com.anansi.gs.parking.service.PlayerService.getRaceStrangers(PlayerService.java:424) at com.anansi.gs.parking.service.PlayerService$$FastClassByCGLIB$$f64d8f94.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
    via by qiu,
    • org.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 java.util.ArrayList to field SomeObject.foo of type java.util.Set in instance of SomeObject at org.springframework.data.redis.serializer.JdkSerializationRedisSerializer.deserialize(JdkSerializationRedisSerializer.java:41)[spring-data-redis-1.6.4.RELEASE.jar:na] at org.springframework.data.redis.cache.RedisCache$CacheValueAccessor.deserializeIfNecessary(RedisCache.java:378)[spring-data-redis-1.6.4.RELEASE.jar:na] at org.springframework.data.redis.cache.RedisCache.get(RedisCache.java:144)[spring-data-redis-1.6.4.RELEASE.jar:na] at org.springframework.data.redis.cache.RedisCache.get(RedisCache.java:94)[spring-data-redis-1.6.4.RELEASE.jar:na] at org.springframework.cache.interceptor.AbstractCacheInvoker.doGet(AbstractCacheInvoker.java:68)[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.cache.interceptor.CacheAspectSupport.findInCaches(CacheAspectSupport.java:466)[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.cache.interceptor.CacheAspectSupport.findCachedItem(CacheAspectSupport.java:432)[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:336)[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:302)[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)[spring-context-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)[spring-aop-4.2.7.RELEASE.jar:4.2.7.RELEASE] at com.sun.proxy.$Proxy175.myCachedMethod(Unknown Source)[na:na]
    No Bugmate found.