Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2273

An abstract decorator class that extends a managed bean causes NPE

XMLWordPrintable

      I have an abstract decorator class that extends a managed bean class and overrides one method.

      When Weld starts up, I get this error:

      java.lang.NullPointerException
      	at org.jboss.weld.injection.InjectionPointFactory.getParameterInjectionPoints(InjectionPointFactory.java:248)
      	at org.jboss.weld.injection.AbstractCallableInjectionPoint.<init>(AbstractCallableInjectionPoint.java:51)
      	at org.jboss.weld.injection.ConstructorInjectionPoint.<init>(ConstructorInjectionPoint.java:63)
      	at org.jboss.weld.injection.ProxyClassConstructorInjectionPointWrapper.<init>(ProxyClassConstructorInjectionPointWrapper.java:54)
      	at org.jboss.weld.injection.producer.SubclassedComponentInstantiator.<init>(SubclassedComponentInstantiator.java:80)
      	at org.jboss.weld.injection.producer.SubclassedComponentInstantiator.forInterceptedDecoratedBean(SubclassedComponentInstantiator.java:63)
      	at org.jboss.weld.injection.producer.BeanInjectionTarget.initializeAfterBeanDiscovery(BeanInjectionTarget.java:121)
      	at org.jboss.weld.injection.producer.InjectionTargetInitializationContext.initialize(InjectionTargetInitializationContext.java:42)
      	at org.jboss.weld.injection.producer.InjectionTargetService.initialize(InjectionTargetService.java:63)
      	at org.jboss.weld.bootstrap.WeldStartup.deployBeans(WeldStartup.java:449)
      

      Briefly, if callable is null at line 248 in InjectionPointFactory, a NullPointerException will result.

              asabotdu@redhat.com Antoine Sabot-Durand (Inactive)
              ljnelson+github@gmail.com Laird Nelson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: