List Info

Thread: Newbie question / NoSuchMethodError error




Newbie question / NoSuchMethodError error
country flaguser name
France
2008-05-07 08:08:13
Greetings, 

I'm new to Drools and I've written a decision table based
rule using excel.
The rule validates ok and I've deployed my package fine.

I've written a piece of code to test my rules, I want to set
the calculatedRate to 125 when I get selected field equal to
"0 - 50" : 

...
StatelessSession statelessSession =
rb.newStatelessSession(); Data data=new Data();
data.setSelected("0 - 50");
statelessSession.execute(data); // set private Integer field
...

When I run the code I get a exeption : 

java.lang.NoSuchMethodError:
java.lang.Integer.valueOf(I)Ljava/lang/Integer;

I don't understand why Drools tries to convert to Integer
something which is already Integer !!!!

-----------
Here is the rules code.


rule "setCalculateRate_11"
	
	salience 65525
	when
		Data(selected == "0 - 50")
	then
		object.setCalculatedRate(125);
end


Does anybody has an idea ??

Regards,
Carl.


_______________________________________________
rules-users mailing list
rules-userslists.jboss.org

https://lists.jboss.org/mailman/listinfo/rules-users

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )