[jboss-jira] [JBoss JIRA] Resolved: (JBRULES-2511) Entry-Points can cause NullPointerException and/or no rule firing
Edson Tirelli (JIRA)
jira-events at lists.jboss.org
Tue Jun 15 21:40:46 EDT 2010
[ https://jira.jboss.org/browse/JBRULES-2511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Edson Tirelli resolved JBRULES-2511.
------------------------------------
Fix Version/s: 5.1.0.CR1
Resolution: Out of Date
I tried your test cases with trunk and they work as expected. I tried with M2 and they failed. So it seems the problem is fixed already.
I am closing the ticket, but if you still find any problem with trunk as of revision #33510 or later, plz re-open the ticket and let me know.
Thanks for providing a good test case. Makes our investigation a lot easier and quicker.
> Entry-Points can cause NullPointerException and/or no rule firing
> -----------------------------------------------------------------
>
> Key: JBRULES-2511
> URL: https://jira.jboss.org/browse/JBRULES-2511
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 5.1.0.M2
> Environment: Windows 7 (32bits)
> Eclipse 3.4
> Drools Eclipse Plugin 5.1.0.SNAPSHOT
> JDK 1.6 U18 (32bits)
> Reporter: Vítor Moreira
> Assignee: Edson Tirelli
> Fix For: 5.1.0.CR1
>
> Attachments: droolsTest.zip
>
>
> I've got a system that receives transactions. I want to implement the following rules:
> - raise an alarm(alarm event) when there aren't any transaction for an hour (or more);
> - if there's an alarm, no more alarms should be raised;
> - if there's an alarm and the system receives a transaction, that alarm should be retracted and the system should send an recovery event.
> I've implemented the rules this way:
> - ***start*** rule to insert an "EngineStart" event when the rules engine starts
> - ***notrx_after_start*** rule to detect absence of transactions during the first hour
> - ***notrx_after_trx*** rule to detect absence of transactions (during one hour) after last transaction
> - ***rearm*** rule to detect transactions and rearm the system.
> I made a Maven project with junits, which inserts transactions at specific time, in order to raise the desired events.
> Two set of tests were made:
> - the rules defined in "default" entry-point: the correspondent junit gives a NullPointerException in DefaultAgenda
> - the rules defined in "incoming" entry-point: the correspondent junit doesn't activate the ***rearm*** rule
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list