0 Replies Latest reply on Nov 1, 2013 5:22 AM by Tarun Sharma

    org.jboss.seam.security.NotLoggedInException in Seam framework

    Tarun Sharma Newbie

      I am working on seam 2.0 framwork. Recently we have shifted our application(having role based access for users) to a load balanced set up(Apache HTTP server + 2 tomcat 6.0.18 instances) in a non-sticky session environment. For this, we have made serialization changes in our application code.

      After all the changes are done, application is running fine in terms of functionality but sometimes, all of a sudden we get NotLoggedInException. This exception is not specific to any scenario or any click of link. It behaves randomly and pops up anytime even after hours of successful execution.

      Pasted below is the stack trace of the application:

       

      org.jboss.seam.security.NotLoggedInException
                     at org
      .jboss.seam.navigation.Pages.redirectToLoginView(Pages.java:558)
                     at org
      .jboss.seam.navigation.Pages.postRestore(Pages.java:413)
                     at org
      .jboss.seam.jsf.SeamPhaseListener.postRestorePage(SeamPhaseListener.java:545)
                     at org
      .jboss.seam.jsf.SeamPhaseListener.afterRestoreView(SeamPhaseListener.java:394)
                     at org
      .jboss.seam.jsf.Seenter code hereamPhaseListener.afterServletPhase(SeamPhaseListener.java:230)
                     at org
      .jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:196)
                     at com
      .sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:175)
                     at com
      .sun.faces.lifecycle.Phase.doPhase(Phase.java:114)
                     at com
      .sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:103)
                     at com
      .sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
                     at javax
      .faces.webapp.FacesServlet.service(FacesServlet.java:265)
                     at org
      .apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                     at org
      .apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                     at org
      .apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
                     at org
      .apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                     at org
      .apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                     at org
      .jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                     at org
      .jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
                     at org
      .jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                     at org
      .jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
                     at org
      .jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                     at org
      .jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                     at org
      .jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                     at org
      .jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                     at org
      .jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                     at org
      .ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
                     at org
      .ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
                     at org
      .ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
                     at org
      .ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
                     at org
      .jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
                     at org
      .jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                     at org
      .jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
                     at org
      .jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                     at org
      .jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
                     at org
      .jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                     at org
      .jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                     at org
      .apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                     at org
      .apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                     at org
      .apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
                     at org
      .apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                     at org
      .apache.openejb.tomcat.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
                     at org
      .apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                     at org
      .apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                     at org
      .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
                     at org
      .apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                     at org
      .apache.catalina.ha.session.JvmRouteBinderValve.invoke(JvmRouteBinderValve.java:209)
                     at org
      .apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:347)
                     at org
      .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
                     at org
      .apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
                     at org
      .apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
                     at org
      .apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
                     at org
      .apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
                     at org
      .apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
                     at org
      .apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
                     at java
      .lang.Thread.run(Thread.java:722)