Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-15084

[GSS](7.1.z) UNDERTOW-1372 - NPE in InMemorySessionManager

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.5.CR1, 7.1.5.GA
    • 7.1.3.GA
    • Undertow
    • None

      I got the following stack trace when attempting to invalidate the session.

      {{Caused by: java.lang.NullPointerException
      at io.undertow.server.session.InMemorySessionManager$SessionImpl.requestStarted(InMemorySessionManager.java:459)
      at io.undertow.server.session.InMemorySessionManager.getSession(InMemorySessionManager.java:218)
      at org.wildfly.clustering.web.undertow.sso.DistributableSingleSignOn$InvalidatableSession.invalidate(DistributableSingleSignOn.java:182)
      at io.undertow.security.impl.SingleSignOnAuthenticationMechanism$SessionInvalidationListener.sessionDestroyed(SingleSignOnAuthenticationMechanism.java:207)
      at io.undertow.server.session.SessionListeners.sessionDestroyed(SessionListeners.java:61)
      at io.undertow.server.session.InMemorySessionManager$SessionImpl.invalidate(InMemorySessionManager.java:586)

      at io.undertow.server.session.InMemorySessionManager$SessionImpl.invalidate(InMemorySessionManager.java:560)

      at io.undertow.servlet.spec.HttpSessionImpl.invalidate(HttpSessionImpl.java:198)}}

      Looking at the InMemorySessionManager.java, the getSession or requestStarted could be improved with a check for a null parameter.

              rhn-support-iweiss Ingo Weiss
              rhn-support-bmaxwell Brad Maxwell
              Peter Mackay Peter Mackay
              Peter Mackay Peter Mackay
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: