<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi Wolfgang,<br>Thank you very much for quick response!<br><br>I tried your suggestion and still getting the following error:<br><br><h3>Unable to build expression for 'consequence': Failed to compile: 1
compilation error(s): - (1,29) unable to resolve method using
strict-mode: java.lang.Object.getSomeMethod() '
System.out.println($map.get("x").getSomeMethod());
' : [Rule name='TEST']
</h3>At least now I have only 1 compilation error comparing to the previous variant.<br><br>modified rule:<br><font style="" face="Courier New"><br></font><font style="" face="Courier New">rule "TEST"</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">&nbsp;&nbsp;&nbsp; dialect "mvel"</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">&nbsp;&nbsp;&nbsp; when</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $map : Map()</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">&nbsp;&nbsp;&nbsp; then</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println($map.get("x").getSomeMethod());</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">end</font><br><br>I believe that problem is related to strict-mode that somehow enforced on Linux but not on Windows.<br>I tried to remove the strict mode using the the following approach but it seems don't have any effect.<br>We have web application with many drools rules and it's working on Windows but when we deployed the same application to   Linux we are getting failed compile errors ;) <br><br><font style="" face="Courier New">KnowledgeBuilderConfiguration config = KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration();&nbsp;&nbsp;&nbsp;&nbsp; </font><font style="" face="Courier New"><br></font><font style="" face="Courier New">config.setProperty("drools.dialect.mvel.strict", "false");</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(config);</font><br><br>Please advise me.<br><br>By the way I'm using drools 5.0.1<br><br><br><hr id="stopSpelling">Date: Fri, 2 Oct 2009 18:30:25 +0200<br>From: wolfgang.laun@gmail.com<br>To: rules-users@lists.jboss.org<br>Subject: Re: [rules-users] unable to resolve method using strict-mode<br><br>2009/10/2 Vladimir Perlov <span dir="ltr">&lt;<a href="mailto:vladperl@hotmail.com">vladperl@hotmail.com</a>&gt;</span><br><div class="ecxgmail_quote"><blockquote class="ecxgmail_quote" style="padding-left: 1ex;">




<div>
<br><br>Here is the rule that failed to compile on Linux:<br><br>rule "TEST"<br>&nbsp;&nbsp;&nbsp; dialect "mvel"<a title="Send (Ctrl+Enter)">
    <span>Send</span></a><br>&nbsp;&nbsp;&nbsp; when<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map : Map()<br></div></blockquote><div><br>$map : Map()<br><br>or omit '$' in the consequence.<br>-W<br>&nbsp;</div><blockquote class="ecxgmail_quote" style="padding-left: 1ex;">
<div>&nbsp;&nbsp;&nbsp; then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println($map.get("x").getSomeMethod());<br>end<br><br></div></blockquote></div><br>                                               <br /><hr />Lauren found her dream laptop. <a href='http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290' target='_new'>Find the PC that’s right for you.</a></body>
</html>