0 Replies Latest reply on May 17, 2010 4:47 PM by quinten jiang

    The error for seession timeout

    quinten jiang Newbie
      This only happened under Jetty, and work well under Tomcat/Jboss

      For each session bean, I add login restrict:

      @Restrict("#{identity.loggedIn}")


      When server session bean is timeout, I try to re-login, and get following error ( I had t0 refresh login page, then work fine):

      Exception while post processing the response message.
      org.jboss.seam.security.NotLoggedInException
           at org.jboss.seam.security.Identity.checkRestriction(Identity.java:217)
           at org.jboss.seam.security.SecurityInterceptor$Restriction.check(SecurityInterceptor.java:113)
           at org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:159)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
           at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
           at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
           at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
           at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:99)
           at com.identita.console.session.WebPropertySearchAction_$$_javassist_9.equals(WebPropertySearchAction_$$_javassist_9.java)
           at org.mortbay.jetty.servlet.AbstractSessionManager$Session.setAttribute(AbstractSessionManager.java:1063)
           at org.jboss.seam.servlet.ServletRequestSessionMap.put(ServletRequestSessionMap.java:89)
           at org.jboss.seam.servlet.ServletRequestSessionMap.put(ServletRequestSessionMap.java:25)
           at org.jboss.seam.contexts.BasicContext.set(BasicContext.java:85)
           at org.jboss.seam.contexts.SessionContext.flush(SessionContext.java:54)
           at org.jboss.seam.contexts.Contexts.flushAndDestroyContexts(Contexts.java:385)
           at org.jboss.seam.contexts.ServletLifecycle.endRequest(ServletLifecycle.java:60)
           at org.granite.seam21.Seam21Interceptor.destroySeamContext(Seam21Interceptor.java:219)
           at org.granite.seam21.Seam21Interceptor.after(Seam21Interceptor.java:105)
           at org.granite.messaging.amf.process.AMF3MessageProcessor.process(AMF3MessageProcessor.java:67)
           at org.granite.messaging.amf.process.AMF0MessageProcessor.process(AMF0MessageProcessor.java:78)
           at org.granite.messaging.webapp.AMFMessageServlet.doPost(AMFMessageServlet.java:59)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
           at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
           at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
           at org.granite.messaging.webapp.AMFMessageFilter.doFilter(AMFMessageFilter.java:117)
           at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
           at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
           at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
           at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
           at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
           at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
           at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
           at org.mortbay.jetty.Server.handle(Server.java:326)
           at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
           at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930)
           at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
           at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
           at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
           at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
           at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)