[rules-users] Rule compilation error

Ravi Krishnamurthy ravik at savvion.com
Thu Aug 28 20:02:09 EDT 2008


Removed the update(m) from the xsl. Then the command line worked fine.

Still not able to understand why it worked inside the eclipse and not 
outside.

regards,
Ravi

Ravi wrote:
> Hello:
> I had generated the decisiontable using the eclipse plugin for drools 
> 4.x. using the eclipse the DecisionsampleTest works fine but on 
> running it from the command line gets the following error:
> /C:\FirstDroolPrj\bin>java com.sample.DecisionTableTest
> org.drools.rule.InvalidRulePackage: Rule Compilation error : [Rule 
> name=HelloWor
> ld_11, agendaGroup=MAIN, salience=0, no-loop=false]
>         com/sample/Rule_HelloWorld_11_0.java (8:411) : The method 
> update(Decisio
> nTableTest.Message) is undefined for the type Rule_HelloWorld_11_0
>         com/sample/Rule_HelloWorld_11_0.java (9:453) : The method 
> update(Decisio
> nTableTest.Message) is undefined for the type Rule_HelloWorld_11_0
>
>         at org.drools.rule.Package.checkValidity(Package.java:419)
>         at 
> org.drools.common.AbstractRuleBase.addPackage(AbstractRuleBase.java:2
> 92)
>         at 
> com.sample.DecisionTableTest.readDecisionTable(DecisionTableTest.java
> :62)
>         at com.sample.DecisionTableTest.main(DecisionTableTest.java:35)
> /
> Have attached the .xsl and the DecisionTableTest for the reference.
>
> Thanks for your help and time,
>
> Regards,
> Ravi
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080828/d3b5d345/attachment.html 


More information about the rules-users mailing list