[weld-issues] [JBoss JIRA] Commented: (WELD-761) Injection of session scoped bean in an EAR fails with NPE
Pete Muir (JIRA)
jira-events at lists.jboss.org
Thu Nov 25 10:40:59 EST 2010
[ https://jira.jboss.org/browse/WELD-761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12565415#comment-12565415 ]
Pete Muir commented on WELD-761:
--------------------------------
Siva, I've tightened up validation on this now, so with -SNAPSHOT you should get an UnresolvedDependencyException when creating the InjectionTarget. Could you run with that, and let us know what the exception becomes?
I also need the sources to the app (to check this isn't a user error) and the link to the GF issue tracker is broken.
> Injection of session scoped bean in an EAR fails with NPE
> ---------------------------------------------------------
>
> Key: WELD-761
> URL: https://jira.jboss.org/browse/WELD-761
> Project: Weld
> Issue Type: Bug
> Components: GlassFish Integration, Resolution (Typesafe and by Name)
> Affects Versions: 1.1.0.Beta2
> Reporter: Sivakumar Thyagarajan
> Fix For: 1.1.0.CR1
>
> Attachments: cdi-full-earApp.ear, server-log-snippet.txt
>
>
> Injection of a session scoped Bean into a Servlet in an EAR fails with 1.1.0.BETA2. This used to pass earlier.
> Related GlassFish issue: https://glassfish.dev.java.net/issues/show_bug.cgi?id=14832
> It appears that resolvedBean is null at https://github.com/weld/core/blob/1.1.0.Beta2/impl/src/main/java/org/jboss/weld/manager/BeanManagerImpl.java#L729
> Caused by: java.lang.NullPointerException
> at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:729)
> at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:137)
> at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:869)
> at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:881)
> at org.jboss.weld.manager.SimpleInjectionTarget$1.proceed(SimpleInjectionTarget.java:122)
> at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:134)
> at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:50)
> at org.jboss.weld.manager.SimpleInjectionTarget.inject(SimpleInjectionTarget.java:116)
--
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