Hi,
When executing my rules for an object, on some objects I get a
ClassCastException:
java.lang.ClassCastException: org.drools.reteoo.CollectNode$CollectMemory
cannot be cast to org.drools.core.util.ObjectHashMap
at
org.drools.reteoo.RightInputAdapterNode.assertLeftTuple(RightInputAdapterNode.ja
It gets more strange!
I had already tried your first suggestion and that didn't fix it.
However, I have three other rules that do essentially the same thing but on
different object classes - the object classes are very similar however.
When I removed the insert statement from the first rule (th
Odd,
Looks like it is a problem in the internal of mvel, there's two things I'd
suggest you could try:
Firstly try change it to be something similar to:
for (int i=0; imailto:rules-users-boun...@lists.jboss.org] On Behalf Of Ryan Fitzgerald
Sent: 19 March 2010 10:40
To: rules-users@lists.jboss.o
**Apologies if this post starts a new thread**
Hi Thomas,
I get a series of com.sample.UtranCell strings printed expected.
So the array seems to be correctly comprised of UtranCell objects.
I have the following import statement in the drl file:
import com.sample.UtranCell;
Weird!
/Ryan.
F
What output do you get if you do
System.out.println(ucells[i].getClass().getName())?
My guess is that you either don't actually have an array of type UtranCell's or
you haven't imported UtranCell correctly.
Thomas
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jbo
Hi,
I get the following exception when trying to insert an object from within a
rule consequence:
[Error: object is not an instance of declaring class]
The rule is as follows:
rule "Utran Cell Selection Rule"
salience 50
dialect "java"
when
then
UtranCell[] ucel