[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1173) java.lang.ArrayIndexOutOfBoundsException: 2 in file named "TupleIndexHashTable.java" in toArray() Method. I have fix and works fine.

Mark Proctor (JIRA) jira-events at lists.jboss.org
Thu Sep 6 21:39:11 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBRULES-1173?page=comments#action_12375809 ] 
            
Mark Proctor commented on JBRULES-1173:
---------------------------------------

My only problem with this fix is that in theory this.factSize is the total number of available facts, and thus entry.getNext() should never be able to find any more than that. If we are also doing this index<result.length check this will be fixing the symptom not the cause.

> java.lang.ArrayIndexOutOfBoundsException: 2 in file named "TupleIndexHashTable.java" in toArray() Method. I have fix and works fine.
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBRULES-1173
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-1173
>             Project: JBoss Rules
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Reteoo
>    Affects Versions:  4.0.0.MR3
>         Environment: windows XP
>            Reporter: Nageshwar Kunichetty
>         Assigned To: Mark Proctor
>             Fix For: 4.0.2
>
>
> Sometimes while asserting specific facts I get the following exception in drools-core-4.0.0 :
> > java.lang.ArrayIndexOutOfBoundsException: 26
> >         at org.drools.util.TupleIndexHashTable.toArray(TupleIndexHashTable.java:178)
> >         at org.drools.reteoo.CollectNode.assertObject(CollectNode.java:212)
> >         at org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:317)
> >         at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:183)
> >         at org.drools.reteoo.Rete.assertObject(Rete.java:121)
> >         at org.drools.reteoo.ReteooRuleBase.assertObject(ReteooRuleBase.java:201)

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

        



More information about the jboss-jira mailing list