Uploaded image for project: 'JBoss Enterprise BRMS Platform 5'
  1. JBoss Enterprise BRMS Platform 5
  2. BRMS-533

NoClassDefFoundError when ASM optimizer kicks in MVEL consequence

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 5.0.2, 5.1.0 GA
    • Fix Version/s: 5.1.0.PostGA
    • Component/s: BRE
    • Labels:
    • Steps to Reproduce:
      Hide

      Based in JBRULES-2253

      • Run Guvnor 5.0.x
      • Import the attached repo (unzip it first).
      • browse to KnowledgeBases/org/acme/insurance/pricing/
      • press "build package"
      • shut it down, restart (flushes caches etc...)
        Then:
      • browse to KnowledgeBases/org/acme/insurance/pricing/Test Scenarios
      • open PolicyQuotePackageTest
      • run it:
      Show
      Based in JBRULES-2253 Run Guvnor 5.0.x Import the attached repo (unzip it first). browse to KnowledgeBases/org/acme/insurance/pricing/ press "build package" shut it down, restart (flushes caches etc...) Then: browse to KnowledgeBases/org/acme/insurance/pricing/Test Scenarios open PolicyQuotePackageTest run it:
    • Release Notes Text:
      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).

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tsurdilovic Tihomir Surdilovic
                  Reporter:
                  alessandrolt Alessandro Lazarotti
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: