[ https://issues.apache.org/jira/browse/OWB-553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011134#comment-13011134 ]
Mark Struberg commented on OWB-553: ----------------------------------- Hi Arne! Those ThreadLocals get initialized in our WebBeansConfigurationListener and similar startup classes. Please check all our ServletRequestListeners. The issue might be that you try to request information from the BeanManager _before_ those reqest listeners had any chance to initialize our RequestContext. You might check out our ContextsService and trace the call chain. Please note that our internal Contexts are (due to historic reasons) different than any Context registered via Extension. The spec pretty late defined that there is exactly 1 Context instance for a given ScopeType. But for our internal Contexts we have n of them. E.g. each Session gets it's own SessionContext, and the management is in our ContextFactory. At the end it doesn't make any difference, so don't get confused by this fact ;) > 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