[
https://jira.jboss.org/browse/JBRULES-2574?page=com.atlassian.jira.plugin...
]
Edson Tirelli commented on JBRULES-2574:
----------------------------------------
I am looking into this now, but running against trunk I am getting an exception way before
the one reported:
Caused by: java.lang.UnsupportedOperationException: LeftTupleSinkUpdateAdapter onlys
supports assertLeftTuple method calls
at
org.drools.reteoo.EvalConditionNode$LeftTupleSinkUpdateAdapter.modifyLeftTuple(EvalConditionNode.java:462)
at
org.drools.reteoo.SingleLeftTupleSinkAdapter.propagateModifyChildLeftTuple(SingleLeftTupleSinkAdapter.java:223)
at org.drools.reteoo.AccumulateNode.evaluateResultConstraints(AccumulateNode.java:637)
at org.drools.reteoo.AccumulateNode.assertObject(AccumulateNode.java:269)
at
org.drools.reteoo.CompositeObjectSinkAdapter.doPropagateAssertObject(CompositeObjectSinkAdapter.java:434)
at
org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:362)
at
org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:344)
at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:190)
at org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:147)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:1174)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:1123)
at org.drools.base.DefaultKnowledgeHelper.insert(DefaultKnowledgeHelper.java:128)
at org.drools.base.DefaultKnowledgeHelper.insert(DefaultKnowledgeHelper.java:122)
at
n3_project.helpers6.Rule_rpo_rules_small_n3_1_0.defaultConsequence(Rule_rpo_rules_small_n3_1_0.java:12)
at
n3_project.helpers6.Rule_rpo_rules_small_n3_1_0DefaultConsequenceInvoker.evaluate(Rule_rpo_rules_small_n3_1_0DefaultConsequenceInvoker.java:39)
at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:917)
... 5 more
Investigating...
ArrayIndexOutOfBoundsException in ReteooRuleBase.addPackage() in
5.1.0.M2
-------------------------------------------------------------------------
Key: JBRULES-2574
URL:
https://jira.jboss.org/browse/JBRULES-2574
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 5.1.0.M2
Environment: Linux jmv-desktop 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11
08:03:28 UTC 2010 x86_64 GNU/Linux
java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Reporter: Jean-Marc Vanel
Assignee: Mark Proctor
It seems related to having a not too small Working Memory (622 objects), and then
compiling and adding several not too small rules packages. It runs fine on 5.1.0.M1 and
before, but crashes 5.1.0.M2 and on today's 5.1.0.SNAPSHOT.
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 128
at
org.drools.core.util.LeftTupleIndexHashTable$FieldIndexHashTableFullIterator.next(LeftTupleIndexHashTable.java:153)
at org.drools.reteoo.NotNode.updateSink(NotNode.java:471)
at org.drools.reteoo.RuleTerminalNode.attach(RuleTerminalNode.java:395)
at org.drools.reteoo.builder.ReteooRuleBuilder.addSubRule(ReteooRuleBuilder.java:177)
at org.drools.reteoo.builder.ReteooRuleBuilder.addRule(ReteooRuleBuilder.java:128)
at org.drools.reteoo.ReteooBuilder.addRule(ReteooBuilder.java:117)
at org.drools.reteoo.ReteooRuleBase.addRule(ReteooRuleBase.java:409)
at org.drools.common.AbstractRuleBase.addRule(AbstractRuleBase.java:638)
at org.drools.common.AbstractRuleBase.addPackages(AbstractRuleBase.java:520)
at org.drools.reteoo.ReteooRuleBase.addPackage(ReteooRuleBase.java:435)
at DroolsRunExportedProjectOldAPI.loadSource(DroolsRunExportedProjectOldAPI.java:124)
at DroolsRunExportedProjectOldAPI.main(DroolsRunExportedProjectOldAPI.java:79)
--
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