1 Reply Latest reply on Sep 20, 2010 2:18 PM by alchemist87

    Refreshing page several times cause "java.lang.IllegalStateException"

    alchemist87 Newbie

      Hi!

      First i want to excuse my bad english .

      I am new to jsf and run in a strange problem. When i refresh my page several times it seems that the responses cause a "java.lang.IllegalStateException: Parent was not null, but this component not related" exception.

      I hope anyone can help me.

       

      I use:

      - Tomcat 6.0.24 and Tomcat 6.0.29

      - JSF 2

      - Richfaces 3.3.3 (JSF2)

      - Hibernate

      - Tomahawk (but same exception when i removed this libaries)

       

      Refreshing the page several times Richfaces Panel Menue causes this exception.

      The bean that i use is session scoped!

      My Navigation PanelMenue contains over 100 links .

       

       

      Stacktrace:

       

      8.09.2010 17:12:15 org.apache.catalina.core.ApplicationDispatcher invoke
      SCHWERWIEGEND: Servlet.service() for servlet jsp threw exception
      java.lang.IllegalStateException: Parent was not null, but this component not related
          at javax.faces.component.UIComponentBase.eraseParent(UIComponentBase.java:521)
          at javax.faces.component.UIComponentBase.access$400(UIComponentBase.java:105)
          at javax.faces.component.UIComponentBase$ChildrenList.add(UIComponentBase.java:2486)
          at javax.faces.component.UIComponentBase$ChildrenList.add(UIComponentBase.java:2471)
          at javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:489)
          at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:667)
          at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1139)
          at org.apache.jsp.jsf.common_005fmodules.menue_jsp._jspx_meth_rich_005fpanelMenu_005f0(menue_jsp.java:125)
          at org.apache.jsp.jsf.common_005fmodules.menue_jsp._jspService(menue_jsp.java:63)
          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
          at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
          at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
          at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
          at org.apache.jsp.jsf.home_jsp._jspx_meth_f_005fsubview_005f1(home_jsp.java:376)
          at org.apache.jsp.jsf.home_jsp._jspx_meth_h_005fpanelGroup_005f2(home_jsp.java:330)
          at org.apache.jsp.jsf.home_jsp._jspx_meth_h_005fpanelGroup_005f0(home_jsp.java:184)
          at org.apache.jsp.jsf.home_jsp._jspx_meth_f_005fview_005f0(home_jsp.java:132)
          at org.apache.jsp.jsf.home_jsp._jspService(home_jsp.java:89)
          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
          at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
          at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
          at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
          at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:542)
          at com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java:359)
          at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:150)
          at com.sun.faces.application.view.JspViewHandlingStrategy.renderView(JspViewHandlingStrategy.java:190)
          at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:127)
          at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
          at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:117)
          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)
          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:309)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
          at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
          at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at intranet.auth.IntranetAuthorizationFilter.doFilter(IntranetAuthorizationFilter.java:47)
          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.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
          at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
          at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
          at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
          at java.lang.Thread.run(Unknown Source)
      
      ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
      
      SCHWERWIEGEND: Exception in the filter chain
      org.apache.jasper.JasperException: An exception occurred processing JSP page /jsf/home.jsp at line 35
      
      32:         </h:panelGroup>
      33:         <h:panelGroup id="navigation" styleClass="navigation">
      34:           <f:subview id="_menue">
      35:             <jsp:include page="/jsf/common_modules/menue.jsp"/>
      36:           </f:subview>      
      37:         </h:panelGroup>   
      38:         <!-- Im div mit ud content befindet sich die eigentlichen Nutzapplikationen -->
      
      
      Stacktrace:
          at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)
          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
          at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
          at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
          at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
          at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:542)
          at com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java:359)
          at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:150)
          at com.sun.faces.application.view.JspViewHandlingStrategy.renderView(JspViewHandlingStrategy.java:190)
          at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:127)
          at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
          at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:117)
          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)
          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:309)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
          at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
          at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at intranet.auth.IntranetAuthorizationFilter.doFilter(IntranetAuthorizationFilter.java:47)
          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.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
          at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
          at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
          at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
          at java.lang.Thread.run(Unknown Source)
      
      

       

      Thats what my Phaselistener debuged:

      START PHASE RESTORE_VIEW 1  FROM Page:            /home.jsf

      END PHASE RESTORE_VIEW 1  FROM Page:              /home.jsf

      START PHASE RENDER_RESPONSE 6  FROM Page:            /home.jsf

      START PHASE RESTORE_VIEW 1  FROM Page:            /home.jsf

      END PHASE RESTORE_VIEW 1  FROM Page:              /home.jsf

      START PHASE RENDER_RESPONSE 6  FROM Page:            /home.jsf

      first time called the getter who return the PanelMenu      was called

      second time the getter who return the PanelMenu           was called

       

      Here appears the Exception

       

      END PHASE RENDER_RESPONSE 6  FROM Page:              /home.jsf

      END PHASE RENDER_RESPONSE 6  FROM Page:              /home.jsf

       

       

       

      If i wait that a request finishes, all works well.

       

      Thanks a lot