[jboss-jira] [JBoss JIRA] (DROOLS-707) NullPointer when changing order of the rules

Francesco Peloi (JIRA) issues at jboss.org
Sat Feb 7 11:33:49 EST 2015


     [ https://issues.jboss.org/browse/DROOLS-707?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francesco Peloi updated DROOLS-707:
-----------------------------------
    Description: 
Hi there,

   we are having some serious issues with some rules, they are throwing a NullPointerException and we don't understand why. I have tried to narrow down the problem to the smallest rule possible, now this rule doesn't really make much sense put like this but the real rule is more complex with more constraints. At the end the result is the same: a NPE.

I have tried it with many Drools versions from 5.x to latest 6.3.0-SNAPSHOT.

I tested this in isolation with the minimum amount of code possible, and attached it as well if someone wants to try it quickly.

Note that if line 2 of the when:
$a : Integer()
is moved as first line, the rule runs ok.

Please find the reproducer here: https://groups.google.com/forum/#!topic/drools-usage/-oNqu3l4cqE

  was:
Hi there,

   we are having some serious issues with some rules, they are throwing a NullPointerException and we don't understand why. I have tried to narrow down the problem to the smallest rule possible, now this rule doesn't really make much sense put like this but the real rule is more complex with more constraints. At the end the result is the same: a NPE.

I have tried it with many Drools versions from 5.x to latest 6.2.0.CR4.

I tested this in isolation with the minimum amount of code possible, and attached it as well if someone wants to try it quickly.

Note that if line 2 of the when:
$a : Integer()
is moved as first line, the rule runs ok.

Please find the reproducer here: https://groups.google.com/forum/#!topic/drools-usage/-oNqu3l4cqE



> NullPointer when changing order of the rules
> --------------------------------------------
>
>                 Key: DROOLS-707
>                 URL: https://issues.jboss.org/browse/DROOLS-707
>             Project: Drools
>          Issue Type: Bug
>    Affects Versions: 5.5.0.Final, 5.6.0.Final, 6.0.0.Final, 6.0.1.Final, 6.1.0.Final, 6.2.0.CR4
>            Reporter: Francesco Peloi
>            Assignee: Mark Proctor
>
> Hi there,
>    we are having some serious issues with some rules, they are throwing a NullPointerException and we don't understand why. I have tried to narrow down the problem to the smallest rule possible, now this rule doesn't really make much sense put like this but the real rule is more complex with more constraints. At the end the result is the same: a NPE.
> I have tried it with many Drools versions from 5.x to latest 6.3.0-SNAPSHOT.
> I tested this in isolation with the minimum amount of code possible, and attached it as well if someone wants to try it quickly.
> Note that if line 2 of the when:
> $a : Integer()
> is moved as first line, the rule runs ok.
> Please find the reproducer here: https://groups.google.com/forum/#!topic/drools-usage/-oNqu3l4cqE



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jboss-jira mailing list