<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=708253213-25052007><FONT face=Arial
color=#0000ff size=2>MR2. The typo was my fault. Let me test in trunk (at home)
before I raise a JIRA.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=708253213-25052007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=708253213-25052007><FONT face=Arial
color=#0000ff size=2>Cheers,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=708253213-25052007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=708253213-25052007><FONT face=Arial
color=#0000ff size=2>Mike</FONT></SPAN></DIV><BR>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <B>On Behalf Of </B>Edson
Tirelli<BR><B>Sent:</B> 25 May 2007 13:40<BR><B>To:</B> Rules Users
List<BR><B>Subject:</B> Re: [rules-users] NPE loading rule with multi
restriction connectivefield constraints<BR></FONT><BR></DIV>
<DIV></DIV><BR><BR>
<DIV><SPAN class=gmail_quote>2007/5/25, Anstis, Michael (M.) <<A
href="mailto:manstis1@ford.com">manstis1@ford.com</A>>:</SPAN>
<DIV><BR><BR> Hi Michael<BR><BR> Are you
using trunk or MR2?<BR> There was a syntax change in trunk
where the connective constraints were modified to || and && for
consistency with the rest of the language. <BR> Also, I see
a typo in the above rule where the variable name is "$pminp" but was written
as "$pmin".<BR><BR> Anyway, the exception message must be
improved. Can you please add a JIRA with your test? <BR><BR>
Thanks once more,<BR>
Edson<BR> </DIV><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<P><FONT face=Arial size=2>Hi,</FONT> </P>
<P><FONT face=Arial size=2>I get a NPE (in v4.0) when loading a rulebase
with the following rule:-</FONT> </P>
<P><B><FONT face="Courier New" color=#960000 size=2>rule</FONT></B><FONT
face="Courier New" color=#000000 size=2></FONT> <FONT face="Courier New"
color=#008000 size=2>"smurf"</FONT> <BR><B><FONT face="Courier New"
color=#960000 size=2>when</FONT></B>
<BR> <FONT face="Courier New"
color=#000000 size=2>$p1 : Property( $pminp : number )</FONT>
<BR> <FONT face="Courier New"
color=#000000 size=2>$p2 : Property( $pmaxp : number )</FONT>
<BR> <FONT face="Courier New"
color=#000000 size=2>$p3 : Property( $mlp : number < $pmin | > $pmaxp
)</FONT> <BR><B><FONT face="Courier New" color=#960000
size=2>then</FONT></B> <BR> <FONT
face="Courier New" color=#000000 size=2>System.out.println(</FONT><FONT
face="Courier New" color=#008000 size=2>"The smurf has landed!"</FONT><FONT
face="Courier New" color=#000000 size=2> );</FONT> <BR><B><FONT
face="Courier New" color=#960000 size=2>end</FONT></B> </P>
<P><FONT face=Arial size=2>If the rule uses literals in the
multi-restriction connective field constraint it loads OK.</FONT> </P>
<P><FONT face=Arial size=2>The stack trace isn't very helpful:-</FONT> </P>
<P><U><FONT face="Courier New" color=#000080
size=2>java.lang.NullPointerException</FONT></U>
<BR> <FONT face="Courier New"
color=#000000 size=2>at
com.ford.finance.nges.rules.RuleEngineWrapper$WorkSpace.loadRulebaseFromDrl(</FONT><U><FONT
face="Courier New" color=#000080 size=2>RuleEngineWrapper.java
:506</FONT></U><FONT face="Courier New" color=#000000 size=2>)</FONT>
<BR> <FONT face="Courier New"
color=#000000 size=2>at
com.ford.finance.nges.rules.RuleEngineWrapper$WorkSpace.loadRuleBase(</FONT><U><FONT
face="Courier New" color=#000080 size=2>RuleEngineWrapper.java:472
</FONT></U><FONT face="Courier New" color=#000000 size=2>)</FONT>
<BR> <FONT face="Courier New"
color=#000000 size=2>at
com.ford.finance.nges.rules.RuleEngineWrapper$WorkSpace.<init>(</FONT><U><FONT
face="Courier New" color=#000080 size=2>RuleEngineWrapper.java:64</FONT>
</U><FONT face="Courier New" color=#000000 size=2>)</FONT>
<BR> <FONT face="Courier New"
color=#000000 size=2>at
com.ford.finance.nges.rules.RuleEngineWrapper.getWorkSpace(</FONT><U><FONT
face="Courier New" color=#000080
size=2>RuleEngineWrapper.java:582</FONT></U> <FONT face="Courier New"
color=#000000 size=2>)</FONT> </P>
<P><FONT face=Arial size=2>Would you like a new JIRA?</FONT> </P>
<P><FONT face=Arial size=2>With kind regards,</FONT> </P>
<P><FONT face=Arial size=2>Mike</FONT>
</P></DIV><BR>_______________________________________________<BR>rules-users
mailing list<BR><A onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A><BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="https://lists.jboss.org/mailman/listinfo/rules-users"
target=_blank>https://lists.jboss.org/mailman/listinfo/rules-users</A><BR><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>
</BLOCKQUOTE></BODY></HTML>