java.lang.IllegalStateException: getAttribute: Session already invalidated

Atlassian JIRA | Zohar Melamed | 1 decade ago
  1. 0

    java.lang.IllegalStateException: getAttribute: Session already invalidated at org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:954) at org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:171) at com.opensymphony.webwork.lifecycle.SessionLifecycleListener.sessionDestroyed(SessionLifecycleListener.java:61) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:659) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:608) at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:793) at org.apache.catalina.session.StandardManager.run(StandardManager.java:870) at java.lang.Thread.run(Thread.java:536) 2003-09-18 13:59:30 StandardWrapperValve[simple-display]: Servlet.service() for servlet simple-display threw exception com.atlassian.confluence.InfrastructureException: Couldn't close the session at com.atlassian.confluence.persistence.hibernate.HibernateThreadLocal.endSession(HibernateThreadLocal.java:76) at com.atlassian.confluence.setup.ConfluenceConfigurationFilter.doFilter(ConfluenceConfigurationFilter.java:84) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:148) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536) Caused by: net.sf.hibernate.JDBCException: Cannot open connection: The database is already in use by another process at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:265) at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3231) at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3214) at com.atlassian.confluence.persistence.hibernate.HibernateThreadLocal.endSession(HibernateThreadLocal.java:58) ... 33 more Caused by: java.sql.SQLException: The database is already in use by another process at org.hsqldb.Trace.getError(Unknown Source) at org.hsqldb.Trace.error(Unknown Source) at org.hsqldb.Log.open(Unknown Source) at org.hsqldb.Database$Logger.openLog(Unknown Source) at org.hsqldb.Database.open(Unknown Source) at org.hsqldb.Database.<init>(Unknown Source) at org.hsqldb.jdbcConnection.openStandalone(Unknown Source) at org.hsqldb.jdbcConnection.<init>(Unknown Source) at org.hsqldb.jdbcDriver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:140) at net.sf.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:97) at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:262) ... 36 more

    Atlassian JIRA | 1 decade ago | Zohar Melamed
    java.lang.IllegalStateException: getAttribute: Session already invalidated
  2. 0

    java.lang.IllegalStateException: getAttribute: Session already invalidated at org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:954) at org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:171) at com.opensymphony.webwork.lifecycle.SessionLifecycleListener.sessionDestroyed(SessionLifecycleListener.java:61) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:659) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:608) at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:793) at org.apache.catalina.session.StandardManager.run(StandardManager.java:870) at java.lang.Thread.run(Thread.java:536) 2003-09-18 13:59:30 StandardWrapperValve[simple-display]: Servlet.service() for servlet simple-display threw exception com.atlassian.confluence.InfrastructureException: Couldn't close the session at com.atlassian.confluence.persistence.hibernate.HibernateThreadLocal.endSession(HibernateThreadLocal.java:76) at com.atlassian.confluence.setup.ConfluenceConfigurationFilter.doFilter(ConfluenceConfigurationFilter.java:84) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:148) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536) Caused by: net.sf.hibernate.JDBCException: Cannot open connection: The database is already in use by another process at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:265) at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3231) at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3214) at com.atlassian.confluence.persistence.hibernate.HibernateThreadLocal.endSession(HibernateThreadLocal.java:58) ... 33 more Caused by: java.sql.SQLException: The database is already in use by another process at org.hsqldb.Trace.getError(Unknown Source) at org.hsqldb.Trace.error(Unknown Source) at org.hsqldb.Log.open(Unknown Source) at org.hsqldb.Database$Logger.openLog(Unknown Source) at org.hsqldb.Database.open(Unknown Source) at org.hsqldb.Database.<init>(Unknown Source) at org.hsqldb.jdbcConnection.openStandalone(Unknown Source) at org.hsqldb.jdbcConnection.<init>(Unknown Source) at org.hsqldb.jdbcDriver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:140) at net.sf.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:97) at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:262) ... 36 more

    Atlassian JIRA | 1 decade ago | Zohar Melamed
    java.lang.IllegalStateException: getAttribute: Session already invalidated
  3. 0

    [#TP-3] Axis ERROR in log every 5 minutes - LAMS

    lamsfoundation.org | 1 year ago
    java.lang.IllegalStateException: getAttribute: Session already invalidated
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I have tried importing bugzilla into 2.3 (since 2.4.1 being broken is a known bug). I have problems with the following: - most web browsers/proxies seem to timeout on a request that takes this long (an hour or more with a large bugzilla database). To get around this, I do a GET request on the bugzilla import using a tool that controls/ignores the timeout, and send the JSESSIONID cookie so it will log in. - I get the following exception, presumable because the session timeout is less than the length of time it takes. [10:09:56] java.lang.IllegalStateException: getAttribute: Session already invalidated at org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:954) at org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:171) at webwork.action.factory.SessionMap.get(SessionMap.java:86) at com.atlassian.jira.web.action.JiraWebActionSupport.getRemoteUser(JiraWebActionSupport.java:51) at com.atlassian.jira.web.action.util.BugzillaImport.createChangeHistory(BugzillaImport.java:335) at com.atlassian.jira.web.action.util.BugzillaImport.createIssue(BugzillaImport.java:271) at com.atlassian.jira.web.action.util.BugzillaImport.createIssues(BugzillaImport.java:210) at com.atlassian.jira.web.action.util.BugzillaImport.doExecute(BugzillaImport.java:132) at webwork.action.ActionSupport.execute(ActionSupport.java:116) I would suggest that the bugzilla -> XML process should be a separate Java application, and this XML should then be imported via the regular JIRA mechanism. I rate this as major as it could potentially push our company's decision to adopt JIRA over our existing bugzilla installation into the negative. We are currently evaluating it.

    Atlassian JIRA | 1 decade ago | Brett Porter
    java.lang.IllegalStateException: getAttribute: Session already invalidated
  6. 0

    I have tried importing bugzilla into 2.3 (since 2.4.1 being broken is a known bug). I have problems with the following: - most web browsers/proxies seem to timeout on a request that takes this long (an hour or more with a large bugzilla database). To get around this, I do a GET request on the bugzilla import using a tool that controls/ignores the timeout, and send the JSESSIONID cookie so it will log in. - I get the following exception, presumable because the session timeout is less than the length of time it takes. [10:09:56] java.lang.IllegalStateException: getAttribute: Session already invalidated at org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:954) at org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:171) at webwork.action.factory.SessionMap.get(SessionMap.java:86) at com.atlassian.jira.web.action.JiraWebActionSupport.getRemoteUser(JiraWebActionSupport.java:51) at com.atlassian.jira.web.action.util.BugzillaImport.createChangeHistory(BugzillaImport.java:335) at com.atlassian.jira.web.action.util.BugzillaImport.createIssue(BugzillaImport.java:271) at com.atlassian.jira.web.action.util.BugzillaImport.createIssues(BugzillaImport.java:210) at com.atlassian.jira.web.action.util.BugzillaImport.doExecute(BugzillaImport.java:132) at webwork.action.ActionSupport.execute(ActionSupport.java:116) I would suggest that the bugzilla -> XML process should be a separate Java application, and this XML should then be imported via the regular JIRA mechanism. I rate this as major as it could potentially push our company's decision to adopt JIRA over our existing bugzilla installation into the negative. We are currently evaluating it.

    Atlassian JIRA | 1 decade ago | Brett Porter
    java.lang.IllegalStateException: getAttribute: Session already invalidated

  1. abrazeneb 15 times, last 3 months ago
4 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    getAttribute: Session already invalidated

    at org.apache.catalina.session.StandardSession.getAttribute()
  2. Glassfish Core
    StandardSessionFacade.getAttribute
    1. org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:954)
    2. org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:171)
    2 frames
  3. WebWork
    SessionLifecycleListener.sessionDestroyed
    1. com.opensymphony.webwork.lifecycle.SessionLifecycleListener.sessionDestroyed(SessionLifecycleListener.java:61)
    1 frame
  4. Glassfish Core
    StandardManager.run
    1. org.apache.catalina.session.StandardSession.expire(StandardSession.java:659)
    2. org.apache.catalina.session.StandardSession.expire(StandardSession.java:608)
    3. org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:793)
    4. org.apache.catalina.session.StandardManager.run(StandardManager.java:870)
    4 frames
  5. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:536)
    1 frame