<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="&#1;" xmlns="http://www.w3.org/TR/REC-html40">

<head>

<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Lucida Console";
        panose-1:2 11 6 9 4 5 4 2 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=PT link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Edson, <o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>First of all, thanks for your quick reply!<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I&#8217;ve submitted a new issue on Jira. Here&#8217;s the link:<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><a href="https://jira.jboss.org/jira/browse/JBRULES-2457">https://jira.jboss.org/jira/browse/JBRULES-2457</a><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>If anything else is needed please, let me know.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks, once again </span><span lang=EN-US style='font-size:
11.0pt;font-family:Wingdings;color:#1F497D'>J</span><span lang=EN-US
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Best regards,<o:p></o:p></span></p>

<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width="100%"
 style='width:100.0%'>
 <tr>
  <td colspan=2 style='background:#B4CB3D;padding:0cm 0cm 0cm 0cm'>
  <p class=MsoNormal><span style='color:#1F497D'><img border=0 width=389
  height=6 id="Picture_x0020_1" src="cid:image001.jpg@01CACA9D.C29E4930"><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td style='border:none;border-left:solid black 1.0pt;background:#EBF3CC;
  padding:7.5pt 7.5pt 7.5pt 7.5pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";
  color:#1F497D'>Vítor Mendonça Moreira<br>
  </span><b><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";
  color:#8A9A37'>Analista / Programador<br>
  Direcção de Investigação e Desenvolvimento</span></b><span style='font-size:
  7.5pt;font-family:"Verdana","sans-serif";color:#1F497D'><br>
  <br>
  Rua Dr. Francisco Sá Carneiro, nº. 4 r/c esq.<br>
  2500 - 206 - Caldas da Rainha<br>
  Tel: (+351) 262 832 196<br>
  Fax: (+351) 262 186 455<br>
  Web: <a href="http://www.makewise.pt">www.makewise.pt</a><br>
  Uma empresa: <a href="http://www.sousapedro.com">Grupo Sousa Pedro</a> <o:p></o:p></span></p>
  </td>
  <td width="1%" style='width:1.0%;background:#EBF3CC;padding:7.5pt 7.5pt 7.5pt 7.5pt'>
  <p class=MsoNormal><span style='color:#1F497D'><img border=0 width=119
  height=60 id="Picture_x0020_2" src="cid:image002.jpg@01CACA9D.C29E4930"><o:p></o:p></span></p>
  </td>
 </tr>
 <tr style='height:.75pt'>
  <td style='background:#B4CB3D;padding:0cm 0cm 0cm 0cm;height:.75pt'></td>
  <td style='background:#B4CB3D;padding:0cm 0cm 0cm 0cm;height:.75pt'></td>
 </tr>
</table>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <b>On Behalf Of </b>Edson Tirelli<br>
<b>Sent:</b> segunda-feira, 22 de Março de 2010 18:06<br>
<b>To:</b> Rules Users List<br>
<b>Subject:</b> Re: [rules-users] Junit, PseudoClock and NPE<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
&nbsp;&nbsp;&nbsp;&nbsp; Hmmm, strange... would you be able to share your junit
test? If so, could you please open a JIRA and attach the test? <br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp; Thanks,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Edson<o:p></o:p></p>

<div>

<p class=MsoNormal>2010/3/22 Makewise - Vitor Rui Mendonça &lt;<a
href="mailto:Vitor.Mendonca@brisa.pt">Vitor.Mendonca@brisa.pt</a>&gt;<o:p></o:p></p>

<div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>Hi folks!</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>First time in this mailing-list, with very little experience in
Drools (Fusion, regarding CEP).</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>I hope that someone could help me out </span><span lang=EN-US
style='font-family:Wingdings'>J</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>I&#8217;ve being investigating about this issue and I&#8217;m not getting any
answer.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>&nbsp;</span><o:p></o:p></p>

<div style='border:none;border-bottom:solid windowtext 1.0pt;padding:0cm 0cm 1.0pt 0cm;
border-color:-moz-use-text-color -moz-use-text-color windowtext'>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>Here&#8217;s the problem:</span><o:p></o:p></p>

