Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Done
-
5.0.2, 5.1.0 GA
-
-
Done
Description
A MVEL failure causes Drools exceptions in some circumstances:
Caused by: java.lang.NoClassDefFoundError: org/acme/insurance/Policy
at ASMAccessorImpl_62408281250565694450.setValue(Unknown Source)
at org.mvel2.optimizers.dynamic.DynamicSetAccessor.setValue(DynamicSetAccessor.java:74)
at org.mvel2.compiler.CompiledAccExpression.setValue(CompiledAccExpression.java:47)
at org.mvel2.MVEL.executeSetExpression(MVEL.java:962)
at org.mvel2.ast.WithNode$ParmValuePair.eval(WithNode.java:242)
at org.mvel2.ast.WithNode.getReducedValueAccelerated(WithNode.java:67)
at org.mvel2.ast.InterceptorWrapper.getReducedValueAccelerated(InterceptorWrapper.java:38)
at org.mvel2.MVELRuntime.execute(MVELRuntime.java:85)
at org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:104)
at org.mvel2.MVEL.executeExpression(MVEL.java:995)
at org.drools.base.mvel.MVELConsequence.evaluate(MVELConsequence.java:91)
at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:966)
This issue was fixed in MVEL: http://jira.codehaus.org/browse/MVEL-213
Is necessary update the mvel library to fix this issue in Drools.
Although the case related https://issues.jboss.org/browse/JBRULES-2253 mentions that the failure occurs in Sun JVM, I realized tests and the same occurs with IBM JVM. A MVEL updates, fixes the issue it to both. (I tested changing mvel 2.0.10 to 2.0.19).
Attachments
Issue Links
- cloned from
-
BRMS-535 Fix for BRMS-532 and BRMS-533
-
- Closed
-
- is related to
-
JBRULES-2253 ClassNotFound when ASM optimizer kicks in in MVEL consequence
-
- Closed
-