-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
JUL-based logging performed during close of application context is lost #9457
Comments
Can you please provide a small sample that reproduces the problem? |
Example project at https://github.com/Artur-/spring-tutorial Tested in Eclipse by
If you add a breakpoint on There is no |
Thanks for the sample. The problem is due to Spring Boot's logging system removing the |
I'm not sure what is the best way to fix this. I think our best option might be to use a disposable bean to clean up the logging system. The other option might be to override onClose() but that relies on the user not having configured a custom application context class. I think we need some more time to consider our options. Moving to 1.5.6. |
We think we need a change in Spring Framework to fix this one nicely. @snicoll is going to raise it. |
Hello. While this is not a critical issue, it does cause some confusion for Vaadin users who run into this as they struggle to understand what is going on and what they should do about it. |
Using Spring Boot 1.5.4
In my application I accidentally added a non serializable class to the HTTP session. When reloading the application (using dev tools and changing a class -> autoredeploy or by restarting a Tomcat server), I would expect to see a
NotSerializableException
in the console, telling that session serialization failed and the session will not be restored.What I see in my application is absolutely nothing on shutdown of the server but on startup I see
Debugging the issue reveals that a
NotSerializableException
is properly thrown but ends up inorg.apache.catalina.session.StandardSession:1707
Unfortunately this message is not logged anywhere and I can't see that this would be related to my configuration.
The text was updated successfully, but these errors were encountered: