NPE in EAP 7 from io.undertow.servlet.spec.ServletContextImpl.getSession
Issue
- After a session is established, we see the following error until clearing the session cookie:
Caused by: java.lang.NullPointerException
at io.undertow.servlet.spec.ServletContextImpl.getSession(ServletContextImpl.java:917) [undertow-servlet-2.0.30.SP4-redhat-00001.jar:2.0.30.SP4-redhat-00001]
at io.undertow.servlet.spec.HttpServletRequestImpl.getSession(HttpServletRequestImpl.java:418) [undertow-servlet-2.0.30.SP4-redhat-00001.jar:2.0.30.SP4-redhat-00001]
at io.undertow.servlet.spec.HttpServletRequestImpl.getSession(HttpServletRequestImpl.java:423) [undertow-servlet-2.0.30.SP4-redhat-00001.jar:2.0.30.SP4-redhat-00001]
Environment
- JBoss Enterprise Application Platform (EAP) 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.