</div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>I&#8217;ve got a DRL file with a simple rule:</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:#960000'>rule</span></b><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:black'>
&#8220;....&#8221;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><b><span lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";
color:#960000'>when</span></b><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
$offline : Event( code == </span><span lang=EN-US style='font-size:9.0pt;
font-family:"Lucida Console";color:green'>&quot;101&quot;</span><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:black'>,
$offlineLane : lane ) </span><b><span lang=EN-US style='font-size:9.0pt;
font-family:"Lucida Console";color:#960000'>from</span></b><span lang=EN-US
style='font-size:9.0pt;font-family:"Lucida Console";color:black'> entry-point </span><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:green'>&quot;incoming&quot;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><b><span lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";
color:#960000'>not</span></b><span lang=EN-US style='font-size:9.0pt;
font-family:"Lucida Console";color:black'> ( $online : Event(code == </span><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:green'>&quot;102&quot;</span><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:black'>,
lane == $offlineLane, </span><b><span lang=EN-US style='font-size:9.0pt;
font-family:"Lucida Console";color:#960000'>this</span></b><span lang=EN-US
style='font-size:9.0pt;font-family:"Lucida Console";color:black'> after [0s,3m]
$offline ) </span><b><span lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";
color:#960000'>from</span></b><span lang=EN-US style='font-size:9.0pt;
font-family:"Lucida Console";color:black'> entry-point </span><span lang=EN-US
style='font-size:9.0pt;font-family:"Lucida Console";color:green'>&quot;incoming&quot;</span><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:black'> )</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><b><span lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";
color:#960000'>then</span></b><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
// some code here&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:#960000'>end</span></b><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>What I want is: when there&#8217;s an offline for more than 3 minutes *<b>without</b>*
any online event (meanwhile), that execute the rule.</span><o:p></o:p></p>

<div style='border:none;border-bottom:solid windowtext 1.0pt;padding:0cm 0cm 1.0pt 0cm;
border-color:-moz-use-text-color -moz-use-text-color windowtext'>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>&nbsp;</span><o:p></o:p></p>

</div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>I&#8217;ve got JUnits, with Drools configured with STREAM mode and PSEUDO
clock.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>All is good in JUnit world except in this testcase:</span><o:p></o:p></p>

<p><span lang=EN-US style='font-family:Symbol'>·</span><span lang=EN-US
style='font-size:7.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
lang=EN-US>Insert an offline event (</span><span lang=EN-US style='font-size:
9.0pt;font-family:"Lucida Console";color:#0000C0'>workingMemoryEntryPoint</span><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:black'>.insert(
offlineEvent );</span><span lang=EN-US>)</span><o:p></o:p></p>

<p><span lang=EN-US style='font-family:Symbol'>·</span><span lang=EN-US
style='font-size:7.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
lang=EN-US>Clock advances 2m50s (</span><span lang=EN-US style='font-size:9.0pt;
font-family:"Lucida Console";color:#0000C0'>clock</span><span lang=EN-US
style='font-size:9.0pt;font-family:"Lucida Console";color:black'>.advanceTime(2,TimeUnit.</span><i><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:#0000C0'>MINUTES</span></i><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:black'> );</span><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:#0000C0'>clock</span><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:black'>.advanceTime(50,
TimeUnit.</span><i><span lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";
color:#0000C0'>SECONDS</span></i><span lang=EN-US style='font-size:9.0pt;
font-family:"Lucida Console";color:black'> );</span><span lang=EN-US>)</span><o:p></o:p></p>

<p><span lang=EN-US style='font-family:Symbol'>·</span><span lang=EN-US
style='font-size:7.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
lang=EN-US>Insert an online event (</span><span lang=EN-US style='font-size:
9.0pt;font-family:"Lucida Console";color:#0000C0'>workingMemoryEntryPoint</span><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:black'>.insert(
onlineEvent );</span><span lang=EN-US>)</span><o:p></o:p></p>

<p><span lang=EN-US style='font-family:Symbol'>·</span><span lang=EN-US
style='font-size:7.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
lang=EN-US>Clock advances 0m15s (</span><span lang=EN-US style='font-size:9.0pt;
font-family:"Lucida Console";color:#0000C0'>clock</span><span lang=EN-US
style='font-size:9.0pt;font-family:"Lucida Console";color:black'>.advanceTime(15,TimeUnit.</span><i><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:#0000C0'>SECONDS</span></i><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:black'> );</span><span
lang=EN-US>)</span><o:p></o:p></p>

<p><span lang=EN-US style='font-family:Symbol'>·</span><span lang=EN-US
style='font-size:7.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
lang=EN-US>Assertion error: the rule runs when it shouldn&#8217;t (online event
cancels offline event).</span><o:p></o:p></p>

<div style='border:none;border-bottom:solid windowtext 1.0pt;padding:0cm 0cm 1.0pt 0cm;
border-color:-moz-use-text-color -moz-use-text-color windowtext'>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>&nbsp;</span><o:p></o:p></p>

</div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>I&#8217;ve got no clue about this but I have some more interesting info:</span><o:p></o:p></p>

<p><span lang=EN-US style='font-size:9.0pt;font-family:Symbol'>·</span><span
lang=EN-US style='font-size:7.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span lang=EN-US>When clock advances 0m15s, there&#8217;s an NPE on a
LinkedList:<br>
</span><u><span lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";
color:navy'>java.lang.NullPointerException</span></u><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.drools.util.LinkedList.remove(</span><u><span lang=EN-US
style='font-size:9.0pt;font-family:"Lucida Console";color:navy'>LinkedList.java:113</span></u><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:red'>)</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.drools.common.Scheduler$DuractionJob.execute(</span><u><span lang=EN-US
style='font-size:9.0pt;font-family:"Lucida Console";color:navy'>Scheduler.java:71</span></u><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:red'>)</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.drools.time.impl.PseudoClockScheduler$ScheduledJob.call(</span><u><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:navy'>PseudoClockScheduler.java:219</span></u><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:red'>)</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.drools.time.impl.PseudoClockScheduler.runCallBacks(</span><u><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:navy'>PseudoClockScheduler.java:168</span></u><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:red'>)</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:18.0pt'><span lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";
color:red'>&nbsp;&nbsp; at
org.drools.time.impl.PseudoClockScheduler.advanceTime(</span><u><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:navy'>PseudoClockScheduler.java:130</span></u><span
lang=EN-US style='font-size:9.0pt;font-family:"Lucida Console";color:red'>)</span><o:p></o:p></p>

<p><span lang=EN-US style='font-family:Symbol'>·</span><span lang=EN-US
style='font-size:7.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
lang=EN-US>I haven&#8217;t any code/rule that retracts events (I shouldn&#8217;t have it
for this case, right?)</span><o:p></o:p></p>

