Uploaded image for project: 'Guvnor'
  1. Guvnor
  2. GUVNOR-1405

java.lang.NoClassDefFoundError using function in DSL Rule

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Feature Request
    • Status: Resolved
    • Critical
    • Resolution: Won't Fix
    • None
    • Previous work, 7.0.0.Beta3
    • None
    • None
    • Medium

    Description

      Encountered following error during unit testing execution of rules :

      [BeforeActivationFired: rule=Address Validation Town required; tuple=[fid:1:1:com.amadeus.mbo.msp.proto.model.AddressImpl@558fec]
      ]
      java.lang.NoClassDefFoundError: Adres/CreateValidationErrorDSL
      at ASMAccessorImpl_34195571209986950480.getValue(Unknown Source)
      at org.mvel.ASTNode.getReducedValueAccelerated(ASTNode.java:174)
      at org.mvel.ExecutableAccessor.getValue(ExecutableAccessor.java:50)
      at ASMAccessorImpl_33632651209986950320.getValue(Unknown Source)
      at org.mvel.ast.VariableDeepPropertyNode.getReducedValueAccelerated(VariableDeepPropertyNode.java:22)
      at org.mvel.ast.PropertyASTNode.getReducedValueAccelerated(PropertyASTNode.java:21)
      at org.mvel.MVELRuntime.execute(MVELRuntime.java:88)
      at org.mvel.CompiledExpression.getValue(CompiledExpression.java:111)
      at org.mvel.MVEL.executeExpression(MVEL.java:235)
      at org.drools.base.mvel.MVELConsequence.evaluate(MVELConsequence.java:47)
      at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:550)
      at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:514)
      at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:471)
      at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:433)
      at com.amadeus.mbo.commons.ruleengine.RuleManager.executeRules(RuleManager.java:158)
      at com.amadeus.mbo.msp.proto.service.CustomerServiceImpl.validateAddress(CustomerServiceImpl.java:444)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy8.validateAddress(Unknown Source)
      at com.amadeus.mbo.msp.proto.service.CustomerServiceImplTest.testValidateAddress(CustomerServiceImplTest.java:1139)

      DSL Rule RHS executes a function that returns an object which is inserted.
      No problems when building & validating the package in BRMS, only when executing the rule.

      Attachments

        1. adresDSL
          0.3 kB
        2. packagesource.txt
          5 kB
        3. Rule source.txt
          0.3 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jurgenvb Jurgen Van Bouchaute (Inactive)
              Archiver:
              samahaja@redhat.com Sagar Mahajan

              Dates

                Created:
                Updated:
                Resolved:
                Archived: