NullPointerException upon request completion and session invalidation in EAP 7

Solution Unverified - Updated -

Issue

  • Upon request completion, we see a NullPointerException:
WARN  [io.undertow.request] (default task-1) null: java.lang.NullPointerException
    at org.wildfly.clustering.web.undertow.session.DistributableSession.requestDone(DistributableSession.java:84)
    at io.undertow.servlet.spec.ServletContextImpl.updateSessionAccessTime(ServletContextImpl.java:768)
    at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:565)
    at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:332)
    at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:264)
    at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
    at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:175)
    at io.undertow.server.Connectors.executeRootHandler(Connectors.java:207)
    at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:802)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
  • Upon session invalidation, we see a NullPointerException:
Caused by: java.lang.NullPointerException
    at org.wildfly.clustering.web.undertow.session.DistributableSession.invalidate(DistributableSession.java:207)
    at io.undertow.servlet.spec.HttpSessionImpl.invalidate(HttpSessionImpl.java:198)

Environment

  • JBoss Enterise Application Platform (EAP) 7.0.3 and earlier

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content