2 Replies Latest reply on Oct 1, 2009 2:35 PM by shantharama

    Help with error stack (error occurred performing resource in

      Here is the stack:

      SEVERE: Error Rendering View[/disposable/test.xhtml]
      com.sun.faces.mgbean.ManagedBeanCreationException: An error occurred performing resource injection on managed bean nodesBean
       at com.sun.faces.mgbean.BeanBuilder.invokePostConstruct(BeanBuilder.java:227)
       at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:109)
       at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:368)
       at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:230)
       at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:86)
       at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
       at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
       at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:61)
       at org.apache.el.parser.AstValue.getValue(AstValue.java:107)
       at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
       at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
       at org.richfaces.component.html.HtmlTreeNodesAdaptor.getNodes(HtmlTreeNodesAdaptor.java:76)
       at org.richfaces.model.StackingTreeModelProvider.getData(StackingTreeModelProvider.java:41)
       at org.richfaces.component.UITreeNodesAdaptor$1.getData(UITreeNodesAdaptor.java:54)
       at org.richfaces.model.StackingTreeModel.getDataModel(StackingTreeModel.java:83)
       at org.richfaces.model.StackingTreeModel.doWalk(StackingTreeModel.java:309)
       at org.richfaces.model.StackingTreeModel.walk(StackingTreeModel.java:381)
       at org.richfaces.component.UITree.walk(UITree.java:422)
       at org.richfaces.renderkit.TreeRendererBase.writeContent(TreeRendererBase.java:655)
       at org.richfaces.renderkit.TreeRendererBase.encodeChildren(TreeRendererBase.java:601)
       at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
       at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
       at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
       at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
       at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
       at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
       at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
       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:110)
       at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
       at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
       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:178)
       at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
       at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
       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.core.StandardHostValve.invoke(StandardHostValve.java:128)
       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:286)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Thread.java:619)
      Caused by: com.sun.faces.spi.InjectionProviderException: java.lang.reflect.InvocationTargetException
       at com.sun.faces.vendor.Tomcat6InjectionProvider.invokePostConstruct(Tomcat6InjectionProvider.java:120)


      I couldnt find much info on that particular error when I searched for it, actually i dont think i found anything that actually had that full error

      All I did was change the object that was being loaded into a List. This List is being used to populate a rich:tree. I changed the Object that is getting loaded into the list and it does this now. I know when I call the methods to load the object with values through the java code it does just that and the Object has values, but maybe I need to have the Object load with values before this will work? Im not even sure if that is the problem to be honest though, thats why I am coming here to ask.

        • 1. Re: Help with error stack (error occurred performing resourc

          Nevermind, I got this one figured out. Now I am having issues with loading my List with Objects. Instead of each unique Object getting loaded into the List it loads in multiple instances of the same Object, so when i bind this to the tree it has the correct number of nodes, but they are all the same project! If I can just get by that oe hang up Ill have the tree I have been trying to get working for 3 months now!!

          Here is the code if anyone wants to try and tell me why that projects list is adding the same Object multiple times instead of all the different Objects (projects.add(projectHolder);):

          //@PostConstruct - Do I need this??
           public void loadValues(){
          
           //start set the projectName
           MeasurementProjectCollectionXMLAO access = new MeasurementProjectCollectionXMLAO();
           ProjectHttpClient method = new ProjectHttpClient();
           MeasurementProjectCollection measurementProjectCollection = null;
           ProjectHolder projectHolder = new ProjectHolder();
          
           //sets measurementProjectCollection to the xml received from web service
           try {
           measurementProjectCollection = access.readXML(method.Response(null));
           } catch (Exception e) {
           // TODO Auto-generated catch block
           e.printStackTrace();
           }
          
           for (MeasurementProject measurementProject : measurementProjectCollection.getMeasurementProjects()){
          
           projectHolder.setProjectName(measurementProject.getName());
           url = measurementProject.getProjectId();
           System.out.println("Value of ProjectName "+projectHolder.getProjectName());
          
           //setting the deviceList values
           if(measurementProject.getDevices() != null){
          
           //clear the previous values first
           projectHolder.clearDevicesList();
          
           MeasurementProjectXMLAO allow = new MeasurementProjectXMLAO();
           MeasurementProject project = null;
          
           //sets project to the xml received from web service
           try {
           project = allow.readXML(method.GetMethod(url));
           } catch (Exception e) {
           // TODO Auto-generated catch block
           e.printStackTrace();
           }
          
           for (ProjectDevice projectDevice : project.getDevices()){
           projectHolder.devicesList.add(projectDevice.getDeviceId());
           System.out.println("Value of deviceList "+projectHolder.getDevicesList().toString());
           }
          
           }
           //end setting the deviceList
           projects.add(projectHolder);
           }
           //end set projectName
           }




          • 2. Re: Help with error stack (error occurred performing resourc

            how did you resolve the first issue, i am also having similar issue