[rules-users] Exception: Conversion to long not supported for type: class org.drools.examples.BilboAndTheDwarfs$DwarfShadowProxy
Edson Tirelli
tirelli at post.com
Fri Jan 18 06:13:23 EST 2008
Oliver,
In you Bilbo pattern you wrote:
pos > $Ori,
"pos" is an int attribute, while "$Ori" is bound to a Dwarf object.
It is not possible to convert one type into the other to make the
comparison.
[]s
Edson
2008/1/18, gnumpf2006-drools at yahoo.de <gnumpf2006-drools at yahoo.de>:
>
> Hi Mailinglist,
>
> as discussed with tirelli in irc chat yesterday, I am sending my code:
>
> I modified the golfer example with an other riddle. I wrote all given
> rules and when I run the code I get an
>
> Exception in thread "main" org.drools.RuntimeDroolsException:
> Conversion to long not supported for type: class
> org.drools.examples.BilboAndTheDwarfs$DwarfShadowProxy
> at org.drools.spi.PatternExtractor.getLongValue(PatternExtractor.java
> :125)
> at
> org.drools.rule.VariableRestriction$LongVariableContextEntry.updateFromTuple
> (VariableRestriction.java:260)
> at org.drools.common.DefaultBetaConstraints.updateFromTuple(
> DefaultBetaConstraints.java:139)
> [...]
>
> I put my code in a tgz file which contains the following files:
>
> BilboAndTheDwarfs.java --> my java class (based on golfer example)
> BilboAndTheDwarfs.drl -> my rules
> outputWithException.txt -> my output on the console
> remarks.txt -> some remarks to the output
> riddle.txt -> the riddle (automaticly translated)
> solution.txt -> the solution of the riddle
>
> I hope you can help me. Thank you in advance
>
> Oliver (aka Hightower, gnumpf2006)
>
>
>
> __________________________________ Ihr erstes Baby? Holen Sie
> sich Tipps von anderen Eltern. www.yahoo.de/clever
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
--
Edson Tirelli
JBoss Drools Core Development
Office: +55 11 3529-6000
Mobile: +55 11 9287-5646
JBoss, a division of Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080118/0f3a4f43/attachment.html
More information about the rules-users
mailing list