[weld-issues] [JBoss JIRA] Resolved: (WELD-763) NullPointerException when attempting to get an InjectionTarget for an Interface Class

Pete Muir (JIRA) jira-events at lists.jboss.org
Thu Nov 25 12:01:30 EST 2010


     [ https://jira.jboss.org/browse/WELD-763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir resolved WELD-763.
----------------------------

      Assignee: Pete Muir
    Resolution: Done


> 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
>            Assignee: Pete Muir
>             Fix For: 1.1.0.Beta3
>
>
> 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