0 Replies Latest reply on Aug 14, 2009 12:05 PM by Sascha Janz

    no event context

    Sascha Janz Master
      i tried to implement autologin as described in seam reference 2.1.2

      but now i got following stacktrace on startup

      whats wrong?

      11:40:02,889 ERROR [SeamPhaseListener] swallowing exception
      java.lang.IllegalStateException: No active event context
              at org.jboss.seam.core.ConversationPropagation.instance(ConversationPro
      agation.java:273)
              at org.jboss.seam.jsf.SeamPhaseListener.afterRestoreView(SeamPhaseListe
      er.java:389)
              at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseList
      ner.java:228)
              at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.ja
      a:194)
              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.ja
      a:104)
              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(App
      icationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
      ilterChain.java:206)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilte
      .java:83)
              at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilte
      .java:69)
              at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilte
      .java:69)
              at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilte
      .java:69)
              at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilte
      .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(BaseFi
      ter.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(SeamFilte
      .java:69)
              at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilte
      .java:69)
              at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
      icationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
      ilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderF
      lter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
      icationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
      ilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapper
      alve.java:230)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContext
      alve.java:175)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securi
      yAssociationValve.java:182)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentic
      torBase.java:432)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextVal
      e.java:84)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.
      ava:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.
      ava:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(Cached
      onnectionValve.java:157)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVa
      ve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.ja
      a:262)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.jav
      :844)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proc
      ss(Http11Protocol.java:583)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:4
      6)
              at java.lang.Thread.run(Thread.java:619)
      11:40:08,449 ERROR [lifecycle] JSF1054: (Phase ID: RESTORE_VIEW 1, View ID: ) E
      ception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.
      un.faces.lifecycle.LifecycleImpl@506147]
      11:40:08,451 WARN  [SeamPhaseListener] uncaught exception, passing to exception
      handler
      java.lang.IllegalStateException: No phase id bound to current thread (make sure
      you do not have two SeamPhaseListener instances installed)
              at org.jboss.seam.contexts.PageContext.getPhaseId(PageContext.java:163)
              at org.jboss.seam.contexts.PageContext.isBeforeInvokeApplicationPhase(P
      geContext.java:175)
              at org.jboss.seam.contexts.PageContext.getCurrentWritableMap(PageContex
      .java:91)
              at org.jboss.seam.contexts.PageContext.remove(PageContext.java:105)
              at org.jboss.seam.Component.newInstance(Component.java:2103)
              at org.jboss.seam.Component.getInstance(Component.java:1988)
              at org.jboss.seam.Component.getInstance(Component.java:1967)
              at org.jboss.seam.Component.getInstance(Component.java:1961)
              at org.jboss.seam.Component.getInstance(Component.java:1934)
              at org.jboss.seam.Component.getInstance(Component.java:1929)
              at org.jboss.seam.faces.FacesPage.instance(FacesPage.java:92)
              at org.jboss.seam.core.ConversationPropagation.restorePageContextConver
      ationId(ConversationPropagation.java:84)