NPE in SessionListener spring boot starter #1172
Unanswered
antonioa-lv
asked this question in
Q&A
Replies: 1 comment
-
No answer here of anyone experiencing this issue and nothing similar in issues or in web search as far I know, so it seems that this issue is not common. If you still have the issue, more information would be needed such as :
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, in our spring application (using net.bull.javamelody:javamelody-spring-boot-starter:2.0.0) with embedded tomcat we are experiencing NullPointerExceptions on SessionLister#fixSessionsWithChangedId when it tries to store a session in the ConcurrentHashMap.
It happens because it's trying to store a null key. We have noticed the session object is blank, all the fields are set to default values and thus the id is null. It is likely happening because Tomcat is recycling the session objects (tomcat-embedded-core org.apache.catalina.valves.PersistentValve:174). Somehow the sessionListener never had a chance to remove that session object before the recycling of it.
Did anyone experience this issue? we are not sure if this a bug in melody or tomcat or our application
Beta Was this translation helpful? Give feedback.
All reactions