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
  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
  3. 0

    RedisTemplate SerializationFailedException: Failed to deserialize payload 异常解决--扒带有瘾的文章--CFANZ社区--IT技术分享网站

    cfanz.cn | 1 year ago
    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.EOFException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    RedisTemplate SerializationFailedException: Failed to deserialize payload 异常解决--扒带有瘾的文章--CFANZ社区--IT技术分享网站

    cfanz.cn | 1 year ago
    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.EOFException
  6. 0

    RedisTemplate SerializationFailedException: Failed to deserialize payload 异常解决 - huilixiang的专栏 - 博客频道 - CSDN.NET

    csdn.net | 1 year ago
    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.EOFException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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