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

threads using one ruleset throws exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 4.0.1
    • Fix Version/s: 4.0.2
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windows XP, Eclipse 3.2

      Description

      one ruleset for two threads using their own statefulsession and data results in this error:

      Exception in thread "Thread-1" java.lang.ArrayIndexOutOfBoundsException: 17
      at org.drools.util.AbstractHashTable$HashTableIterator.next(AbstractHashTable.java:257)
      at org.drools.util.AbstractHashTable$HashTableIterator.next(AbstractHashTable.java:262)
      at org.drools.util.ObjectHashSet.toArray(ObjectHashSet.java:130)
      at org.drools.common.AbstractRuleBase.getWorkingMemories(AbstractRuleBase.java:605)
      at org.drools.reteoo.builder.PatternBuilder.attachObjectTypeNode(PatternBuilder.java:157)
      at org.drools.reteoo.Rete$ClassObjectTypeConf.<init>(Rete.java:418)
      at org.drools.reteoo.Rete.assertObject(Rete.java:153)
      at org.drools.reteoo.ReteooRuleBase.assertObject(ReteooRuleBase.java:196)
      at org.drools.reteoo.ReteooWorkingMemory$WorkingMemoryReteAssertAction.execute(ReteooWorkingMemory.java:164)
      at org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:1260)
      at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:864)
      at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:826)
      at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:627)
      at eu.cewe.drools.Client.run(Client.java:22)
      Exception in thread "Thread-0" java.lang.NullPointerException
      at org.drools.reteoo.ObjectTypeNode.attach(ObjectTypeNode.java:220)
      at org.drools.reteoo.builder.PatternBuilder.attachObjectTypeNode(PatternBuilder.java:158)
      at org.drools.reteoo.Rete$ClassObjectTypeConf.<init>(Rete.java:418)
      at org.drools.reteoo.Rete.assertObject(Rete.java:153)
      at org.drools.reteoo.ReteooRuleBase.assertObject(ReteooRuleBase.java:196)
      at org.drools.reteoo.ReteooWorkingMemory$WorkingMemoryReteAssertAction.execute(ReteooWorkingMemory.java:164)
      at org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:1260)
      at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:864)
      at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:826)
      at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:627)
      at eu.cewe.drools.Client.run(Client.java:22)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mark.proctor Mark Proctor
                Reporter:
                gurkeol Markus Fromme
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: