Skip to content
Advertisement

Cannot deserialize; nested exception is org.springframework.core.serializer.support.SerializationFailedException: Failed to deserialize payload

I am using eclipse marse jee, spring 4, redis 3.

I downloaded a spring example from here. This example has 4 applications:

admingatewayresourceui.

I have ran all of these program. I tested http://localhost:8080/ui/ and log in with username:admin, password:admin. I got this error in ui application.

JavaScript

Can anyone help me?

Advertisement

Answer

Seems like SpringSecurityContextImpl can’t be deserialized correctly. 410 and 400 means Spring 4.0 and Spring 4.1. There’s a similar question for mismatch between Spring 3.2 and Spring 4.2 Redis Session Serializer mismatch between 3.2 and 4.2. That’s a bit tricky, because I can see you’re just trying to run an example, I think the most straightforward way to fix this is to not store session data in Redis (e.g. remove @EnableRedisHttpSession). Perhaps, also verify that the Spring 4.1 is used everywhere, and Spring 4 is not pulled in by some transitive dependency.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement