Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-612

NPE on asserting facts before reading rules with retract

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.0.5
    • Fix Version/s: 3.0.6, 3.1-m1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windows XP, JDK 1.5.0_07

      Description

      I have a scenario that asserts two simple facts, then reads a rule file, then fires the rules. One of the rules retracts one of the facts, then modifies another object. An NPE results when things are run as in the attached files.

      However, if the rule file is read first, then the facts are asserted, there is no NPE.

      Alternatively, if the second rule, the consequence of which retracts one of the facts, is modified so that the retract is the last statement in the consequence, then the NPE does not occur, even if the facts are asserted before the rules are read.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tirelli Edson Tirelli
                Reporter:
                jblackmorehlista Justine Hlista
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: