Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-10226

NPE at org.wildfly.extension.undertow.deployment.LogoutSessionListener.sessionDestroyedImpl

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 13.0.0.Beta1, 13.0.0.Final
    • 12.0.0.Final
    • Web (Undertow)
    • None
    • SO: RedHat
      JDK: JDK10

    • Migration

      I've migrated from WF10 to WF12.

      It's an EAR, and I've this on jboss-all.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <jboss umlns="urn:jboss:1.0">
          <shared-session-config xmlns="urn:jboss:shared-session-config:1.0">
              <session-config>
                  <session-timeout>30</session-timeout>
                  <cookie-config>
                      <path>/</path>
                      <name>SESSIONID</name>
                      <http-only>true</http-only>
                  </cookie-config>
              </session-config>
          </shared-session-config>
      </jboss>
      

      When I close browser tab and access after session expired on server I've this NPE:

      java.lang.NullPointerException at org.wildfly.extension.undertow//org.wildfly.extension.undertow.deployment.LogoutSessionListener.sessionDestroyedImpl(LogoutSessionListener.java:82)
      java.lang.RuntimeException: java.lang.NullPointerException at io.undertow.servlet//io.undertow.servlet.core.SessionListenerBridge.sessionDestroyed(SessionListenerBridge.java:75)
      

      I've debug it and see that "src.getExchange().getSecurityContext() " is causing this NPE.

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              marcial.atienzar Marcial Atiénzar Navarro (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: