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

Spring JIRA | qiu | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    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)

    Spring JIRA | 5 years ago | 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.io.StreamCorruptedException: invalid stream header: 69736C61
  2. 0

    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)

    Spring JIRA | 5 years ago | 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.io.StreamCorruptedException: invalid stream header: 69736C61

    Root Cause Analysis

    1. 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()
    2. Spring Data Redis
      DefaultSetOperations.randomMember
      1. org.springframework.data.redis.serializer.JdkSerializationRedisSerializer.deserialize(JdkSerializationRedisSerializer.java:44)
      2. org.springframework.data.redis.core.AbstractOperations.deserializeValue(AbstractOperations.java:189)
      3. org.springframework.data.redis.core.AbstractOperations$ValueDeserializingRedisCallback.doInRedis(AbstractOperations.java:50)
      4. org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:162)
      5. org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:133)
      6. org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:75)
      7. org.springframework.data.redis.core.DefaultSetOperations.randomMember(DefaultSetOperations.java:164)
      7 frames
    3. com.anansi.gs
      PlayerService$$FastClassByCGLIB$$f64d8f94.invoke
      1. com.anansi.gs.common.db.redis.RedisProxy.srandmember(RedisProxy.java:164)
      2. com.anansi.gs.parking.model.dao.PlayerDAO.getRaceStrangers(PlayerDAO.java:216)
      3. com.anansi.gs.parking.service.PlayerService.getRaceStrangers(PlayerService.java:424)
      4. com.anansi.gs.parking.service.PlayerService$$FastClassByCGLIB$$f64d8f94.invoke(<generated>)
      4 frames
    4. IDEA
      MethodProxy.invoke
      1. net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
      1 frame