6 Replies Latest reply on Jan 12, 2010 10:48 PM by Aravind Ksr

    quick help - reg Rich:tree

    Dolphin Here Newbie
      Hi All,

      i am struck with no hint of the reason. am trying to develop a tree structure performing the specific action for spec params.

      my xhtml is :

      <h:form>
           <rich:tree switchType="client" value="#{mybean.btree}"
                var="item" treeNodeVar="treeNode" nodeFace="#{treeNode.getType()}"
                adviseNodeOpened="#{mybean.adviseNodeOpened}"
                adviseNodeSelected="#{mybean.adviseNodeSelected}">

                <rich:treeNode type="TYPE1" icon="img/ico_common.gif"
                     iconLeaf="img/disc.gif">
                     <h:commandLink action="#{mybean.updateModel}" value="#{item}" >
                          <f:param name="accountNum" value="#{treeNode.ban}" />
                          <f:param name="role" value="TYPE1" />
                     </h:commandLink>
                </rich:treeNode>


           </rich:tree>     

                     
      </h:form>



      the application is deployed without any errors for the first time. when i click on the tree node, it says


      Caused by: javax.el.ELException: /first.xhtml @13,61 nodeFace="#{treeNode.getType()}": Method not found: org.richfaces.model.TreeNodeImpl@76ef7b.getType()
           at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
           at org.richfaces.component.html.HtmlTree.getNodeFace(HtmlTree.java:1082)


      the above code works fine if i replace h:commandlink with s:link.

      can somebody help me to why is this problem ?

      kindly help.
      Lakshmi
        • 1. Re: quick help - reg Rich:tree
          Bernard Labno Master

          Post your updateModel method source.

          • 2. Re: quick help - reg Rich:tree
            Dolphin Here Newbie
            public String updateModel(){
                 try{
                      log.info("Entering update Model");
                          log.info("ACCOUNT" + accountNum + "ROLE"+role);

                     
                     
                          userSessionData.setEmulatedUserAccount(accountNum);
                          userSessionData.setEmulatedUserRole(role);

                 }catch(Exception e){
                           e.printStackTrace();
                 }

                     return role;
                }

            where userSessionData is the object of other bean annotated as

                @In(required=false)
                @Out(required=false)
                User userSessionData;

            • 3. Re: quick help - reg Rich:tree
              Dolphin Here Newbie

              Can Somebody help me on this?
              am still stuck with this :-(

              • 4. Re: quick help - reg Rich:tree
                Aravind Ksr Newbie

                Hi Lakshmi,


                Replace


                nodeFace="#{treeNode.getType()}

                with

                nodeFace="#{treeNode.type}



                I would suggest you to use different variable name for treeNodeVar. Since treeNode is another richfaces component, if you use it may cause some problem.


                Aravind


                • 5. Re: quick help - reg Rich:tree
                  Dolphin Here Newbie
                  Thanks Aravind.


                  but the problem still persists. have changed the treeNodeVar variable too.

                  rich:tree switchType="client" value="#{mybean.btree}"
                    var="item" treeNodeVar="treeVar" nodeFace="#{treeVar.type}"
                    adviseNodeOpened="#{mybean.adviseNodeOpened}"
                    adviseNodeSelected="#{mybean.adviseNodeSelected}"



                  there goes the log FYR.

                  10:00:46,742 WARN  [lifecycle] javax.el.PropertyNotFoundException: /Tcare_cust_sub_tree.xhtml @9,5 nodeFace="#{treeVar.type}": Property 'type' not found on type org.richfaces.model.TreeNodeImpl
                  javax.faces.FacesException: javax.el.PropertyNotFoundException: /Tcare_cust_sub_tree.xhtml @9,5 nodeFace="#{treeVar.type}": Property 'type' not found on type org.richfaces.model.TreeNodeImpl
                          at org.richfaces.component.html.HtmlTree.getNodeFace(HtmlTree.java:1084)
                          at org.richfaces.component.UITree.getNodeFacet(UITree.java:277)
                          at org.richfaces.component.UITree.dataChildren(UITree.java:505)
                          at org.ajax4jsf.component.UIDataAdaptor.saveChildState(UIDataAdaptor.java:889)
                          at org.ajax4jsf.component.UIDataAdaptor.setRowKey(UIDataAdaptor.java:345)
                          at org.ajax4jsf.component.UIDataAdaptor.iterate(UIDataAdaptor.java:1046)
                          at org.ajax4jsf.component.UIDataAdaptor.processDecodes(UIDataAdaptor.java:1158)
                          at org.richfaces.component.UITree.processDecodes(UITree.java:475)
                          at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
                          at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
                          at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
                          at javax.faces.component.UIForm.processDecodes(UIForm.java:203)
                          at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
                          at org.ajax4jsf.component.AjaxViewRoot$1.invokeContextCallback(AjaxViewRoot.java:392)
                          at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:238)
                          at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:409)
                          at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
                          at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                          at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                          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:177)
                          at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
                          at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
                          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
                          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:58)
                          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.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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
                          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                          at java.lang.Thread.run(Thread.java:595)
                  Caused by: javax.el.PropertyNotFoundException: /Tcare_cust_sub_tree.xhtml @9,5 nodeFace="#{treeVar.type}": Property 'type' not found on type org.richfaces.model.TreeNodeImpl
                          at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:73)
                          at org.richfaces.component.html.HtmlTree.getNodeFace(HtmlTree.java:1082)
                          ... 60 more
                  10:00:46,742 WARN  [lifecycle] executePhase(APPLY_REQUEST_VALUES 2,com.sun.faces.context.FacesContextImpl@15bb1f4) threw exception
                  javax.faces.FacesException: javax.el.PropertyNotFoundException: /Tcare_cust_sub_tree.xhtml @9,5 nodeFace="#{treeVar.type}": Property 'type' not found on type org.richfaces.model.TreeNodeImpl
                          at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:109)
                          at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                          at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                          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:177)
                          at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
                          at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
                          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
                          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:58)
                          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.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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
                          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                          at java.lang.Thread.run(Thread.java:595)
                  Caused by: javax.faces.FacesException: javax.el.PropertyNotFoundException: /Tcare_cust_sub_tree.xhtml @9,5 nodeFace="#{treeVar.type}": Property 'type' not found on type org.richfaces.model.TreeNodeImpl
                          at org.richfaces.component.html.HtmlTree.getNodeFace(HtmlTree.java:1084)
                          at org.richfaces.component.UITree.getNodeFacet(UITree.java:277)
                          at org.richfaces.component.UITree.dataChildren(UITree.java:505)
                          at org.ajax4jsf.component.UIDataAdaptor.saveChildState(UIDataAdaptor.java:889)
                          at org.ajax4jsf.component.UIDataAdaptor.setRowKey(UIDataAdaptor.java:345)
                          at org.ajax4jsf.component.UIDataAdaptor.iterate(UIDataAdaptor.java:1046)
                          at org.ajax4jsf.component.UIDataAdaptor.processDecodes(UIDataAdaptor.java:1158)
                          at org.richfaces.component.UITree.processDecodes(UITree.java:475)
                          at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
                          at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
                          at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
                          at javax.faces.component.UIForm.processDecodes(UIForm.java:203)
                          at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
                          at org.ajax4jsf.component.AjaxViewRoot$1.invokeContextCallback(AjaxViewRoot.java:392)
                          at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:238)
                          at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:409)
                          at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
                          ... 44 more
                  Caused by: javax.el.PropertyNotFoundException: /Tcare_cust_sub_tree.xhtml @9,5 nodeFace="#{treeVar.type}": Property 'type' not found on type org.richfaces.model.TreeNodeImpl
                          at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:73)
                          at org.richfaces.component.html.HtmlTree.getNodeFace(HtmlTree.java:1082)
                          ... 60 more
                  10:00:46,742 WARN  [ExceptionFilter] handling uncaught exception
                  javax.servlet.ServletException: javax.el.PropertyNotFoundException: /Tcare_cust_sub_tree.xhtml @9,5 nodeFace="#{treeVar.type}": Property 'type' not found on type org.richfaces.model.TreeNodeImpl
                          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
                          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                          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:177)
                          at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
                          at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
                          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
                          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:58)
                          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.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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
                          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                          at java.lang.Thread.run(Thread.java:595)
                  Caused by: javax.faces.FacesException: javax.el.PropertyNotFoundException: /Tcare_cust_sub_tree.xhtml @9,5 nodeFace="#{treeVar.type}": Property 'type' not found on type org.richfaces.model.TreeNodeImpl
                          at org.richfaces.component.html.HtmlTree.getNodeFace(HtmlTree.java:1084)
                          at org.richfaces.component.UITree.getNodeFacet(UITree.java:277)
                          at org.richfaces.component.UITree.dataChildren(UITree.java:505)
                          at org.ajax4jsf.component.UIDataAdaptor.saveChildState(UIDataAdaptor.java:889)
                          at org.ajax4jsf.component.UIDataAdaptor.setRowKey(UIDataAdaptor.java:345)
                          at org.ajax4jsf.component.UIDataAdaptor.iterate(UIDataAdaptor.java:1046)
                          at org.ajax4jsf.component.UIDataAdaptor.processDecodes(UIDataAdaptor.java:1158)
                          at org.richfaces.component.UITree.processDecodes(UITree.java:475)
                          at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
                          at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
                          at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
                          at javax.faces.component.UIForm.processDecodes(UIForm.java:203)
                          at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
                          at org.ajax4jsf.component.AjaxViewRoot$1.invokeContextCallback(AjaxViewRoot.java:392)
                          at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:238)
                          at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:409)
                          at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
                          at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                          at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                          ... 41 more
                  Caused by: javax.el.PropertyNotFoundException: /Tcare_cust_sub_tree.xhtml @9,5 nodeFace="#{treeVar.type}": Property 'type' not found on type org.richfaces.model.TreeNodeImpl
                          at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:73)
                          at org.richfaces.component.html.HtmlTree.getNodeFace(HtmlTree.java:1082)
                          ... 60 more
                  10:00:46,742 WARN  [ExceptionFilter] exception root cause
                  javax.faces.FacesException: javax.el.PropertyNotFoundException: /Tcare_cust_sub_tree.xhtml @9,5 nodeFace="#{treeVar.type}": Property 'type' not found on type org.richfaces.model.TreeNodeImpl
                          at org.richfaces.component.html.HtmlTree.getNodeFace(HtmlTree.java:1084)
                          at org.richfaces.component.UITree.getNodeFacet(UITree.java:277)
                          at org.richfaces.component.UITree.dataChildren(UITree.java:505)
                          at org.ajax4jsf.component.UIDataAdaptor.saveChildState(UIDataAdaptor.java:889)
                          at org.ajax4jsf.component.UIDataAdaptor.setRowKey(UIDataAdaptor.java:345)
                          at org.ajax4jsf.component.UIDataAdaptor.iterate(UIDataAdaptor.java:1046)
                          at org.ajax4jsf.component.UIDataAdaptor.processDecodes(UIDataAdaptor.java:1158)
                          at org.richfaces.component.UITree.processDecodes(UITree.java:475)
                          at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
                          at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
                          at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
                          at javax.faces.component.UIForm.processDecodes(UIForm.java:203)
                          at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
                          at org.ajax4jsf.component.AjaxViewRoot$1.invokeContextCallback(AjaxViewRoot.java:392)
                          at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:238)
                          at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:409)
                          at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
                          at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                          at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                          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:177)
                          at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
                          at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
                          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
                          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:58)
                          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.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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
                          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                          at java.lang.Thread.run(Thread.java:595)
                  Caused by: javax.el.PropertyNotFoundException: /Tcare_cust_sub_tree.xhtml @9,5 nodeFace="#{treeVar.type}": Property 'type' not found on type org.richfaces.model.TreeNodeImpl
                          at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:73)
                          at org.richfaces.component.html.HtmlTree.getNodeFace(HtmlTree.java:1082)
                          ... 60 more
                  10:00:46,742 WARN  [ExceptionFilter] running exception handlers
                  10:00:46,742 ERROR [ExceptionFilter] could not roll back transaction
                  java.util.EmptyStackException
                          at java.util.Stack.peek(Stack.java:79)
                          at java.util.Stack.pop(Stack.java:61)
                          at org.jboss.seam.transaction.SeSynchronizations.afterTransactionRollback(SeSynchronizations.java:45)
                          at org.jboss.seam.transaction.UTTransaction.rollback(UTTransaction.java:70)
                          at org.jboss.seam.web.ExceptionFilter.rollbackTransactionIfNecessary(ExceptionFilter.java:159)
                          at org.jboss.seam.web.ExceptionFilter.endWebRequestAfterException(ExceptionFilter.java:113)
                          at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:70)
                          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:177)
                          at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
                          at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
                          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
                          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:58)
                          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.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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
                          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                          at java.lang.Thread.run(Thread.java:595)

                  am i missing some thing?
                  • 6. Re: quick help - reg Rich:tree
                    Aravind Ksr Newbie

                    Hi,


                    What is the version of Richfaces you have?


                    The error says that no method or property exists in treeNode reference object. Let's says mybean.btree returns TreeNode object and it was trying to call getType method on that object.


                    Check Richfaces TreeNode API. There is no such property or method exists in TreeNode class.


                    Aravind