You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Arne Limburg (JIRA)" <ji...@apache.org> on 2011/03/25 09:03:05 UTC
[jira] [Commented] (OWB-553) Injection of javax.inject.Provider
fails with OWBInjector
[ https://issues.apache.org/jira/browse/OWB-553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011121#comment-13011121 ]
Arne Limburg commented on OWB-553:
----------------------------------
Hi Mark,
the ThreadLocal InstanceBean.local seems to contain no value in that case. When you point me in the right direction, maybe I can provide a patch. Where should the local be filled?
> Injection of javax.inject.Provider fails with OWBInjector
> ---------------------------------------------------------
>
> Key: OWB-553
> URL: https://issues.apache.org/jira/browse/OWB-553
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Injection and Lookup
> Affects Versions: 1.0.0
> Reporter: Arne Limburg
> Assignee: Mark Struberg
> Priority: Critical
> Fix For: 1.2.0
>
> Attachments: provider-bug.zip
>
>
> When a javax.inject.Provider is injected with the OWBInjector access to provider.get() results in a NullPointerException. The consequence is, that javax.inject.Providers cannot be injected into ServletListeners, Servlets and Filters (tested with Tomcat 6) and EJBs (guessed).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira