Hi,
We're in the process of moving our web apps from Java 5 to Java 7 and
Drools 3 to Drools 5.4.0. Our rule base is compiled and serialized to
the db by one app, and read from the db and fired by another.
Everything went fine during testing, but when we tried to switch to
production we got this when firing the rule base:
Caused by: java.lang.LinkageError:
ShoppingCart/Rule_CSMEGBUL_b996907c25e3495a94b6b041c1c08c50
at
ShoppingCart.Rule_CSMEGBUL_b996907c25e3495a94b6b041c1c08c50Eval0InvokerGenerated.evaluate(Unknown
Source)
at
ShoppingCart.Rule_CSMEGBUL_b996907c25e3495a94b6b041c1c08c50Eval0Invoker.evaluate(Unknown
Source)
at org.drools.rule.EvalCondition.isAllowed(EvalCondition.java:114)
at
org.drools.reteoo.EvalConditionNode.assertLeftTuple(EvalConditionNode.java:178)
[snip]
Does anyone have any ideas as to what might cause this?
Here is the rule in question if that helps:
rule "CSMEGBUL"
salience -1
agenda-group "SubtotalDependent"
when
delegate: PromotionRuleDelegate ( )
cart: ShoppingCart ( )
eval (
delegate.checkDateRange("1181718000000","1497337200000") )
eval ( delegate.checkEnabled("false") )
eval ( delegate.cartHasPromoCode(cart, "CSMEGBUL") )
eval ( delegate.checkUsage(1,100027) )
then
delegate.applyOrderDiscountAmount(cart, 100027, "10.0");
delegate.promoCodeApplied(cart, "CSMEGBUL");
end
--
_____________
David Minor