On Page Refresh after Session Timeout, Seam attempts to access
invalid Session
------------------------------------------------------------------------------
Key: JBSEAM-55
URL:
http://jira.jboss.com/jira/browse/JBSEAM-55
Project: JBoss Seam
Issue Type: Bug
Components: JSF
Environment: WinXP, JBoss 5.0, MyFaces, Booking App
Reporter: Jacob Hookom
Assigned To: Gavin King
In the Booking application, loading the login page, then letting it timeout-- then
refreshing somehow leaves Seam accessing an invalid session:
FINE: Took 0ms to build view: /home.xhtml
2005-08-27 20:33:27,609 INFO [org.jboss.seam.jsf.SeamVariableResolver] resolving name:
user
2005-08-27 20:33:27,609 INFO [org.jboss.seam.contexts.Contexts] found in session
context
2005-08-27 20:33:27,609 INFO [org.jboss.seam.contexts.Contexts] found in application
context
2005-08-27 20:33:27,609 WARN [org.apache.myfaces.el.VariableResolverImpl] Variable
'user' could not be resolved.
2005-08-27 20:33:27,609 INFO [org.jboss.seam.jsf.SeamVariableResolver] resolved name to
seam component
2005-08-27 20:33:27,625 INFO [org.jboss.seam.jsf.SeamVariableResolver] resolving name:
user
2005-08-27 20:33:27,625 INFO [org.jboss.seam.contexts.Contexts] found in session
context
2005-08-27 20:33:27,625 INFO [org.jboss.seam.contexts.Contexts] found in application
context
2005-08-27 20:33:27,625 WARN [org.apache.myfaces.el.VariableResolverImpl] Variable
'user' could not be resolved.
2005-08-27 20:33:27,625 INFO [org.jboss.seam.jsf.SeamVariableResolver] resolved name to
seam component
2005-08-27 20:33:27,625 INFO [org.jboss.seam.jsf.SeamVariableResolver] resolving name:
user
2005-08-27 20:33:27,625 INFO [org.jboss.seam.contexts.Contexts] found in session
context
2005-08-27 20:33:27,625 INFO [org.jboss.seam.contexts.Contexts] found in application
context
2005-08-27 20:33:27,625 WARN [org.apache.myfaces.el.VariableResolverImpl] Variable
'user' could not be resolved.
2005-08-27 20:33:27,625 INFO [org.jboss.seam.jsf.SeamVariableResolver] resolved name to
seam component
2005-08-27 20:33:27,640 INFO [STDOUT] Aug 27, 2005 8:33:27 PM
com.sun.facelets.FaceletViewHandler renderView
FINE: Took 31ms to render view: /home.xhtml
2005-08-27 20:33:27,640 INFO [org.jboss.seam.contexts.Lifecycle] After render response,
destroying contexts
2005-08-27 20:33:27,640 INFO [org.jboss.seam.contexts.Lifecycle] destroying event
context
2005-08-27 20:33:27,640 INFO [org.jboss.seam.contexts.Contexts] found in application
context
2005-08-27 20:33:27,640 INFO [org.jboss.seam.contexts.Contexts] destroying:
org.jboss.seam.core.manager
2005-08-27 20:33:27,640 INFO [org.jboss.seam.core.Manager] no need to flush
2005-08-27 20:33:27,640 INFO [org.jboss.seam.contexts.Contexts] found in event context
2005-08-27 20:33:27,640 INFO [org.jboss.seam.contexts.Contexts] found in application
context
2005-08-27 20:33:27,640 INFO [org.jboss.seam.contexts.Contexts] found in event context
2005-08-27 20:33:27,640 INFO [org.jboss.seam.contexts.Contexts] found in application
context
2005-08-27 20:33:27,640 INFO [org.jboss.seam.contexts.Lifecycle] destroying conversation
context
2005-08-27 20:33:27,640 INFO [org.jboss.seam.contexts.Lifecycle] <<< End web
request
2005-08-27 20:33:29,515 INFO [org.jboss.seam.contexts.Lifecycle] >>> Begin web
request
2005-08-27 20:33:29,515 DEBUG [org.jboss.seam.contexts.BusinessProcessContext] Begin
BusinessProcessContext
2005-08-27 20:33:29,515 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/seam-booking]]
getAttribute: Session already invalidated
java.lang.IllegalStateException: getAttribute: Session already invalidated
at org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:1007)
at
org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:109)
at org.jboss.seam.contexts.ConversationContext.get(ConversationContext.java:107)
at org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.java:120)
at org.jboss.seam.Component.getInstance(Component.java:597)
at org.jboss.seam.core.Manager.instance(Manager.java:196)
at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:56)
at
org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.beforePhase(SeamExtendedManagedPersistencePhaseListener.java:53)
at
org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersBefore(LifecycleImpl.java:434)
at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:120)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:82)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:71)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:156)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:53)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
2005-08-27 20:33:29,515 INFO [STDOUT] java.lang.IllegalStateException: getAttribute:
Session already invalidated
2005-08-27 20:33:29,515 INFO [STDOUT] at
org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:1007)
2005-08-27 20:33:29,515 INFO [STDOUT] at
org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:109)
2005-08-27 20:33:29,515 INFO [STDOUT] at
org.jboss.seam.contexts.ConversationContext.get(ConversationContext.java:107)
2005-08-27 20:33:29,515 INFO [STDOUT] at
org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.java:120)
2005-08-27 20:33:29,515 INFO [STDOUT] at
org.jboss.seam.Component.getInstance(Component.java:597)
2005-08-27 20:33:29,515 INFO [STDOUT] at
org.jboss.seam.core.Manager.instance(Manager.java:196)
2005-08-27 20:33:29,515 INFO [STDOUT] at
org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:56)
2005-08-27 20:33:29,515 INFO [STDOUT] at
org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.beforePhase(SeamExtendedManagedPersistencePhaseListener.java:53)
2005-08-27 20:33:29,515 INFO [STDOUT] at
org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersBefore(LifecycleImpl.java:434)
2005-08-27 20:33:29,515 INFO [STDOUT] at
org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:120)
2005-08-27 20:33:29,515 INFO [STDOUT] at
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:82)
2005-08-27 20:33:29,515 INFO [STDOUT] at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
2005-08-27 20:33:29,515 INFO [STDOUT] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
2005-08-27 20:33:29,515 INFO [STDOUT] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2005-08-27 20:33:29,515 INFO [STDOUT] at
org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:71)
2005-08-27 20:33:29,531 INFO [STDOUT] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2005-08-27 20:33:29,531 INFO [STDOUT] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2005-08-27 20:33:29,531 INFO [STDOUT] at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
2005-08-27 20:33:29,531 INFO [STDOUT] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2005-08-27 20:33:29,531 INFO [STDOUT] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2005-08-27 20:33:29,531 INFO [STDOUT] at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
2005-08-27 20:33:29,531 INFO [STDOUT] at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
2005-08-27 20:33:29,531 INFO [STDOUT] at
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
2005-08-27 20:33:29,531 INFO [STDOUT] at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:156)
2005-08-27 20:33:29,531 INFO [STDOUT] at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:53)
2005-08-27 20:33:29,531 INFO [STDOUT] at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
2005-08-27 20:33:29,531 INFO [STDOUT] at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
2005-08-27 20:33:29,531 INFO [STDOUT] at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
2005-08-27 20:33:29,531 INFO [STDOUT] at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
2005-08-27 20:33:29,531 INFO [STDOUT] at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
2005-08-27 20:33:29,531 INFO [STDOUT] at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
2005-08-27 20:33:29,531 INFO [STDOUT] at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
2005-08-27 20:33:29,531 INFO [STDOUT] at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
2005-08-27 20:33:29,531 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)
2005-08-27 20:33:29,531 ERROR [org.jboss.seam.servlet.SeamExceptionFilter] uncaught
exception handled by Seam: getAttribute: Session already invalidated
2005-08-27 20:33:29,531 INFO [org.jboss.seam.contexts.Lifecycle] After render response,
destroying contexts
2005-08-27 20:33:29,531 INFO [org.jboss.seam.contexts.Lifecycle] destroying event
context
2005-08-27 20:33:29,531 ERROR [org.jboss.seam.servlet.SeamExceptionFilter] could not
destroy contexts
java.lang.IllegalStateException: getAttribute: Session already invalidated
at org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:1007)
at
org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:109)
at org.jboss.seam.contexts.ConversationContext.get(ConversationContext.java:107)
at org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.java:120)
at org.jboss.seam.Component.getInstance(Component.java:597)
at org.jboss.seam.core.Manager.instance(Manager.java:196)
at org.jboss.seam.contexts.ConversationContext.flush(ConversationContext.java:197)
at org.jboss.seam.contexts.Lifecycle.endRequest(Lifecycle.java:110)
at
org.jboss.seam.servlet.SeamExceptionFilter.endWebRequestAfterException(SeamExceptionFilter.java:101)
at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:83)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:156)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:53)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
2005-08-27 20:33:29,531 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/seam-booking].[Faces
Servlet]] Servlet.service() for servlet Faces Servlet threw exception
java.lang.IllegalStateException: getAttribute: Session already invalidated
at org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:1007)
at
org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:109)
at org.jboss.seam.contexts.ConversationContext.get(ConversationContext.java:107)
at org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.java:120)
at org.jboss.seam.Component.getInstance(Component.java:597)
at org.jboss.seam.core.Manager.instance(Manager.java:196)
at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:56)
at
org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.beforePhase(SeamExtendedManagedPersistencePhaseListener.java:53)
at
org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersBefore(LifecycleImpl.java:434)
at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:120)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:82)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:71)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:156)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:53)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
2005-08-27 21:04:07,093 INFO [org.jboss.seam.contexts.Lifecycle] End of session,
destroying contexts
2005-08-27 21:04:07,093 INFO [org.jboss.seam.contexts.Contexts] found in application
context
2005-08-27 21:04:07,093 INFO [org.jboss.seam.Component] instantiating seam component:
org.jboss.seam.core.manager
2005-08-27 21:04:07,093 INFO [org.jboss.seam.contexts.Contexts] found in application
context
2005-08-27 21:04:07,093 INFO [org.jboss.seam.contexts.Lifecycle] destroying conversation
contexts: []
2005-08-27 21:04:07,093 INFO [org.jboss.seam.contexts.Lifecycle] destroying session
context
2005-08-27 21:04:07,093 INFO [org.jboss.seam.contexts.Contexts] found in application
context
2005-08-27 21:04:07,093 INFO [org.jboss.seam.contexts.Contexts] destroying: user
2005-08-27 21:04:07,093 INFO [org.jboss.seam.contexts.Contexts] found in application
context
2005-08-27 21:04:07,093 INFO [org.jboss.seam.contexts.Contexts] destroying:
org.jboss.seam.core.manager
2005-08-27 21:04:07,093 INFO [org.jboss.seam.core.Manager] no need to flush
2005-08-27 21:04:07,093 INFO [org.jboss.seam.contexts.Contexts] destroying:
logout.component
2005-08-27 21:04:07,093 INFO [org.jboss.seam.contexts.Contexts] destroying:
bookingDatabase.component
2005-08-27 21:04:07,093 INFO [org.jboss.seam.contexts.Contexts] destroying:
booking.component
2005-08-27 21:04:07,093 INFO [org.jboss.seam.contexts.Contexts] destroying:
hotel.component
2005-08-27 21:04:07,093 INFO [org.jboss.seam.contexts.Contexts] destroying:
org.jboss.seam.core.manager.component
2005-08-27 21:04:07,109 INFO [org.jboss.seam.contexts.Contexts] destroying:
org.jboss.seam.properties
2005-08-27 21:04:07,109 INFO [org.jboss.seam.contexts.Contexts] destroying:
org.jboss.seam.core.init.component
2005-08-27 21:04:07,109 INFO [org.jboss.seam.contexts.Contexts] destroying:
user.component
2005-08-27 21:04:07,109 INFO [org.jboss.seam.contexts.Contexts] destroying:
register.component
2005-08-27 21:04:07,109 INFO [org.jboss.seam.contexts.Contexts] destroying:
hotelBooking.component
2005-08-27 21:04:07,109 INFO [org.jboss.seam.contexts.Contexts] destroying:
login.component
2005-08-27 21:04:07,109 INFO [org.jboss.seam.contexts.Contexts] found in application
context
2005-08-27 21:04:07,109 INFO [org.jboss.seam.contexts.Contexts] destroying:
org.jboss.seam.core.init
2005-08-27 21:04:07,109 INFO [org.jboss.seam.contexts.Contexts] destroying:
changePassword.component
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: