Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-54260

Console error thrown when session is idle or expired

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 7.0.0 M5
    • Fix Version/s: 7.0.0 Beta 3
    • Component/s: Core Infrastructure
    • Labels:
      None
    • Fix Priority:
      4

      Description

      Steps to reproduce:

      1. Login to portal
      2. Wait until the User session expires

      Expected result:
      No stacktrace will be thrown when the sessions expires.

      Actual result:
      The following warning and stacktrace is thrown:

      16:55:37,777 WARN  [http-bio-8080-exec-4][code_jsp:?] {code="500", msg="", uri=/c/portal/expire_session}
      java.lang.IllegalStateException: getAttributeNames: Session already invalidated
              at org.apache.catalina.session.StandardSession.getAttributeNames(StandardSession.java:1186)
              at org.apache.catalina.session.StandardSessionFacade.getAttributeNames(StandardSessionFacade.java:139)
              at org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionAdaptor.getAttributeNames0(HttpSessionAdaptor.java:152)
              at org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionAdaptor.invalidate(HttpSessionAdaptor.java:177)
              at org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionAdaptor$ParentSessionListener.valueUnbound(HttpSessionAdaptor.java:43)
              at org.apache.catalina.session.StandardSession.removeAttributeInternal(StandardSession.java:1800)
              at org.apache.catalina.session.StandardSession.expire(StandardSession.java:865)
              at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:658)
              at org.apache.catalina.connector.Request.doGetSession(Request.java:2869)
              at org.apache.catalina.connector.Request.getSessionInternal(Request.java:2516)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:427)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
              at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
              at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
              at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
              at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
              at java.lang.Thread.run(Thread.java:745)
      16:55:37,782 WARN  [http-bio-8080-exec-4][code_jsp:?] {code="500", msg="", uri=/c/portal/expire_session}
      java.lang.IllegalStateException: getAttributeNames: Session already invalidated
              at org.apache.catalina.session.StandardSession.getAttributeNames(StandardSession.java:1186)
              at org.apache.catalina.session.StandardSessionFacade.getAttributeNames(StandardSessionFacade.java:139)
              at org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionAdaptor.getAttributeNames0(HttpSessionAdaptor.java:152)
              at org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionAdaptor.invalidate(HttpSessionAdaptor.java:177)
              at org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionAdaptor$ParentSessionListener.valueUnbound(HttpSessionAdaptor.java:43)
              at org.apache.catalina.session.StandardSession.removeAttributeInternal(StandardSession.java:1800)
              at org.apache.catalina.session.StandardSession.expire(StandardSession.java:865)
              at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:658)
              at org.apache.catalina.connector.Request.doGetSession(Request.java:2869)
              at org.apache.catalina.connector.Request.getSessionInternal(Request.java:2516)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:427)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
              at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
              at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
              at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
              at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
              at java.lang.Thread.run(Thread.java:745)
      

      New version of the error

      More recently, it has been the following output (and the session doesn't even have to log the User out automatically with this one):

      Mar 19, 2015 5:05:03 PM org.apache.catalina.core.ContainerBase backgroundProcess
      WARNING: Exception processing manager org.apache.catalina.session.StandardManager[] background process
      java.lang.IllegalStateException: getAttributeNames: Session already invalidated
              at org.apache.catalina.session.StandardSession.getAttributeNames(StandardSession.java:1186)
              at org.apache.catalina.session.StandardSessionFacade.getAttributeNames(StandardSessionFacade.java:139)
              at org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionAdaptor.getAttributeNames0(HttpSessionAdaptor.java:152)
              at org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionAdaptor.invalidate(HttpSessionAdaptor.java:177)
              at org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionAdaptor$ParentSessionListener.valueUnbound(HttpSessionAdaptor.java:43)
              at org.apache.catalina.session.StandardSession.removeAttributeInternal(StandardSession.java:1800)
              at org.apache.catalina.session.StandardSession.expire(StandardSession.java:865)
              at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:658)
              at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:534)
              at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:519)
              at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1352)
              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)
              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)
              at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Activity

            People

            Assignee:
            brian.wulbern Brian Wulbern
            Reporter:
            brian.wulbern Brian Wulbern
            Participants of an Issue:
            Recent user:
            Jorge Diaz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              5 years, 21 weeks, 1 day ago

                Packages

                Version Package
                7.0.0 Beta 3