Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1107741

Summary: WAS: 'Cannot send event to bean' on resource update
Product: [Retired] JBoss BRMS Platform 6 Reporter: Zuzana Krejčová <zkrejcov>
Component: Business CentralAssignee: Alexandre Porcelli <porcelli>
Status: CLOSED CURRENTRELEASE QA Contact: Zuzana Krejčová <zkrejcov>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.2CC: etirelli, lpetrovi, paradhya, rrajasek, rsynek
Target Milestone: CR1   
Target Release: 6.0.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 19:53:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Zuzana Krejčová 2014-06-10 13:59:08 UTC
Description of problem:
CDI events are getting lost on WebSphere. E.g. when updating an asset, you will find the following in the server log:

ObserverMetho I ObserverMethodImpl notify Cannot send event to bean in non-active context : [918923091,Name:null,WebBeans Type:MANAGED,API Types:[org.guvnor.common.services.builder.ResourceChangeObserver,java.lang.Object],Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]]
ObserverMetho I ObserverMethodImpl notify Cannot send event to bean in non-active context : [930401072,Name:null,WebBeans Type:MANAGED,API Types:[org.kie.workbench.common.services.backend.rulename.RuleNameServiceImpl,java.lang.Object,org.kie.workbench.common.services.shared.rulename.RuleNamesService],Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]]
ObserverMetho I ObserverMethodImpl notify Cannot send event to bean in non-active context : [-192596221,Name:null,WebBeans Type:MANAGED,API Types:[org.guvnor.inbox.backend.server.InboxBackend,java.lang.Object,org.guvnor.inbox.backend.server.InboxBackendImpl],Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]]

Most notable result (in the GUI) is that the incremental build isn't even requested. This also seems to have an effect on Test Scenario results - rules fire or don't fire almost "as they wish", definitely not in the expected way.


The only event that so far seems to get processed correctly is when a resource is added. Updating the content or deleting an asset is not working.



Version-Release number of selected component (if applicable):
BRMS 6.0.2 ER3


Steps to Reproduce:
1. Create an empty guided rule.
2. Create a test scenario, expect the new rule to fire.
3. Disable the rule (add option enabled=false) and save.
4. (Reopen and) run the test scenario.


Actual results:
Reporting: Success. The rule fired, even when disabled. 'Cannot send event to bean' in the server log.


Expected results:
Reporting: Fail. The rule did not fire.

Comment 1 Alexandre Porcelli 2014-06-12 15:55:46 UTC
This issue seems to be fixed by now (in fact this issue is fixed by same fix of #1105174), here a complete list of commits:

uberfire:
0.3.x:

https://github.com/uberfire/uberfire/commit/2041efd6262d195769c44d58353b7d50ac67212c
https://github.com/uberfire/uberfire/commit/4ec3237d35e280844cd616cc4f6a9b89eb2d8a04
https://github.com/uberfire/uberfire/commit/838608ff88568724aa3280da1910c8d6b949e013
https://github.com/uberfire/uberfire/commit/bc84aa7c5c591b1a72a3e2c1deb86167559d6734
https://github.com/uberfire/uberfire/commit/5c13453fc43f90da8723ec2cd68c822085e5cc42
https://github.com/uberfire/uberfire/commit/7e1ff3a51554291ad1c13c2c9793ba9cf70c38a2
https://github.com/uberfire/uberfire/commit/8c08d1adb2b2eec43d66f081f984c8bb5546c36f
https://github.com/uberfire/uberfire/commit/e327a5a8a0834a3fc4907f8b008ade9b68898417
https://github.com/uberfire/uberfire/commit/0b7d8d3c2de082a0fe042301f503fdf076404442

master:
https://github.com/uberfire/uberfire/commit/94e25ee36c602d2f203abac5f23226b5d66461d2
https://github.com/uberfire/uberfire/commit/7cf74a15a86e68eb0eb4046838057bd691619bbf
https://github.com/uberfire/uberfire/commit/581e25e15535f14b7909ac8a765aff1bcfe21728
https://github.com/uberfire/uberfire/commit/4d2af018f3c78d219d5cdd150c5134342625c50e
https://github.com/uberfire/uberfire/commit/c409971e9b423d94e41161281e0d8aa0db807596
https://github.com/uberfire/uberfire/commit/20ddfbeb255cb37e4f0da8d5a394ee69306b2dfc
https://github.com/uberfire/uberfire/commit/ab276ddc21f45dac8befee70ae0c285b4f7eacd0
https://github.com/uberfire/uberfire/commit/d3a4049e32c59f7c5b2cd11709d38dd483631a14
https://github.com/uberfire/uberfire/commit/fa2f0bd16a237391c63e2076365933175d085a62


guvnor:
6.0.x:
https://github.com/droolsjbpm/guvnor/commit/9655ce851c4ddd08deee2c495bba89d45a18677c
https://github.com/droolsjbpm/guvnor/commit/840e6e1fa8f3548ecf1da7b971747d69828c86ca
https://github.com/droolsjbpm/guvnor/commit/ab906a2486cfe0edd3f99612ea6542edab238a63

master:
https://github.com/droolsjbpm/guvnor/commit/757b9771b5a9c67ab264794748c7c33c1aaf9f53
https://github.com/droolsjbpm/guvnor/commit/bcc390534253fde622cf139ee8f6a39cdc641c19
https://github.com/droolsjbpm/guvnor/commit/43dd4d678bba8b76e3d28c1630aef24d929530fb

6.1.x:
https://github.com/droolsjbpm/guvnor/commit/cc774f0d86b6b02083a09d59cda4e4a7df160f83
https://github.com/droolsjbpm/guvnor/commit/f6c0bcafad239dde0f2caf80fa33c51b60503895
https://github.com/droolsjbpm/guvnor/commit/63d589301f26fefe66307f81d2dbc543c13cad8d


kie-wb-common

6.0.x:
https://github.com/droolsjbpm/kie-wb-common/commit/25b77d799ac2a9fe9a4e2923f4104a4a5922b53f

master:
https://github.com/droolsjbpm/kie-wb-common/commit/d5f1de11bfe4511ddcc6542a8c6953f42dea3861

6.1.x:
https://github.com/droolsjbpm/kie-wb-common/commit/4afc934c43ed84720cc565f144efbd295e5327c7


kie-wb-distributions

6.0.x:
https://github.com/droolsjbpm/kie-wb-distributions/commit/ef870ee1db7503ae776408dbc16e2f8ce03f40a8

master:
https://github.com/droolsjbpm/kie-wb-distributions/commit/b0aea65508ad3ab5e61b4db9f1ca9265cb711a63

6.1.x:
https://github.com/droolsjbpm/kie-wb-distributions/commit/095c932e3a23626ef5d4283d7700a1f2a039c1b5

Comment 2 Zuzana Krejčová 2014-06-18 14:55:49 UTC
Verified with CR1 - the log messages mentioned in the description are no longer there, tests influenced by this issue work as expected.