<p><span lang=EN-US style='font-family:Symbol'>·</span><span lang=EN-US
style='font-size:7.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
lang=EN-US>I&#8217;ve tried Drools 5.0.1 and 5.1.0.M1, with the same results</span><o:p></o:p></p>

<p><span lang=EN-US style='font-family:Symbol'>·</span><span lang=EN-US
style='font-size:7.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
lang=EN-US>The issue causing NPE, I&#8217;ve found an old issue regarding Drools
3.0.4 and the bug was corrected in 3.0.5 (<a
href="https://jira.jboss.org/jira/browse/JBRULES-455" target="_blank">https://jira.jboss.org/jira/browse/JBRULES-455</a>)</span><o:p></o:p></p>

<p><span lang=EN-US style='font-family:Symbol'>·</span><span lang=EN-US
style='font-size:7.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
lang=EN-US>I think that someone wrote about this error (in Drools 5) but I
don&#8217;t have the link to it.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>Thanks In Advance!</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>Best regards,</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>&nbsp;</span><o:p></o:p></p>

<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width="100%"
 style='width:100.0%'>
 <tr>
  <td colspan=2 style='background:#B4CB3D;padding:0cm 0cm 0cm 0cm;background-attachment:
  scroll;background-position-x:0%;background-position-y:0%'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><img
  border=0 width=389 height=6 id="_x0000_i1025"
  src="cid:image001.jpg@01CACA9D.C29E4930"><o:p></o:p></p>
  </td>
 </tr>
 <tr>
  <td style='border:none;border-left:solid windowtext 1.0pt;background:#EBF3CC;
  padding:7.5pt 7.5pt 7.5pt 7.5pt;border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color black;
  background-attachment:scroll;background-position-x:0%;background-position-y:
  0%'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  style='font-size:7.5pt'>Vítor Mendonça Moreira<br>
  <b><span style='color:#8A9A37'>Analista / Programador<br>
  Direcção de Investigação e Desenvolvimento</span></b><br>
  <br>
  Rua Dr. Francisco Sá Carneiro, nº. 4 r/c esq.<br>
  2500 - 206 - Caldas da Rainha<br>
  Tel: (+351) 262 832 196<br>
  Fax: (+351) 262 186 455<br>
  Web: <a href="http://www.makewise.pt" target="_blank">www.makewise.pt</a><br>
  Uma empresa: <a href="http://www.sousapedro.com" target="_blank">Grupo Sousa
  Pedro</a> </span><o:p></o:p></p>
  </td>
  <td width="1%" style='width:1.0%;background:#EBF3CC;padding:7.5pt 7.5pt 7.5pt 7.5pt;
  background-attachment:scroll;background-position-x:0%;background-position-y:
  0%'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><img
  border=0 width=119 height=60 id="_x0000_i1026"
  src="cid:image002.jpg@01CACA9D.C29E4930"><o:p></o:p></p>
  </td>
 </tr>
 <tr style='min-height: 0.75pt'>
  <td style='background:#B4CB3D;padding:0cm 0cm 0cm 0cm;min-height: 0.75pt;
  background-attachment:scroll;background-position-x:0%;background-position-y:
  0%'></td>
  <td style='background:#B4CB3D;padding:0cm 0cm 0cm 0cm;min-height: 0.75pt;
  background-attachment:scroll;background-position-x:0%;background-position-y:
  0%'></td>
 </tr>
</table>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p>

</div>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><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" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><o:p></o:p></p>

</div>

<p class=MsoNormal><br>
<br clear=all>
<br>
-- <br>
&nbsp;Edson Tirelli<br>
&nbsp;JBoss Drools Core Development<br>
&nbsp;JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><o:p></o:p></p>

</div>

</body>

</html>