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

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

    Details

    • Affects:
      Migration

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                swd847 Stuart Douglas
                Reporter:
                marcial.atienzar Marcial Atiénzar Navarro
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: