-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drools 6.3.0.Final #1
Comments
Yes, I can definitely do that. One question though, is that NPE thrown when using the rules in my example or are you using your own rules? We've recently fixed a number of bugs in Drools incremental update on master (Drools 6.4.0-SNAPSHOT) which have also been backported to the Drools 6.3.x branch. |
I used the rules in your example with no changes other than the following properties in the pom.
|
I've tested with Drools 6.3.0.Final and that indeed shows the NPE, and also a ClassCastException. I did expect that CCE, as we've solved that in 6.3.1-SNAPSHOT and 6.4.0-SNAPSHOT. However, the NPE still occurs on 6.4.0-SNAPSHOT as well. The tests that fail are the tests in which I change the name of the .drl file on incremental update. In a real system, I would not recommend changing .drl filenames on incremental update anyway. Nevertheless, Drools should not throw an NPE when one does. The other tests that fail seem to fail due to the new propagation queue implemented in Drools, which slightly changes when a rule is fired. So I think that's a problem in my unit-test assertions which I need to fix. I'll create a small reproducer for the NPE, open a JIRA against Drools and discuss it with the Drools core engineers. I'll post the link to the JIRA here so you can track it. I'll also investigate the failing assertions and fix them. |
Any chance you are going to update this to work with Drools 6.3.0.Final? I attempted on my own but am having trouble getting past some null pointers that it throws when you update. For example running
KieSessionRulesIncrementalUpdateAddedRulesTest#testAddedRulesDifferentDrl()
gives a stacktrace like the following:The text was updated successfully, but these errors were encountered: