Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-1193

Getting org.mvel.PropertyAccessException in rule flow actions when using class names without package

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.1
    • Fix Version/s: 4.0.2
    • Component/s: drools-core (flow)
    • Labels:
      None
    • Environment:

      Wintel XP SP2 , IBM Websphere 6.0

    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Just prepend full package path to the classname used

      Show
      Just prepend full package path to the classname used

      Description

      In a rule flow's Action element getting org.mvel.PropertyAccessException when running in managed IBM WebSphere 6.0 environment.

      Defined this in Action element -> THE OUTCOME
      --------------------------------------------------------------------------------------------

      CASE #1:

      SystemOutHelper.out.println(""*** ACTION *** No Errors") --> EXCEPTION THROWN org.mvel.PropertyAccessException, even though I have imported before #import com.lear.rules.SystemOutHelper

      CASE #2:

      com.lear.rules.SystemOutHelper.out.println("some text") --> OK!

      Here is stacktrace of exception:
      --------------------------------------------------------------------------------------------
      org.mvel.PropertyAccessException
      unable to resolve property: SystemOutHelper.println("*** ACTION *** No Errors")

      Stack Trace:

      org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:285)
      org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeAccessor(ReflectiveAccessorOptimizer.java:107)
      org.mvel.ASTNode.getReducedValueAccelerated(ASTNode.java:185)
      org.mvel.MVELRuntime.execute(MVELRuntime.java:88)
      org.mvel.CompiledExpression.getValue(CompiledExpression.java:107)
      org.mvel.MVEL.executeExpression(MVEL.java:223)
      org.drools.ruleflow.instance.impl.ActionNodeInstanceImpl.trigger(ActionNodeInstanceImpl.java:65)
      org.drools.ruleflow.instance.impl.RuleFlowSplitInstanceImpl.trigger(RuleFlowSplitInstanceImpl.java:77)
      org.drools.ruleflow.instance.impl.RuleFlowSequenceNodeInstanceImpl.triggerCompleted(RuleFlowSequenceNodeInstanceImpl.java:38)
      org.drools.common.RuleFlowGroupImpl$DeactivateCallback.execute(RuleFlowGroupImpl.java:212)
      org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:1265)
      org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:439)
      org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:397)

      Caused by: org.mvel.PropertyAccessException: unable to resolve property: SystemOutHelper

      org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.getBeanProperty(ReflectiveAccessorOptimizer.java:373)
      org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:254)
      ... 64 more

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                KrisVerlaenen Kris Verlaenen
                Reporter:
                cloadsun cloadsun (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: