Salvijus Laucius

com.blazesoft.engines.rules.WjHCbPR cannot be cast to java.lang.Number

Discussion created by Salvijus Laucius on Apr 12, 2010
Latest reply on Apr 23, 2010 by Jostein Ulseth

Hello,

 

I'm getting this exception when rule engine executes following rule condition :

 

if goodsItems.count > 1 then ....

 

Where : goodsItems are defined as ruleset parameter (goodsItems : array of GoodsItem).

 

Function calls ruleset and passes to it Java ArrayList<GoodsItem> casted into an  array of GoodsItem.

If I passe the size of ArrayList<GoodsItem> into ruleset, and use it in rule condition, then everything is OK...

The strange thing is that I hadn't had this problem a couple of days ago.

 

I'm using BA 6.7, Java 1.6.0, JBoss 5.1.0

 

Any ideas ?

Outcomes