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

ArrayIndexOutOfBoundsException in ReteooRuleBase.addPackage() in 5.1.0.M2

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 5.1.0.M2
    • Fix Version/s: 5.1.0.CR1
    • Component/s: None
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      To reproduce, I made a regular Maven project.
      You can run the main class this way:
      mvn -e exec:java -Dexec.mainClass="DroolsRunExportedProjectOldAPI"

      The eclipse project has been generated with:
      mvn eclipse:eclipse

      I put the Maven project here on my site:
      http://jmvanel.free.fr/tmp/drools_bug.zip

      Show
      To reproduce, I made a regular Maven project. You can run the main class this way: mvn -e exec:java -Dexec.mainClass="DroolsRunExportedProjectOldAPI" The eclipse project has been generated with: mvn eclipse:eclipse I put the Maven project here on my site: http://jmvanel.free.fr/tmp/drools_bug.zip

      Description

      It seems related to having a not too small Working Memory (622 objects), and then compiling and adding several not too small rules packages. It runs fine on 5.1.0.M1 and before, but crashes 5.1.0.M2 and on today's 5.1.0.SNAPSHOT.

      Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 128
      at org.drools.core.util.LeftTupleIndexHashTable$FieldIndexHashTableFullIterator.next(LeftTupleIndexHashTable.java:153)
      at org.drools.reteoo.NotNode.updateSink(NotNode.java:471)
      at org.drools.reteoo.RuleTerminalNode.attach(RuleTerminalNode.java:395)
      at org.drools.reteoo.builder.ReteooRuleBuilder.addSubRule(ReteooRuleBuilder.java:177)
      at org.drools.reteoo.builder.ReteooRuleBuilder.addRule(ReteooRuleBuilder.java:128)
      at org.drools.reteoo.ReteooBuilder.addRule(ReteooBuilder.java:117)
      at org.drools.reteoo.ReteooRuleBase.addRule(ReteooRuleBase.java:409)
      at org.drools.common.AbstractRuleBase.addRule(AbstractRuleBase.java:638)
      at org.drools.common.AbstractRuleBase.addPackages(AbstractRuleBase.java:520)
      at org.drools.reteoo.ReteooRuleBase.addPackage(ReteooRuleBase.java:435)
      at DroolsRunExportedProjectOldAPI.loadSource(DroolsRunExportedProjectOldAPI.java:124)
      at DroolsRunExportedProjectOldAPI.main(DroolsRunExportedProjectOldAPI.java:79)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tirelli Edson Tirelli
                  Reporter:
                  jmvanel Jean-Marc Vanel
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: