[
https://issues.apache.org/jira/browse/OWB-628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13206762#comment-13206762
]
Miguel ZP commented on OWB-628:
-------------------------------
I've experienced the same behavior when trying to use SEAM Catch with TomEE
(uses OWB for CDI). It contains the following observer method:
###
public class ExceptionHandlerDispatch {
...
public void executeHandlers(@Observes @Any ExceptionToCatch eventException,
final BeanManager bm,
CatchExtension extension, Event<ExceptionStack>
stackEvent) throws Throwable {
...
###
stackEvent is always null and therefore causes a NPE. It seems to be a problem
at the injection of the parametrized type Event. Any clue?
> Event injection doesn't work in observer methods.
> -------------------------------------------------
>
> Key: OWB-628
> URL: https://issues.apache.org/jira/browse/OWB-628
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Injection and Lookup
> Affects Versions: 1.1.2
> Reporter: Thierry Robin
> Assignee: Mark Struberg
> Fix For: 1.2.0
>
>
> I've tried this :
> public void onEvent(@Observes MyEvent event, Event<TotoEvent> eventSrc, ..)
> ... eventSrc is always null
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira