Sometimes use wrong type castings for BigDecimal: I have observed that for typecasting in groovy, we have used the wrong coding pattern like (BigDecimal) 0 It should be like 0 as BigDecimal Note that this does not apply to decimal because in case of decimal, the default type is always BigDecimal in Groovy. Thanks: Pritam Kute for spotting the issue in OFBIZ-11843