[rules-users] Exception with 4.0.0.MR2
Mark Proctor
mproctor at codehaus.org
Fri May 18 09:07:25 EDT 2007
I don't initially see anything wrong with this, assuming you are obeying
pojo naming for your objects. If it continues open a jira with a self
contained example.
Mark
José Miguel Sánchez wrote:
> Hi,
>
> I get the next exception with 4.0.0.MR2 that I didn't get with
> previous versions with the same DRL:
>
> java.lang.IllegalArgumentException: The rule called regla1_11 is
> not valid. Check for compile errors reported.
> at
> org.drools.common.AbstractRuleBase.addRule(AbstractRuleBase.java:363)
> at org.drools.reteoo.ReteooRuleBase.addRule(ReteooRuleBase.java:263)
> at
> org.drools.common.AbstractRuleBase.addPackage(AbstractRuleBase.java:293)
> at evendor.mebone.rules.RulesLoader.<init>(RulesLoader.java:217)
> at
> evendor.mebone.rules.RulesSet.createAgendaAndLoadClass(RulesSet.java:207)
> at evendor.mebone.rules.RulesSet.includeAssert(RulesSet.java:291)
> at evendor.mebone.core.Map.existsReadCursors(Map.java:3589)
> at evendor.mebone.core.Map.existsReadCursors(Map.java:3487)
> at evendor.mebone.core.Map.run(Map.java:1545)
>
> The DRL file is the result of compiling a decision table in XLS format
> and it has the next aspect:
>
> package demo1;
> #generated from Decision Table
> import rules.*;
> import java.util.Date;
> import java.text.SimpleDateFormat;
> import java.sql.Timestamp;
> #From row number: 11
> rule "regla1_11"
> salience 65525
> when
> a: _demo1_RuleEnvelope(s_IMPORTE >= 10000)
> then
> a.sett_NUEVO_IMPORTE(10500);
> a.sett_COPIA_NUM_TARJETA("1234567890");
> end
>
> ¿What is wrong in this DRL?
>
> Thanks in advance,
>
> José Miguel Sánchez
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
More information about the rules-users
mailing list