Failed to deserialize payload
1.redis反序列化报错,具体报错如下Cannot deserialize; nested exception is org.springframework.core.serializer.support.SerializationFailedException: Failed to deserialize payload. Is the byte array a result of corre
·
1.redis反序列化报错,具体报错如下
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: 223038E5
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: 223038E5
2.问题定位,本地代码运行不报错,合并代码到正式环境之后出现的错误。经过排查,最终原因是 缓存中实体类的包名变了,导致反序列化失败
3.问题解决,删除正式环境的缓存重新加载,问题解决
更多推荐
已为社区贡献1条内容
所有评论(0)