com.sun.faces.mgbean.ManagedBeanCreationException: An error occurred performing resource injection on managed bean dynamicResourceBean

ICEsoft JIRA Issue Tracker | Liana Munroe | 2 years ago
  1. 0

    Navigating to ace:graphicImage or ace:dynamicResource demos whether by clicking the link directly or typing name into search bar navigates to showcase>Overview page. Not an issue with any other navigation or when tested with Tomcat 7. Stack trace: Mar 11, 2015 4:16:47 PM org.icefaces.samples.showcase.util.FacesUtils getManagedBean SEVERE: could not get value for bean dynamicResourceBean com.sun.faces.mgbean.ManagedBeanCreationException: An error occurred performing resource injection on managed bean dynamicResourceBean at com.sun.faces.mgbean.BeanBuilder.invokePostConstruct(BeanBuilder.java:227) at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:103) at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:409) at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:269) at com.sun.faces.el.ManagedBeanELResolver.resolveBean(ManagedBeanELResolver.java:257) at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:117) at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176) at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203) at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:103) at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:224) at org.icefaces.samples.showcase.util.FacesUtils.getManagedBean(FacesUtils.java:82) at org.icefaces.samples.showcase.view.navigation.NavigationController.navigate(NavigationController.java:161) at org.icefaces.samples.showcase.view.navigation.NavigationController.navigateActionListener(NavigationController.java:69) at sun.reflect.GeneratedMethodAccessor422.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.sun.el.parser.AstValue.invoke(AstValue.java:254) at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:302) at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105) at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:147) at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88) at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:813) at javax.faces.component.UICommand.broadcast(UICommand.java:300) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3436) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57) at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572) at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311) at weblogic.work.ExecuteThread.run(ExecuteThread.java:263) Caused by: com.sun.faces.spi.InjectionProviderException at com.sun.faces.vendor.WebContainerInjectionProvider.invokeAnnotatedMethod(WebContainerInjectionProvider.java:115) at com.sun.faces.vendor.WebContainerInjectionProvider.invokePostConstruct(WebContainerInjectionProvider.java:95) at com.sun.faces.mgbean.BeanBuilder.invokePostConstruct(BeanBuilder.java:221) ... 48 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor978.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.sun.faces.vendor.WebContainerInjectionProvider.invokeAnnotatedMethod(WebContainerInjectionProvider.java:113) ... 50 more Caused by: java.lang.NullPointerException at java.io.File.<init>(File.java:277) at org.icefaces.samples.showcase.example.ace.dynamicResource.DynamicResourceBean.initMetaData(DynamicResourceBean.java:81) ... 54 more

    ICEsoft JIRA Issue Tracker | 2 years ago | Liana Munroe
    com.sun.faces.mgbean.ManagedBeanCreationException: An error occurred performing resource injection on managed bean dynamicResourceBean
  2. 0

    Navigating to ace:graphicImage or ace:dynamicResource demos whether by clicking the link directly or typing name into search bar navigates to showcase>Overview page. Not an issue with any other navigation or when tested with Tomcat 7. Stack trace: Mar 11, 2015 4:16:47 PM org.icefaces.samples.showcase.util.FacesUtils getManagedBean SEVERE: could not get value for bean dynamicResourceBean com.sun.faces.mgbean.ManagedBeanCreationException: An error occurred performing resource injection on managed bean dynamicResourceBean at com.sun.faces.mgbean.BeanBuilder.invokePostConstruct(BeanBuilder.java:227) at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:103) at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:409) at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:269) at com.sun.faces.el.ManagedBeanELResolver.resolveBean(ManagedBeanELResolver.java:257) at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:117) at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176) at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203) at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:103) at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:224) at org.icefaces.samples.showcase.util.FacesUtils.getManagedBean(FacesUtils.java:82) at org.icefaces.samples.showcase.view.navigation.NavigationController.navigate(NavigationController.java:161) at org.icefaces.samples.showcase.view.navigation.NavigationController.navigateActionListener(NavigationController.java:69) at sun.reflect.GeneratedMethodAccessor422.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.sun.el.parser.AstValue.invoke(AstValue.java:254) at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:302) at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105) at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:147) at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88) at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:813) at javax.faces.component.UICommand.broadcast(UICommand.java:300) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3436) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57) at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572) at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311) at weblogic.work.ExecuteThread.run(ExecuteThread.java:263) Caused by: com.sun.faces.spi.InjectionProviderException at com.sun.faces.vendor.WebContainerInjectionProvider.invokeAnnotatedMethod(WebContainerInjectionProvider.java:115) at com.sun.faces.vendor.WebContainerInjectionProvider.invokePostConstruct(WebContainerInjectionProvider.java:95) at com.sun.faces.mgbean.BeanBuilder.invokePostConstruct(BeanBuilder.java:221) ... 48 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor978.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.sun.faces.vendor.WebContainerInjectionProvider.invokeAnnotatedMethod(WebContainerInjectionProvider.java:113) ... 50 more Caused by: java.lang.NullPointerException at java.io.File.<init>(File.java:277) at org.icefaces.samples.showcase.example.ace.dynamicResource.DynamicResourceBean.initMetaData(DynamicResourceBean.java:81) ... 54 more

    ICEsoft JIRA Issue Tracker | 2 years ago | Liana Munroe
    com.sun.faces.mgbean.ManagedBeanCreationException: An error occurred performing resource injection on managed bean dynamicResourceBean
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Tomcat 8 support

    GitHub | 2 years ago | fxprunayre
    java.lang.NullPointerException
  5. 0

    NullPointerException with mvn package

    GitHub | 2 years ago | jsandovalc
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:4.0.0-SNAPSHOT:apk (default-apk) on project mobisorteos: Execution default-apk of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:4.0.0-SNAPSHOT:apk failed.

  1. ajinkya_w 1 times, last 2 months ago
  2. emmanuelstroem 1 times, last 4 months ago
  3. adawolfs 31 times, last 2 months ago
  4. Diogo Jaym 6 times, last 5 months ago
  5. Bardh 7 times, last 6 months ago
