[weld-dev] NPE on AbstractResourceInjection

Martin Kouba mkouba at redhat.com
Tue Aug 4 03:58:17 EDT 2015


Hi Emily,

do you have ResourceInjectionServices implemented properly?

Martin

Dne 4.8.2015 v 00:37 Emily Jiang napsal(a):
> 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 <mailto:ejiang at apache.org>
>
>
> _______________________________________________
> weld-dev mailing list
> weld-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/weld-dev
>

-- 
Martin Kouba
Software Engineer
Red Hat, Czech Republic


More information about the weld-dev mailing list