<div>    Pavel,</div><div><br></div><div>    This is a bug. It was fixed last week:</div><div><br></div><div><a href="https://jira.jboss.org/browse/JBRULES-2556">https://jira.jboss.org/browse/JBRULES-2556</a></div><div><br>
</div><div>    When you say you are using the &quot;official&quot; 5.0 version, do you mean the Red Hat supported version or the community version? If you are a Red Hat subscriber, you can ask them to provide you with a patch. </div>
<div><br></div><div>    Edson</div>   <br><br><div class="gmail_quote">2010/6/28 Pavel Tavoda <span dir="ltr">&lt;<a href="mailto:pavel.tavoda@gmail.com">pavel.tavoda@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Maybe yes, advice is generic but I looked at source code and from what<br>
I see iteration is going through some internal cache which is maybe<br>
concurrently modified not through items of my Hash.<br>
   for ( ObjectTypeNode node : ruleBase.getRete().getObjectTypeNodes(<br>
this.entryPoint ).values() ) {<br>
<br>
Anyway modifying fact will be wrong idea ;-).<br>
<br>
Pavel<br>
<br>
On Mon, Jun 28, 2010 at 3:36 PM, PAYET, Manuel<br>
<div class="im">&lt;<a href="mailto:manuel.payet@capgemini.com">manuel.payet@capgemini.com</a>&gt; wrote:<br>
</div><div><div></div><div class="h5">&gt; My last message presumes that you inserted a Map fact, was I wrong?<br>
&gt;<br>
&gt; -----Message d&#39;origine-----<br>
&gt; De : <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a> [mailto:<a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>] De la part de Pavel Tavoda<br>

&gt; Envoyé : lundi 28 juin 2010 15:29<br>
&gt; Ŕ : Rules Users List<br>
&gt; Objet : [rules-users] Possible bug<br>
&gt;<br>
&gt; Hello,<br>
&gt; we are using official 5.0 release and sometimes (very rarely) we get following error:<br>
&gt; java.util.ConcurrentModificationException<br>
&gt;        at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)<br>
&gt;        at java.util.HashMap$ValueIterator.next(HashMap.java:822)<br>
&gt;        at org.drools.reteoo.ClassObjectTypeConf.getMatchingObjectTypes(ClassObjectTypeConf.java:171)<br>
&gt;        at org.drools.reteoo.ClassObjectTypeConf.getObjectTypeNodes(ClassObjectTypeConf.java:163)<br>
&gt;        at org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:143)<br>
&gt;        at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:1046)<br>
&gt;        at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:1001)<br>
&gt;        at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:788)<br>
&gt;        at org.drools.process.command.InsertObjectCommand.execute(InsertObjectCommand.java:22)<br>
&gt;        at org.drools.process.command.InsertObjectCommand.execute(InsertObjectCommand.java:7)<br>
&gt;        at org.drools.runtime.impl.BatchExecutionImpl.execute(BatchExecutionImpl.java:23)<br>
&gt;        at org.drools.runtime.impl.BatchExecutionImpl.execute(BatchExecutionImpl.java:9)<br>
&gt;        at org.drools.impl.StatelessKnowledgeSessionImpl.execute(StatelessKnowledgeSessionImpl.java:225)<br>
&gt;        at org.fornax.cartridges.sculptor.framework.drools.DroolsAdvice.applyCompanyPolicy(DroolsAdvice.java:150)<br>
&gt;<br>
&gt; We are using AspectJ advice for starting rule evaluation for every service call. Hope we are doing everything right in code. Full source code of advice can be found at:<br>
&gt; <a href="http://fisheye3.atlassian.com/browse/fornax/trunk/cartridges/sculptor/fornax-cartridges-sculptor-framework/src/main/java/org/fornax/cartridges/sculptor/framework/drools/DroolsAdvice.java?r=6407" target="_blank">http://fisheye3.atlassian.com/browse/fornax/trunk/cartridges/sculptor/fornax-cartridges-sculptor-framework/src/main/java/org/fornax/cartridges/sculptor/framework/drools/DroolsAdvice.java?r=6407</a><br>

&gt;<br>
&gt; Regards<br>
&gt;<br>
&gt; Pavel<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is<br>
&gt; intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to<br>
&gt; read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message<br>
&gt; in error, please notify the sender immediately and delete all copies of this message.<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>