[jboss-jira] [JBoss JIRA] Created: (JBRULES-2762) ArrayIndexOutOfBoundsException in org.drools.core.util.AbstractHashTable

Lubos Pechac (JIRA) jira-events at lists.jboss.org
Thu Oct 28 14:45:54 EDT 2010


ArrayIndexOutOfBoundsException in org.drools.core.util.AbstractHashTable
------------------------------------------------------------------------

                 Key: JBRULES-2762
                 URL: https://jira.jboss.org/browse/JBRULES-2762
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: drools-core  (expert)
    Affects Versions: 5.1.1.FINAL
         Environment: JBoss 5.1 on JDK6, 64bit Windows Server
            Reporter: Lubos Pechac
            Assignee: Mark Proctor


Exception occures at: 
org.drools.core.util.AbstractHashTable$HashTableIterator.next(AbstractHashTable.java:317) 
in Drools 5.1.1 when calling insert() on just created StatefulKnowledgeSession. 

I found similar issues reported for LeftTupleIndexHashTable, it had to do with initializing row to -1 instead of 0 or something similar. I see that fixed in Left/RightTupleIndexHashTable but it seems to me like it is still present in AbstractHashTable. 

The bug occures randomly (inserting the same data), usualy under load. The index is either -1 or too high. I create multiple sessions in threads from one KnowledgeBase, sessions are not shared. The sessions are relatively short living, about 100ms max.

Stack trace I got is: 
java.lang.ArrayIndexOutOfBoundsException: 16 
                at org.drools.core.util.AbstractHashTable$HashTableIterator.next(AbstractHashTable.java:317) 
                at org.drools.reteoo.EntryPointNode.updateSink(EntryPointNode.java:323) 
                at org.drools.reteoo.ObjectTypeNode.attach(ObjectTypeNode.java:303) 
                at org.drools.reteoo.builder.PatternBuilder.attachObjectTypeNode(PatternBuilder.java:257) 
                at org.drools.reteoo.ClassObjectTypeConf.<init>(ClassObjectTypeConf.java:92) 
                at org.drools.common.ObjectTypeConfigurationRegistry.getObjectTypeConf(ObjectTypeConfigurationRegistry.java:68) 
                at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:981) 
                at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:917) 
                at org.drools.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:251) 


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list