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

Rule not fired depending on the class loading order

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • None
    • 5.2.0.Final, 5.3.0.Final
    • None
    • None
    • Hide

      Run the main method of the class FailTest.java It should write to the standard output "Rules fired=16" but it does write "Rules fired=15"
      The source code can be found in ( ftp://mpf:mpf@ftp.eumetsat.int/DROOLS_ERROR.zip ) (7Kb)

      Show
      Run the main method of the class FailTest.java It should write to the standard output "Rules fired=16" but it does write "Rules fired=15" The source code can be found in ( ftp://mpf:mpf@ftp.eumetsat.int/DROOLS_ERROR.zip ) (7Kb)

      A very simple example "FailTest" triggers a rule only 15 times when it should trigger it 16 times.
      The same example with almost any change to the class model or to the order in loading the classes or the input data or the version of java it works.
      The Class FailTest contains only a main method calling the main method of the Class HelloWorldExample. Running directly the main method in the class HelloWorldExample does work.

      Any change fixes the problem in the example but it moves the error to other part. We have set a test testing more than 2000 million cases of rules/inputs and no matter how we write the rules or the code, we end up finding a case that fails, making the software not usable, as it is not predictable were it is going to fail.
      The case has been uner study for more than a year and we have tried AIX, Linux and XP with DROOLS 5.1, 5.2, 5.3 and the trial of Enterprise edition. The example provided has only been tested to fail for DROOLS 5.3.0 final and Enterprise edition for SLES11 SP1 with the SUN virtual machine (not the IBM one) and for XP but there is no combination for which DROOLS work for the 2000 million cases.

      The example provided is a 7kb example self-contained ( attached file DROOLS_ERROR.zip )

            mproctor@redhat.com Mark Proctor
            manuelreinaldo_jira Manuel Reinaldo Falagan (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

              Created:
              Updated:
              Archived: