[weld-dev] NPE on AbstractResourceInjection

Emily Jiang emijiang6 at googlemail.com
Mon Aug 3 18:37:54 EDT 2015


I am trying to use Weld to inject ManagedBean instance but got the
following NPE.
[javatest.batch] Caused by: java.lang.NullPointerException
[javatest.batch]        at
org.jboss.weld.injection.AbstractResourceInjection.getResourceReference(AbstractResourceInjection.java:44)
[javatest.batch]        at
org.jboss.weld.injection.AbstractResourceInjection.injectResourceReference(AbstractResourceInjection.java:53)
[javatest.batch]        at
org.jboss.weld.util.Beans.injectEEFields(Beans.java:348)
[javatest.batch]        at
org.jboss.weld.injection.producer.ResourceInjector$1.proceed(ResourceInjector.java:69)
-- 

Is there anything wrong? For some reason, it does not call back to the
ResourceReferenceFactory service to get hold of an instance of an factory.
Thanks
Emily
=================
Emily Jiang
ejiang at apache.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20150803/2100d418/attachment.html 


More information about the weld-dev mailing list