[rules-users] Exception: Conversion to long not supported for type: class org.drools.examples.BilboAndTheDwarfs$DwarfShadowProxy
gnumpf2006-drools at yahoo.de
gnumpf2006-drools at yahoo.de
Fri Jan 18 05:14:31 EST 2008
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drools-problem.tgz
Type: application/x-gzip
Size: 3288 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20080118/9d893b24/attachment.tgz
More information about the rules-users
mailing list