Uploaded image for project: 'JBoss Enterprise SOA Platform'
  1. JBoss Enterprise SOA Platform
  2. SOA-2782

Drools Session insert ConcurrentModificationException in Multithreading Enviroment

    Details

    • Release Notes Text:
      FIXED: JBoss Rules Session insert was throwing an unexpected exception (ConcurrentModificationException) in multithreading enviroments.
    • Release Notes Docs Status:
      Documented as Resolved Issue

      Description

      In multithreading enviroment (with 50 active thread) sometimes occurs a ConcurrentModificationException , the complete stacktrace

      Caused by: java.util.ConcurrentModificationException
      at java.util.HashMap$HashIterator.nextEntry(HashMap.java:1091)
      at java.util.HashMap$ValueIterator.next(HashMap.java:1122)
      at org.drools.reteoo.ClassObjectTypeConf.getMatchingObjectTypes(ClassObjectTypeConf.java:171)
      at org.drools.reteoo.ClassObjectTypeConf.getObjectTypeNodes(ClassObjectTypeConf.java:163)
      at org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:143)
      at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:1046)
      at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:1001)
      at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:788)
      at it.vtfinance.vtpie.mlp.bpm.conditions.DroolsCondition.passesCondition(DroolsCondition.java:52)
      at com.opensymphony.workflow.AbstractWorkflow.passesCondition(AbstractWorkflow.java:904)
      ... 24 more

      DroolsCondition is SINGLETONE, all thread use a same RuleBase but creates a new Session for each Thread.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  rhn-support-mattd Matt Davis
                  Writer:
                  Dana Mison
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: