maybe ( probably is ) related to JIRA: <a id="key-val" rel="12423874" href="https://jira.jboss.org/browse/JBRULES-2794">JBRULES-2794</a><br><br>/Anatoly<br><br><div class="gmail_quote">On Thu, Oct 28, 2010 at 11:56 AM, Edson Tirelli <span dir="ltr"><<a href="mailto:tirelli@post.com">tirelli@post.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> Lubos,<br>
<br>
Yes, you can always send an e-mail to the list first. In this case,<br>
it looks like a bug... needs to be investigated. So, can you please<br>
open a JIRA with the report and ideally provide a test case so that we<br>
can reproduce the problem and fix it?<br>
<br>
Thanks,<br>
Edson<br>
<br>
2010/10/28 Lubos <<a href="mailto:lpechac@pi-ag.com">lpechac@pi-ag.com</a>>:<br>
<div><div></div><div class="h5">><br>
> Exception occures at:<br>
> org.drools.core.util.AbstractHashTable$HashTableIterator.next(AbstractHashTable.java:317)<br>
> in Drools 5.1.1 when calling insert() on just created<br>
> StatefulKnowledgeSession.<br>
><br>
> I found similar issues reported for LeftTupleIndexHashTable, it had to do<br>
> with initializing row to -1 instead of 0 or something similar. I see that<br>
> fixed in Left/RightTupleIndexHashTable but it seems to me like it is still<br>
> present in AbstractHashTable.<br>
><br>
> The bug occures randomly (inserting the same data), usualy under load. The<br>
> index is either -1 or too high. I create multiple sessions in threads from<br>
> one KnowledgeBase, sessions are not shared.<br>
><br>
> Stack trace I got is:<br>
> java.lang.ArrayIndexOutOfBoundsException: 16<br>
> at<br>
> org.drools.core.util.AbstractHashTable$HashTableIterator.next(AbstractHashTable.java:317)<br>
> at<br>
> org.drools.reteoo.EntryPointNode.updateSink(EntryPointNode.java:323)<br>
> at<br>
> org.drools.reteoo.ObjectTypeNode.attach(ObjectTypeNode.java:303)<br>
> at<br>
> org.drools.reteoo.builder.PatternBuilder.attachObjectTypeNode(PatternBuilder.java:257)<br>
> at<br>
> org.drools.reteoo.ClassObjectTypeConf.<init>(ClassObjectTypeConf.java:92)<br>
> at<br>
> org.drools.common.ObjectTypeConfigurationRegistry.getObjectTypeConf(ObjectTypeConfigurationRegistry.java:68)<br>
> at<br>
> org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:981)<br>
> at<br>
> org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:917)<br>
> at<br>
> org.drools.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:251)<br>
><br>
> I am not sure if this post belongs here, sorry if not.<br>
> Thanks for help/suggestions<br>
> Lubos<br>
> --<br>
> View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/5-1-1-ArrayIndexOutOfBoundsException-in-org-drools-core-util-AbstractHashTable-tp1784932p1784932.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/5-1-1-ArrayIndexOutOfBoundsException-in-org-drools-core-util-AbstractHashTable-tp1784932p1784932.html</a><br>
> Sent from the Drools - User mailing list archive at Nabble.com.<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>
><br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Edson Tirelli<br>
JBoss Drools Core Development<br>
JBoss by Red Hat @ <a href="http://www.jboss.com" target="_blank">www.jboss.com</a><br>
</font><div><div></div><div class="h5"><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>