[jboss-jira] [JBoss JIRA] Closed: (JBRULES-2294) NPE when a user/rule modify an expired fact
Edson Tirelli (JIRA)
jira-events at lists.jboss.org
Sun Oct 11 15:27:10 EDT 2009
[ https://jira.jboss.org/jira/browse/JBRULES-2294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Edson Tirelli closed JBRULES-2294.
----------------------------------
Resolution: Done
A modify or update action is broken into a retract+insert operation. When an event is expired, it is effectively removed from the node memories, preventing new matches from occurring and making further retractions useless. Although existing activations are preserved for future executions.
A bug in the "insert" half of a modify/update operation was causing rules dependent on an event to be re-activated, even if the event was already expired. Later, when these activations were fired, a NPE was raised because the events were no longer accessible.
The "insert" algorithm was fixed to not reactivate rules based on expired events, preventing the NPE.
> NPE when a user/rule modify an expired fact
> -------------------------------------------
>
> Key: JBRULES-2294
> URL: https://jira.jboss.org/jira/browse/JBRULES-2294
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-compiler, drools-core
> Affects Versions: 5.0.1.FINAL
> Reporter: Edson Tirelli
> Assignee: Edson Tirelli
> Fix For: 5.1.0.M2
>
>
> A NPE is raised when a user or rule tries to modify an expired event.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list