drools 3.0 or 4.0? I'm guessing 3.0, this is a known error in 3.0 and is
fixed in 4.0 - we won't be backporting the fix.
Yuri de Wit wrote:
I got a ClassCastException once I ran my app with the
WorkingMemoryFileLogger attached to it. After a bit of debugging the
CCE is being thrown because for an unknown reason the column of a
Declaration is wrong: it should have been 0 like all the other
declarations on the same Fact, but it is 0 instead. It seems that
column is wrongly set when building the rule package, even before
What I dont understand is why this is happening and why I dont see the
problem when I remove the WorkingMemoryFileLogger from the picture.
The rules goes a bit like this:
Fact1(var1: a, var2: b, var3: c)
c : (
Setting( x==1, y==2, z==3)
Setting( x==1, y==2, z==ANY)
Setting( x==1, y==ANY, z==ANY)
Setting( x==ANY, y==ANY, z==ANY)
not Fact2( a == var1, b== var2, c==var3)
The declarations for a and b, for instance are referring to the right
column, but c doesnt.
BTW: Does any one know of a better pattern for implementing cascading
settings? The biggest problem I am facing is that I need to replicate
the long list or OR Settings for each rule that needs to check for
them (the actual settings depend on fact properties).
Here is the exception:
rules-users mailing list