-
Bug
-
Resolution: Done
-
Major
-
3.0.0.Alpha17
-
None
-
- Create an abstract decorator that extends a managed bean class.
- Start Weld (I am starting it with SeContainerInitializer#initialize())
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.