<br> Can you please provide a test case? I will look into it asap.<br><br> []s<br> Edson<br><br><div><span class="gmail_quote">2007/8/31, hypnosat7 <<a href="mailto:ablarbi@yahoo.fr">ablarbi@yahoo.fr</a>>:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Hi,<br><br> I have a variable declaration as bellow :<br><br>>list:Variable() from
ruleApp.getVariable("variableName")<br><br>and this is the result :<br>Exception in thread "AWT-EventQueue-0" org.mvel.CompileException: cannot<br>invoke method<br> at<br>org.mvel.optimizers.impl.refl.MethodAccessor.getValue
(MethodAccessor.java:54)<br> at<br>org.mvel.optimizers.impl.refl.VariableAccessor.getValue(VariableAccessor.java:39)<br> at<br>org.mvel.ast.VariableDeepPropertyNode.getReducedValueAccelerated(VariableDeepPropertyNode.java
:26)<br> at<br>org.mvel.ast.PropertyASTNode.getReducedValueAccelerated(PropertyASTNode.java:19)<br> at org.mvel.MVELRuntime.execute(MVELRuntime.java:88)<br> at org.mvel.CompiledExpression.getValue(CompiledExpression.java
:99)<br> at org.mvel.MVEL.executeExpression(MVEL.java:236)<br> at<br>org.drools.base.dataproviders.MVELDataProvider.getResults(MVELDataProvider.java:45)<br> at org.drools.reteoo.FromNode.assertTuple(FromNode.java
:61)<br> at<br>org.drools.reteoo.CompositeTupleSinkAdapter.createAndPropagateAssertTuple(CompositeTupleSinkAdapter.java:73)<br> at<br>org.drools.reteoo.LeftInputAdapterNode.assertObject(LeftInputAdapterNode.java
:131)<br> at<br>org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject(SingleObjectSinkAdapter.java:20)<br> at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:160)<br> at org.drools.reteoo.Rete.assertObject
(Rete.java:176)<br> at org.drools.reteoo.ReteooRuleBase.assertObject(ReteooRuleBase.java:196)<br> at<br>org.drools.reteoo.ReteooWorkingMemory$WorkingMemoryReteAssertAction.execute(ReteooWorkingMemory.java:164)
<br> at<br>org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:1260)<br> at<br>org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:864)<br> at
<br>org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:826)<br> at<br>org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:627)<br> at<br>mcmipih.rules.rules.integration.drools.ExecutionContext.executeRuleFlow
(ExecutionContext.java:54)<br> at<br>mcmipih.rules.demo.service.DemoRuleService.validerRumList(DemoRuleService.java:50)<br> at<br>mcmipih.rules.demo.service.DemoRuleService$$FastClassByCGLIB$$beeddc5a.invoke
(<generated>)<br> at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)<br> at<br>org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:693)
<br> at<br>org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)<br> at<br>org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java
:107)<br> at<br>org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)<br> at<br>org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept
(Cglib2AopProxy.java:628)<br> at<br>mcmipih.rules.demo.service.DemoRuleService$$EnhancerByCGLIB$$961244c9.validerRumList(<generated>)<br> at<br>mcmipih.rules.demo.controller.ValidationAppController$ActionValiderSelectionLst.actionPerformed
(ValidationAppController.java:185)<br> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)<br> at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)<br> at javax.swing.DefaultButtonModel.fireActionPerformed
(Unknown Source)<br> at javax.swing.DefaultButtonModel.setPressed(Unknown Source)<br> at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)<br> at java.awt.Component.processMouseEvent
(Unknown Source)<br> at javax.swing.JComponent.processMouseEvent(Unknown Source)<br> at java.awt.Component.processEvent(Unknown Source)<br> at java.awt.Container.processEvent(Unknown Source)<br> at
java.awt.Component.dispatchEventImpl(Unknown Source)<br> at java.awt.Container.dispatchEventImpl(Unknown Source)<br> at java.awt.Component.dispatchEvent(Unknown Source)<br> at java.awt.LightweightDispatcher.retargetMouseEvent
(Unknown Source)<br> at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)<br> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)<br> at java.awt.Container.dispatchEventImpl
(Unknown Source)<br> at java.awt.Window.dispatchEventImpl(Unknown Source)<br> at java.awt.Component.dispatchEvent(Unknown Source)<br> at java.awt.EventQueue.dispatchEvent(Unknown Source)<br> at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)<br> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)<br> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
<br> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)<br> at java.awt.EventDispatchThread.run(Unknown Source)<br>Caused by: java.lang.NullPointerException<br> at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)<br> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br> at java.lang.reflect.Method.invoke(Unknown Source)
<br> at<br>org.mvel.optimizers.impl.refl.MethodAccessor.getValue(MethodAccessor.java:46)<br> ... 54 more<br>--<br>View this message in context: <a href="http://www.nabble.com/mvel-bug----tf4360199.html#a12426549">
http://www.nabble.com/mvel-bug----tf4360199.html#a12426549</a><br>Sent from the drools - user mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br><br>_______________________________________________<br>rules-users mailing list
<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div>
<br><br clear="all"><br>-- <br> Edson Tirelli<br> Software Engineer - JBoss Rules Core Developer<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">
www.jboss.com</a>