LeftTupleSinkUpdateAdapter is only used when you add/remote rules, it
seems strange it would be used when you call update. Can you make a
minimal and isolated test case for this issue?
Thanks
Mark
On 12/05/2010 21:25, malkhafaji wrote:
Hello,
Did anyone have an issue with the latest M2 files? I just decided to try
them out and upon trying to fire my first set of rules (which worked
perfectly with M1 from 02/10/10), I get the following exceptions on this
line:
ksession.update(factHandle, myObject);
Any ideas?
java.lang.UnsupportedOperationException: LeftTupleSinkUpdateAdapter onlys
supports assertLeftTuple method calls
INFO|12572/0|10-05-12 15:20:50| at
org.drools.reteoo.EvalConditionNode$LeftTupleSinkUpdateAdapter.retractLeftTuple(EvalConditionNode.java:460)
INFO|12572/0|10-05-12 15:20:50| at
org.drools.reteoo.ModifyPreviousTuples.retractTuples(ModifyPreviousTuples.java:101)
INFO|12572/0|10-05-12 15:20:50| at
org.drools.reteoo.EntryPointNode.modifyObject(EntryPointNode.java:177)
INFO|12572/0|10-05-12 15:20:50| at
org.drools.common.AbstractWorkingMemory.update(AbstractWorkingMemory.java:1389)
INFO|12572/0|10-05-12 15:20:50| at
org.drools.common.AbstractWorkingMemory.update(AbstractWorkingMemory.java:1285)
INFO|12572/0|10-05-12 15:20:50| at
org.drools.impl.StatefulKnowledgeSessionImpl.update(StatefulKnowledgeSessionImpl.java:248)
INFO|12572/0|10-05-12 15:20:50| at
com.medcpu.mpu.pp.engine.Drools.updateWorkingMemory(Drools.java:524)