<br> Godmar,<br><br> I copied and pasted your rule and run a simple test using the same version of jars you mentioned bellow, but I can't reproduce the problem you are having. If it is still a problem for you, can you zip a sample test showing the problem and send us?<br>
<br> Thanks,<br> Edson<br><br><div><span class="gmail_quote">2008/2/13, Godmar Back <<a href="mailto:godmar@gmail.com">godmar@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I've recently upgraded to Drools 4.0.4 with mvel14-1.2.21.jar, and I'm<br>having severe issues with its parser.<br>For instance, this simple .drl file:<br><br>--<br>package test;<br><br>rule "Rule #1"<br>
dialect "mvel"<br>when<br>then<br> /* a single-line comment */<br> System.out.println("hello world");<br>end<br>--<br><br>results in:<br>org.mvel.PropertyAccessException: unable to resolve property: ;<br>
at org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:285)<br> at org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeAccessor(ReflectiveAccessorOptimizer.java:107)<br>
at org.mvel.ASTNode.getReducedValueAccelerated(ASTNode.java:185)<br> at org.mvel.MVELRuntime.execute(MVELRuntime.java:88)<br> at org.mvel.CompiledExpression.getValue(CompiledExpression.java:107)<br> at org.mvel.MVEL.executeExpression(MVEL.java:223)<br>
at org.drools.base.mvel.MVELConsequence.evaluate(MVELConsequence.java:47)<br> at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:550)<br> at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:514)<br>
at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:471)<br> at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:433)<br><br>--<br>Switching to dialect "java," or removing the /* single-line comment<br>
*/, helps. So does replacing the comment with a // style comment.<br>There are many more weirdnesses I'm encountering (I've filed a number<br>of bugs already), but I'm wondering if something else isn't amiss<br>
here. I also tried mvel16-1.2.22.jar, same effect. On the other hand,<br>running just the RHS in mvelsh works just fine.<br><br>In this context, I'd like to voice the wish that Drools include a<br>command-line driver that can load and execute .drl files for testing.<br>
<br> - Godmar<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> JBoss Drools Core Development<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>