[weld-issues] [JBoss JIRA] Created: (WELD-763) NullPointerException when attempting to get an InjectionTarget for an Interface Class
Tom Fennelly (JIRA)
jira-events at lists.jboss.org
Tue Nov 23 05:51:59 EST 2010
NullPointerException when attempting to get an InjectionTarget for an Interface Class
-------------------------------------------------------------------------------------
Key: WELD-763
URL: https://jira.jboss.org/browse/WELD-763
Project: Weld
Issue Type: Bug
Reporter: Tom Fennelly
Simple enough to reproduce...
AnnotatedType<?> annotatedType = beanManager.createAnnotatedType(serviceType);
InjectionTarget injectionTarget = beanManager.createInjectionTarget(annotatedType);
Where serviceType is an Interface Class. A NPE results on the following call to createInjectionTarget because serviceType has no constructors....
java.lang.NullPointerException
at org.jboss.weld.util.Beans.getPostConstructMethods(Beans.java:246)
at org.jboss.weld.manager.SimpleInjectionTarget.<init>(SimpleInjectionTarget.java:85)
at org.jboss.weld.manager.BeanManagerImpl.createInjectionTarget(BeanManagerImpl.java:1006)
at org.switchyard.cdi.ServiceDeployer.addInjectableClientProxyBean(ServiceDeployer.java:86)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the weld-issues
mailing list