[jboss-user] [JBoss Seam] - Session already invalidated

JohnBat26 do-not-reply at jboss.com
Sun Jun 10 03:34:26 EDT 2007


 Hello everybody!!!
--------------------------------
My environment:
1. OS: Gentoo Linux x86 (x86-64).
2. JDK: 6.0 (SUN or BEA).
3. AS: JBoss 4.2.0
4. JBoss SEAM 1.2.1.GA
5. IDE: Eclipse 3.3 RC3
---------------------------------
?ase:
  I have EAR. It consist of many web and ejb applications. One of all applications use SEAM.
This application work ok. But in others web appli?ations after invalidate sessions from time expired appear next error (These app. DON'T use SEAM):
-------------------------------------------------------------
20:15:18,984 ERROR [STDERR] Jun 9, 2007 8:15:18 PM 
com.sun.faces.lifecycle.LifecycleImpl phase
WARNING: executePhase(RESTORE_VIEW 
1,com.sun.faces.context.FacesContextImpl at 540a5e) threw exception
java.lang.IllegalStateException: getAttribute: Session already invalidated
        at 
org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:1011)
        at 
org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessionFacade.java:109)
        at 
org.jboss.seam.servlet.ServletSessionImpl.getAttribute(ServletSessionImpl.java:32)
        at 
org.jboss.seam.contexts.WebSessionContext.get(WebSessionContext.java:49)
        at org.jboss.seam.Component.getInstance(Component.java:1621)
        at org.jboss.seam.Component.getInstance(Component.java:1599)
        at org.jboss.seam.Component.getInstance(Component.java:1594)
        at 
org.jboss.seam.core.LocaleSelector.instance(LocaleSelector.java:171)
        at 
org.jboss.seam.jsf.SeamViewHandler.calculateLocale(SeamViewHandler.java:32)
        at 
com.sun.facelets.FaceletViewHandler.calculateLocale(FaceletViewHandler.java:771)
        at 
com.sun.faces.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:345)
        at 
org.jboss.seam.jsf.SeamViewHandler.createView(SeamViewHandler.java:43)
        at 
com.sun.facelets.FaceletViewHandler.createView(FaceletViewHandler.java:782)
        at 
com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:203)
        at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
        at 
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at 
cti.iptv.filters.AuthorisationFilter.doFilter(AuthorisationFilter.java:45)
        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:96)
        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.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
        at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
        at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
        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:869)
        at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
-------------------------------------------------------------
Q1: How remove this error ?
Q2: Why SEAM emerge in application, where its don't exist at all?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052874#4052874

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052874




More information about the jboss-user mailing list