-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JdkMongoSessionConverter httpSession & spring-boot-devtools #733
Comments
Thanks for the report @heyarny. This is due to (de)serializing mechanism not being aware of Boot's restart class loader. We've had the similar situation with JDBC session repository - see #610 (and referenced issues for more background). You config class that declares |
Okay.. I'm new to spring boot, but I'll have a look. |
Closing as answered. If you have additional questions or feel that your original question isn't properly answered, please re-open the issue. |
Was this issue fixed? I don't see any referenced pull? Just like the JDBC issue was fixed, this should be fixed as well. |
@heyarny Situation with Mongo is different from one with JDBC where deserializing converters are used by default. With Mongo, Jackson based serialization will be used by default if Jackson is present on the classpath, which will be the case with Spring Boot app. Since you're registering |
I saw several issues here with the combination of JdkMongoSessionConverter de/serialization while devtools are in as dependencies, but all seem to be closed.
I'm facing the same problem with spring boot 1.5.1.RELEASE. As soon I remove devtools, everything is working fine.
I'm using this tiny lines to store sessions to mongo:
My session scoped data:
Now as long devtools is there, I get this exception apon second request (probably on deserialization).
Would appreciate any help.
The text was updated successfully, but these errors were encountered: