[jboss-jira] [JBoss JIRA] Resolved: (JBRULES-1193) Getting org.mvel.PropertyAccessException in rule flow actions when using class names without package
Kris Verlaenen (JIRA)
jira-events at lists.jboss.org
Sun Sep 16 10:27:11 EDT 2007
[ http://jira.jboss.com/jira/browse/JBRULES-1193?page=all ]
Kris Verlaenen resolved JBRULES-1193.
-------------------------------------
Resolution: Done
Ruleflow actions now support imports in the following form:
- direct imports of classes, like import java.util.List
- package imports, like import java.util.*
> Getting org.mvel.PropertyAccessException in rule flow actions when using class names without package
> ----------------------------------------------------------------------------------------------------
>
> Key: JBRULES-1193
> URL: http://jira.jboss.com/jira/browse/JBRULES-1193
> Project: JBoss Rules
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Rule Flow
> Affects Versions: 4.0.1
> Environment: Wintel XP SP2 , IBM Websphere 6.0
> Reporter: Sergey Manukyan
> Assigned To: Kris Verlaenen
> Fix For: 4.0.2
>
> Attachments: action.rf, SystemOutHelper.java
>
>
> 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
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list