[
https://jira.jboss.org/jira/browse/JBRULES-1888?page=com.atlassian.jira.p...
]
Doug Pedrick commented on JBRULES-1888:
---------------------------------------
Not sure if this relates to the same bug, but a multi-threaded execution of my rules
occasionally results in this:
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
at java.util.HashMap$ValueIterator.next(HashMap.java:822)
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:1006)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:974)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:744)
at
org.drools.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:183)
Environment: Drools 5.0.0.M5
JDK1.6_07
Mac OSX 10.5.6
Concurrency issue in MultithreadedTest
--------------------------------------
Key: JBRULES-1888
URL:
https://jira.jboss.org/jira/browse/JBRULES-1888
Project: JBoss Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-compiler, drools-compiler (expert)
Reporter: Mark Proctor
Assignee: Edson Tirelli
Fix For: 5.0.0.CR1
MultithreadedTest.restRuleBaseConcurrentCreation sometimes has this error:
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
at java.util.HashMap$ValueIterator.next(HashMap.java:822)
at org.drools.reteoo.EntryPointNode.updateSink(EntryPointNode.java:283)
at org.drools.reteoo.ObjectTypeNode.attach(ObjectTypeNode.java:276)
at
org.drools.reteoo.builder.PatternBuilder.attachObjectTypeNode(PatternBuilder.java:186)
at org.drools.reteoo.ClassObjectTypeConf.<init>(ClassObjectTypeConf.java:94)
at
org.drools.common.ObjectTypeConfigurationRegistry.getObjectTypeConf(ObjectTypeConfigurationRegistry.java:58)thread-6
failed: null
at org.drools.reteoo.Rete.assertObject(Rete.java:109)
at org.drools.reteoo.ReteooRuleBase.assertObject(ReteooRuleBase.java:207)
at
org.drools.reteoo.ReteooWorkingMemory$WorkingMemoryReteAssertAction.execute(ReteooWorkingMemory.java:275)
at
org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:1398)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:1005)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:968)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:740)
at
org.drools.integrationtests.MultithreadTest$RulebaseRunner.run(MultithreadTest.java:125)
at java.lang.Thread.run(Thread.java:619)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira