You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Thierry Robin (Created) (JIRA)" <ji...@apache.org> on 2011/11/15 17:58:52 UTC

[jira] [Created] (OWB-628) Event injection doesn't work in observer methods.

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: Gurkan Erdogdu
             Fix For: 1.1.3


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

        

[jira] [Updated] (OWB-628) Event injection doesn't work in observer methods.

Posted by "Mark Struberg (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OWB-628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg updated OWB-628:
------------------------------

    Fix Version/s:     (was: 2.0.0)
                   1.1.4
    
> 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: Rohit Dilip Kelapure
>             Fix For: 1.1.4
>
>
> 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

        

[jira] [Assigned] (OWB-628) Event injection doesn't work in observer methods.

Posted by "Mark Struberg (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OWB-628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg reassigned OWB-628:
---------------------------------

    Assignee: Mark Struberg  (was: Gurkan Erdogdu)
    
> 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.1.3
>
>
> 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

        

[jira] [Updated] (OWB-628) Event injection doesn't work in observer methods.

Posted by "Mark Struberg (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OWB-628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg updated OWB-628:
------------------------------

    Fix Version/s:     (was: 1.1.3)
                   1.2.0
    
> 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

        

[jira] [Commented] (OWB-628) Event injection doesn't work in observer methods.

Posted by "Mark Struberg (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13242130#comment-13242130 ] 

Mark Struberg commented on OWB-628:
-----------------------------------

We try to get this done before starting the 1.1.4 release process.
                
> 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: Rohit Dilip Kelapure
>             Fix For: 1.1.4
>
>
> 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

        

[jira] [Commented] (OWB-628) Event injection doesn't work in observer methods.

Posted by "Rohit Dilip Kelapure (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13221339#comment-13221339 ] 

Rohit Dilip Kelapure commented on OWB-628:
------------------------------------------

Team please review the code changes. This should fix the issue. 
                
> 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: Rohit Dilip Kelapure
>             Fix For: 2.0.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

        

[jira] [Commented] (OWB-628) Event injection doesn't work in observer methods.

Posted by "Miguel ZP (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13223112#comment-13223112 ] 

Miguel ZP commented on OWB-628:
-------------------------------

No way to include this in 1.1.4?
                
> 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: Rohit Dilip Kelapure
>             Fix For: 2.0.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

        

[jira] [Commented] (OWB-628) Event injection doesn't work in observer methods.

Posted by "Kris Vandebroek (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13242091#comment-13242091 ] 

Kris Vandebroek commented on OWB-628:
-------------------------------------

Hi I'm experiencing the same problem with Seam Catch. In fact, since Seam 3.1.0, Seam Catch became part of the Seam Solder core. The result is that a developer trying to include any Seam 3.1.0 module will be experiencing the above described NPE problem.

My questions:
1. The fix is currently targeted for the 2.0.0 release. In the planning board I saw that there is still a 1.1.4 and a 1.2.0 release to be released prior to the 2.0.0. Is it possible to also implement the fix in the upcoming 1.1.4 release?
2. I'm using openwebbeans indirectly because I'm using IBM Websphere. As a consequence when OpenWebBeans releases a new version I'm still dependent on IBM to provide a new Websphere version including the upgrade of OpenWebBeans. This might take some time. Is there a temporary, manual code fix that I can apply to bypass/resolve the issue while waiting for the real fix?

Kind regards
                
> 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: Rohit Dilip Kelapure
>             Fix For: 2.0.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

        

[jira] [Resolved] (OWB-628) Event injection doesn't work in observer methods.

Posted by "Rohit Dilip Kelapure (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OWB-628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rohit Dilip Kelapure resolved OWB-628.
--------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 1.2.0)
                   2.0.0
    
> 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: Rohit Dilip Kelapure
>             Fix For: 2.0.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

        

[jira] [Commented] (OWB-628) Event injection doesn't work in observer methods.

Posted by "Miguel ZP (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13242218#comment-13242218 ] 

Miguel ZP commented on OWB-628:
-------------------------------

Thanks Mark for the update and for caring about SEAM users! I'm sure everything is getting much better with DELTASPIKE ;-)
Just one more question: Are there any pre-built snapshots to download? Didn't find any jars neither in the download section nor in the maven repository...
                
> 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: Rohit Dilip Kelapure
>             Fix For: 1.1.4
>
>
> 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

        

[jira] [Commented] (OWB-628) Event injection doesn't work in observer methods.

Posted by "Mark Struberg (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13242136#comment-13242136 ] 

Mark Struberg commented on OWB-628:
-----------------------------------

Well, according to the commits Rohit took the time and fixed that already. Kris, can you please try the latest 1.1.4-SNAPSHOT to make sure your problem will really be fixed when we ship the next version?
                
> 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: Rohit Dilip Kelapure
>             Fix For: 1.1.4
>
>
> 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

        

[jira] [Commented] (OWB-628) Event injection doesn't work in observer methods.

Posted by "Mark Struberg (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13242311#comment-13242311 ] 

Mark Struberg commented on OWB-628:
-----------------------------------

Sure, the apache.snapshots repo is here: https://repository.apache.org/content/repositories/snapshots/

OWB will get deployed nightly via our jenkins build.
                
> 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: Rohit Dilip Kelapure
>             Fix For: 1.1.4
>
>
> 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

        

[jira] [Commented] (OWB-628) Event injection doesn't work in observer methods.

Posted by "Miguel ZP (Commented) (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Commented] (OWB-628) Event injection doesn't work in observer methods.

Posted by "Mark Struberg (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13223123#comment-13223123 ] 

Mark Struberg commented on OWB-628:
-----------------------------------

Hi! I gonna look at this tonight.
                
> 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: Rohit Dilip Kelapure
>             Fix For: 2.0.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

        

[jira] [Assigned] (OWB-628) Event injection doesn't work in observer methods.

Posted by "Rohit Dilip Kelapure (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OWB-628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rohit Dilip Kelapure reassigned OWB-628:
----------------------------------------

    Assignee: Rohit Dilip Kelapure  (was: Mark Struberg)
    
> 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: Rohit Dilip Kelapure
>             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