[jboss-user] [JBoss Seam] - No phase id bound to current thread exception

tresspicher do-not-reply at jboss.com
Wed Nov 14 13:42:48 EST 2007


Hi all,

I am a newcomer to JEE and SEAM, so bear with me.  I have searched the forums and have not been able to find a solution that resolves this issue for me.  I am using SEAM 2.0.0 BETA 1 + Facelets + RichFaces 3.2.1. I had been using ajax4jsf but replaced it with RichFaces and that's when I started getting the problem.  If anything obvious jumps out at you, please let me know:

The exception occurs when I navigate to a different page. Stack trace:

  | 11:29:09,879 ERROR [ResourceLifecycle] Exception in PhaseListener, phase :RESTORE_VIEW 1 : afterPhase
  | 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:153)
  |         at org.jboss.seam.contexts.PageContext.isRenderResponsePhase(PageContext.java:165)
  |         at org.jboss.seam.contexts.PageContext.getCurrentReadableMap(PageContext.java:76)
  |         at org.jboss.seam.contexts.PageContext.get(PageContext.java:66)
  |         at org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.java:160)
  |         at org.jboss.seam.Component.getInstance(Component.java:1577)
  |         at org.jboss.seam.Component.getInstance(Component.java:1572)
  |         at org.jboss.seam.jsf.SeamELResolver.getValue(SeamELResolver.java:49)
  |         at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
  |         at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
  |         at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:72)
  |         at org.ajax4jsf.context.AjaxContext.getCurrentInstance(AjaxContext.java:101)
  |         at org.ajax4jsf.event.AjaxPhaseListener.afterPhase(AjaxPhaseListener.java:75)
  |         at org.ajax4jsf.resource.ResourceLifecycle.invokePhaseListener(ResourceLifecycle.java:203)
  |         at org.ajax4jsf.resource.ResourceLifecycle.processPhaseListeners(ResourceLifecycle.java:184)
  |         at org.ajax4jsf.resource.ResourceLifecycle.send(ResourceLifecycle.java:141)
  |         at org.ajax4jsf.resource.InternetResourceService.load(InternetResourceService.java:336)
  |         at org.ajax4jsf.cache.LRUMapCache.load(LRUMapCache.java:116)
  |         at org.ajax4jsf.cache.LRUMapCache.get(LRUMapCache.java:87)
  |         at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:198)
  |         at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:144)
  |         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:265)
  |         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  |         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
  |         at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  |         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  |         at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
  |         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  |         at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
  |         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  |         at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
  |         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  |         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  |         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:230)
  |         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  |         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
  |         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
  |         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  |         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
  |         at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  |         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  |         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
  |         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
  |         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
  |         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  |         at java.lang.Thread.run(Thread.java:595)
  | 

web.xml:

  | <?xml version="1.0" encoding="UTF-8"?>
  | <web-app version="2.5"
  |                         xmlns="http://java.sun.com/xml/ns/javaee"
  |                         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |                         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
  |     <context-param>
  |         <param-name>org.richfaces.SKIN</param-name>
  |         <param-value>blueSky</param-value>
  |     </context-param>
  |     <filter>
  |         <display-name>RichFaces Filter</display-name>
  |         <filter-name>richfaces</filter-name>
  |         <filter-class>org.ajax4jsf.Filter</filter-class>
  |     </filter>
  |     <filter-mapping>
  |          <filter-name>richfaces</filter-name>
  |          <servlet-name>Faces Servlet</servlet-name>
  |          <dispatcher>REQUEST</dispatcher>
  |          <dispatcher>FORWARD</dispatcher>
  |          <dispatcher>INCLUDE</dispatcher>
  |    </filter-mapping>
  |    <context-param>
  |          <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
  |          <param-value>
  |                org.jboss.seam.ui.facelet.SeamFaceletViewHandler
  |           </param-value>
  |     </context-param>
  | 
  |         <!-- Seam -->
  |         <listener>
  |                 <listener-class>
  |                         org.jboss.seam.servlet.SeamListener
  |                 </listener-class>
  |         </listener>
  | 
  |         <filter>
  |                 <filter-name>Seam Filter</filter-name>
  |                 <filter-class>
  |                         org.jboss.seam.web.SeamFilter
  |                 </filter-class>
  |         </filter>
  | 
  |         <filter-mapping>
  |                 <filter-name>Seam Filter</filter-name>
  |                 <url-pattern>/*</url-pattern>
  |         </filter-mapping>
  | 
  |         <servlet>
  |                 <servlet-name>Seam Resource Servlet</servlet-name>
  |                 <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>
  |         </servlet>
  | 
  |         <servlet-mapping>
  |                 <servlet-name>Seam Resource Servlet</servlet-name>
  |                 <url-pattern>/seam/resource/*</url-pattern>
  |         </servlet-mapping>
  | 
  |         <context-param>
  |                 <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
  |                 <param-value>client</param-value>
  |         </context-param>
  | 
  |         <context-param>
  |                 <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
  |                 <param-value>.html</param-value>
  |         </context-param>
  | 
  |         <context-param>
  |                 <param-name>facelets.DEVELOPMENT</param-name>
  |                 <param-value>true</param-value>
  |         </context-param>
  | 
  |         <servlet>
  |                 <servlet-name>Faces Servlet</servlet-name>
  |                 <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  |                 <load-on-startup>1</load-on-startup>
  |         </servlet>
  | 
  |         <servlet-mapping>
  |                 <servlet-name>Faces Servlet</servlet-name>
  |                 <url-pattern>*.seam</url-pattern>
  |         </servlet-mapping>
  | 
  |         <listener>
  |                 <listener-class>
  |                         com.sun.faces.config.ConfigureListener
  |                 </listener-class>
  |         </listener>
  | 

faces-config.xml:

  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <faces-config version="1.2"
  |         xmlns="http://java.sun.com/xml/ns/javaee"
  |         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesfonfig_1_2.xsd">
  | 
  |         <application>
  |                 <el-resolver>org.jboss.seam.jsf.SeamELResolver</el-resolver>
  |         </application>
  | 
  |         <lifecycle>
  |                 <phase-listener>
  |                         org.jboss.seam.jsf.SeamPhaseListener
  |                 </phase-listener>
  |         </lifecycle>
  | </faces-config>
  | 

Thanks!

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

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



More information about the jboss-user mailing list