Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19828

Unable to delete session warnings during shutdown

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce

      1. Start the demo distribution (Jetty/HSQLDB)
      2. Load any page
      3. Shutdown the instance

      Expected result

      No exception related to the session is displayed in the log.

      Actual result

      The exception

      2022-06-13 16:55:23.830:WARN :oejss.SessionHandler:JettyShutdownThread: Unable to delete Session node01edvupabolrz11nb7irn8ihesn0
      java.lang.IllegalStateException: Not started
      	at org.eclipse.jetty.server.session.AbstractSessionDataStore.load(AbstractSessionDataStore.java:139)
      	at org.eclipse.jetty.server.session.AbstractSessionCache.loadSession(AbstractSessionCache.java:405)
      	at org.eclipse.jetty.server.session.AbstractSessionCache.lambda$getAndEnter$0(AbstractSessionCache.java:342)
      	at org.eclipse.jetty.server.session.DefaultSessionCache.lambda$doComputeIfAbsent$0(DefaultSessionCache.java:119)
      	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
      	at org.eclipse.jetty.server.session.DefaultSessionCache.doComputeIfAbsent(DefaultSessionCache.java:117)
      	at org.eclipse.jetty.server.session.AbstractSessionCache.getAndEnter(AbstractSessionCache.java:335)
      	at org.eclipse.jetty.server.session.AbstractSessionCache.delete(AbstractSessionCache.java:642)
      	at org.eclipse.jetty.server.session.SessionHandler.invalidate(SessionHandler.java:1167)
      	at org.eclipse.jetty.server.session.DefaultSessionIdManager.invalidateAll(DefaultSessionIdManager.java:432)
      	at org.eclipse.jetty.server.session.Session.invalidate(Session.java:877)
      	at org.xwiki.container.servlet.internal.HttpSessionManager.dispose(HttpSessionManager.java:67)
      	at org.xwiki.component.embed.EmbeddableComponentManager.dispose(EmbeddableComponentManager.java:685)
      	at org.xwiki.container.servlet.XWikiServletContextListener.contextDestroyed(XWikiServletContextListener.java:171)
      	at org.eclipse.jetty.server.handler.ContextHandler.callContextDestroyed(ContextHandler.java:1053)
      	at org.eclipse.jetty.servlet.ServletContextHandler.callContextDestroyed(ServletContextHandler.java:636)
      	at org.eclipse.jetty.server.handler.ContextHandler.contextDestroyed(ContextHandler.java:1010)
      	at org.eclipse.jetty.servlet.ServletHandler.doStop(ServletHandler.java:304)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:182)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:205)
      	at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:97)
      	at org.eclipse.jetty.security.SecurityHandler.doStop(SecurityHandler.java:411)
      	at org.eclipse.jetty.security.ConstraintSecurityHandler.doStop(ConstraintSecurityHandler.java:411)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:182)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:205)
      	at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:97)
      	at org.eclipse.jetty.server.session.SessionHandler.doStop(SessionHandler.java:498)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:182)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:205)
      	at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:97)
      	at org.eclipse.jetty.server.handler.ContextHandler.stopContext(ContextHandler.java:1033)
      	at org.eclipse.jetty.servlet.ServletContextHandler.stopContext(ServletContextHandler.java:399)
      	at org.eclipse.jetty.webapp.WebAppContext.stopContext(WebAppContext.java:1311)
      	at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:1081)
      	at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:312)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:182)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:205)
      	at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:97)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:182)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:205)
      	at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:97)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:182)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:205)
      	at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:97)
      	at org.eclipse.jetty.server.Server.doStop(Server.java:516)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:132)
      	at org.eclipse.jetty.util.thread.ShutdownThread.run(ShutdownThread.java:139)
      

      is displayed. This is most likely a regression introduced by XWIKI-19774. I couldn't reproduce the problem in XWiki 14.4.

      Attachments

        Activity

          People

            surli Simon Urli
            MichaelHamann Michael Hamann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: