<br>&nbsp;&nbsp; Drools 4 is tried and tested. Only the error message is not clear for the uninitiated.<br><br>&nbsp;&nbsp; The error message means that the Lexer found the end of the file without finding a close character for a given token. In your case, looking more carefully, a String:<br>
<br><pre><span>settle_selection</span><span>(</span><span>&quot;test&quot;</span><span>,</span><span>20001</span><span>&quot;,&quot;</span><span>W</span><span>&quot;);</span></pre><br>&nbsp;&nbsp;&nbsp; Drools 5 is in Milestone 5 now. Not recommended for production, but stable enough for early adopters.<br>
<br>&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp; Edson<br><br><div class="gmail_quote">2009/2/23 Zevenbergen, Alex <span dir="ltr">&lt;<a href="mailto:azevenbergen@paddypower.com">azevenbergen@paddypower.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">















<div link="blue" vlink="blue" lang="EN-GB">

<div>

<p><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">Thanks for your answer, but I get the same
with 'end'</span></font></p>

<p><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">Is the current release of drools 5 a
stable one? I used 4 because I assumed it would be 'tried and tested'</span></font></p>

<p><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">Thanks,</span></font></p>

<p><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">Alex</span></font></p>

<p><font color="navy" size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<div>

<div style="text-align: center;" align="center"><font size="3" face="Times New Roman"><span style="font-size: 12pt;" lang="EN-US">

<hr align="center" size="2" width="100%">

</span></font></div>

<p><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;" lang="EN-US">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;" lang="EN-US">
<a href="mailto:rules-dev-bounces@lists.jboss.org" target="_blank">rules-dev-bounces@lists.jboss.org</a> [mailto:<a href="mailto:rules-dev-bounces@lists.jboss.org" target="_blank">rules-dev-bounces@lists.jboss.org</a>] <b><span style="font-weight: bold;">On Behalf Of </span></b>Edson Tirelli<br>

<b><span style="font-weight: bold;">Sent:</span></b> 23 February 2009 13:24<br>
<b><span style="font-weight: bold;">To:</span></b> Rules Dev List<br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [rules-dev]
org.drools.rule.InvalidRulePackage: [0,-1]</span></font><span lang="EN-US"></span></p>

</div><div><div></div><div class="Wj3C7c">

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<p style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;"><br>
&nbsp;&nbsp; Lower case: &#39;end&#39;.<br>
<br>
&nbsp;&nbsp; It seems this is a Drools 4 parser error message. In Drools 5 we
have much better error messages and they are documented.<br>
<br>
&nbsp;&nbsp; []s<br>
&nbsp;&nbsp; Edson</span></font></p>

<div>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;">2009/2/23 Zevenbergen, Alex &lt;<a href="mailto:azevenbergen@paddypower.com" target="_blank">azevenbergen@paddypower.com</a>&gt;</span></font></p>

<div link="blue" vlink="purple">

<div>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">Hi
all,</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">I&#39;m
just starting to use drools, I am using it to house the rules regarding
settlement of sports markets and such my rule packages should be relatively
simple and straight forward (ie when match winner = x then settle x as winner)</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">However
my first attempt to create a drl is failing with the following error</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font color="red" size="2" face="Courier New"><span><span style="background: white none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: red; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">org.drools.rule.InvalidRulePackage: [0,-1]: unknown:0:-1
mismatched token: [@-1,0:0=&#39;&lt;no text&gt;&#39;,&lt;-1&gt;,0:-1]; expecting type
END</span></span></font></p>

<p><font color="red" size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: red;">&nbsp;</span></font></p>

<p><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">and I cant find much documentation online to help solve it.</span></font></p>

<p><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;</span></font></p>

<p><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">The complete drl file is:</span></font></p>

<p><font size="2" face="Courier New"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;</span></font></p>

<pre><font size="2" face="Courier New"><span style="font-size: 10pt;">package xxx..rules.tennis<br>
<br>
</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size: 10pt;">&nbsp;<br>
<br>
</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size: 10pt;">import xxx.object.Fact<br>
<br>
</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size: 10pt;">import java.util.HashMap<br>
<br>
</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size: 10pt;">import function xxx.Settle_Selection.settle_selection<br>
<br>
</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size: 10pt;">&nbsp;<br>
<br>
</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size: 10pt;">&nbsp;<br>
<br>
</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size: 10pt;">rule &quot;Player 1 wins match&quot;<br>
<br>
</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp; salience 100<br>
<br>
</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp; agenda-group &quot;tennis&quot;<br>
<br>
</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp; when<br>
<br>
</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $f : Fact()<br>
<br>
</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eval(($f.details[&quot;END_MATCH&quot;].toUpper().toString().equal(&quot;TRUE&quot;)))<br>
<br>
</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp; then<br>
<br>
</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size: 10pt;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; settle_selection(&quot;test&quot;,20001&quot;,&quot;W&quot;);<br>
<br>
</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size: 10pt;">END</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size: 10pt;">&nbsp;</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size: 10pt;">&nbsp;</span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size: 10pt;">&nbsp;</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size: 10pt;">Thanks in advance,</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size: 10pt;">Alex</span></font></pre>


<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

</div>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"><br>
________________________________________________________________________<br>
Privileged, confidential and/or copyright information may be contained in this
communication. This e-mail and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to whom they are
addressed. If you are not the intended addressee, you may not copy, forward,
disclose or otherwise use this e-mail or any part of it in any way whatsoever.
To do so is prohibited and may be unlawful. If you have received this email in
error <br>
please notify the sender immediately.<br>
<br>
Paddy Power PLC may monitor the content of e-mail sent and received for the
purpose of ensuring compliance with its policies and procedures.<br>
<br>
Paddy Power plc, Airton House, Airton
  Road, Tallaght, Dublin
24 Registered in Ireland:
16956<br>
________________________________________________________________________</span></font></p>

</div>

<p style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;"><br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a></span></font></p>

</div>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"><br>
<br clear="all">
<br>
-- <br>
&nbsp;Edson Tirelli<br>
&nbsp;JBoss Drools Core Development<br>
&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com" target="_blank">www.jboss.com</a></span></font></p>

</div></div></div><div><div></div><div class="Wj3C7c">


<br>
________________________________________________________________________<br>
Privileged, confidential and/or copyright information may be contained in this communication. This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended addressee, you may not copy, forward, disclose or otherwise use this e-mail or any part of it in any way whatsoever. To do so is prohibited and may be unlawful. If you have received this email in error <br>

please notify the sender immediately.<br>
<br>
Paddy Power PLC may monitor the content of e-mail sent and received for the purpose of ensuring compliance with its policies and procedures.<br>
<br>
Paddy Power plc, Airton House, Airton Road, Tallaght, Dublin 24  Registered in Ireland: 16956<br>
________________________________________________________________________<br>
</div></div></div>


<br>_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br> &nbsp;Edson Tirelli<br> &nbsp;JBoss Drools Core Development<br> &nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>