6 more registered users
20 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at java.io.File.<init>()
  2. Java RT
    File.<init>
    1. java.io.File.<init>(File.java:277)
    1 frame
  3. org.icefaces.samples
    DynamicResourceBean.initMetaData
    1. org.icefaces.samples.showcase.example.ace.dynamicResource.DynamicResourceBean.initMetaData(DynamicResourceBean.java:81)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor978.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:606)
    3 frames
  5. JSF
    DemuxCompositeELResolver.getValue
    1. com.sun.faces.vendor.WebContainerInjectionProvider.invokeAnnotatedMethod(WebContainerInjectionProvider.java:113)
    2. com.sun.faces.vendor.WebContainerInjectionProvider.invokePostConstruct(WebContainerInjectionProvider.java:95)
    3. com.sun.faces.mgbean.BeanBuilder.invokePostConstruct(BeanBuilder.java:221)
    4. com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:103)
    5. com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:409)
    6. com.sun.faces.mgbean.BeanManager.create(BeanManager.java:269)
    7. com.sun.faces.el.ManagedBeanELResolver.resolveBean(ManagedBeanELResolver.java:257)
    8. com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:117)
    9. com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
    10. com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
    10 frames
  6. EL
    ValueExpressionImpl.getValue
    1. com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:103)
    2. com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:224)
    2 frames
  7. org.icefaces.samples
    NavigationController.navigateActionListener
    1. org.icefaces.samples.showcase.util.FacesUtils.getManagedBean(FacesUtils.java:82)
    2. org.icefaces.samples.showcase.view.navigation.NavigationController.navigate(NavigationController.java:161)
    3. org.icefaces.samples.showcase.view.navigation.NavigationController.navigateActionListener(NavigationController.java:69)
    3 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor422.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:606)
    3 frames
  9. EL
    MethodExpressionImpl.invoke
    1. com.sun.el.parser.AstValue.invoke(AstValue.java:254)
    2. com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:302)
    2 frames
  10. JSF
    TagMethodExpression.invoke
    1. com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
    1 frame
  11. JavaEE 7
    UIViewRoot.processApplication
    1. javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:147)
    2. javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
    3. javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:813)
    4. javax.faces.component.UICommand.broadcast(UICommand.java:300)
    5. javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)
    6. javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)
    6 frames
  12. JSF
    LifecycleImpl.execute
    1. com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
    2. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
    3. com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
    3 frames
  13. JavaEE 7
    FacesServlet.service
    1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
    1 frame
  14. Atmosphere weblogic
    WebAppServletContext$ServletInvocationAction.run
    1. weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
    2. weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
    3. weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
    4. weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
    5. weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
    6. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    7. weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    8. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    9. weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3436)
    10. weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402)
    10 frames
  15. weblogic.security.acl
    AuthenticatedSubject.doAs
    1. weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    1 frame
  16. weblogic.security.service
    SecurityManager.runAs
    1. weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    1 frame
  17. weblogic.servlet.provider
    WlsSubjectHandle.run
    1. weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
    1 frame
  18. Atmosphere weblogic
    ServletRequestImpl.run
    1. weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)
    2. weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)
    3. weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
    4. weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)
    4 frames
  19. weblogic.servlet.provider
    ContainerSupportProviderImpl$WlsRequestExecutor.run
    1. weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255)
    1 frame
  20. weblogic.work
    ExecuteThread.run
    1. weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
    2. weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
    2 frames