[rules-users] Entry-Points can cause NullPointerExceptionand/or no rule firing

Mark Proctor mproctor at codehaus.org
Fri May 14 11:51:28 EDT 2010


Vitor,

Please stop replying to posts with unrelated topics and just changing 
the title, it messes up the threaded view in most people's email app. 
See here for more details on netiquette:
http://www.jboss.org/drools/lists.html

Mark
On 14/05/2010 15:51, Makewise - Vitor Rui Mendonça wrote:
>
> Hi Greg!
>
> Thanks for your quick answer.
>
> I’m having some trouble with absence of events in Drools (I’ve send 
> some emails on the mailing list regarding that) and I personally think 
> it’s some kind of bug (mine or, probably, drools).
>
> So, I’m looking for some help. Instead of explaining all over again, I 
> just point the issue out.
>
> Sorry about this mess, too much time around this problem J
>
> Thanks, once again!
>
> Vítor Mendonça Moreira
> *Analista / Programador
> Direcção de Investigação e Desenvolvimento*
>
> Rua Dr. Francisco Sá Carneiro, nº. 4 r/c esq.
> 2500 - 206 - Caldas da Rainha
> Tel: (+351) 262 832 196
> Fax: (+351) 262 186 455
> Web: _www.makewise.pt_ <http://www.makewise.pt>
> Uma empresa: _Grupo Sousa Pedro_ <http://www.sousapedro.com>
>
> 	
>
>
> 	
>
> *From:* rules-users-bounces at lists.jboss.org 
> [mailto:rules-users-bounces at lists.jboss.org] *On Behalf Of *Greg Barton
> *Sent:* sexta-feira, 14 de Maio de 2010 15:31
> *To:* Rules Users List
> *Subject:* Re: [rules-users] Entry-Points can cause 
> NullPointerExceptionand/or no rule firing
>
> JIRA issues are for reporting bugs in drools.  Is there a bug you're 
> reporting or do you want help with this particular problem?
>
> --- On *Fri, 5/14/10, Makewise - Vitor Rui Mendonça 
> /<Vitor.Mendonca at brisa.pt>/* wrote:
>
>
> From: Makewise - Vitor Rui Mendonça <Vitor.Mendonca at brisa.pt>
> Subject: [rules-users] Entry-Points can cause NullPointerException 
> and/or no rule firing
> To: "Rules Users List" <rules-users at lists.jboss.org>
> Date: Friday, May 14, 2010, 8:40 AM
>
> Hi again.
>
> First of all, I’m running Drools 5.1.0.SNAPSHOT on Windows and Eclipse 
> 3.4.
>
> I’ve submitted a Jira Issue 
> (_https://jira.jboss.org/jira/browse/JBRULES-2511_):
>
>>
> I've got a system that receives transactions. I want to implement the 
> following rules:
> - raise an alarm(alarm event) when there aren't any transaction for an 
> hour (or more);
> - if there's an alarm, no more alarms should be raised;
> - if there's an alarm and the system receives a transaction, that 
> alarm should be retracted and the system should send an recovery event.
>
> I've implemented the rules this way:
> - ***start*** rule to insert an "EngineStart" event when the rules 
> engine starts
> - ***notrx_after_start*** rule to detect absence of transactions 
> during the first hour
> - ***notrx_after_trx*** rule to detect absence of transactions (during 
> one hour) after last transaction
> - ***rearm*** rule to detect transactions and rearm the system.
>
> I made a Maven project with junits, which inserts transactions at 
> specific time, in order to raise the desired events.
>
> Two set of tests were made:
> - the rules defined in "default" entry-point: the correspondent junit 
> gives a NullPointerException in DefaultAgenda
> - the rules defined in "incoming" entry-point: the correspondent junit 
> doesn't activate the ***rearm*** rule
>
>>
> The issue has an attachment with junits and rules to play with.
>
> T.I.A.
>
> Vítor Mendonça Moreira
> *Analista / Programador
> Direcção de Investigação e Desenvolvimento*
>
> Rua Dr. Francisco Sá Carneiro, nº. 4 r/c esq.
> 2500 - 206 - Caldas da Rainha
> Tel: (+351) 262 832 196
> Fax: (+351) 262 186 455
> Web: _www.makewise.pt_ <http://www.makewise.pt>
> Uma empresa: _Grupo Sousa Pedro_ <http://www.sousapedro.com>
>
> 	
>
>
> 	
>
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> rules-users mailing list
> _rules-users at lists.jboss.org_ </mc/compose?to=rules-users at lists.jboss.org>
> _https://lists.jboss.org/mailman/listinfo/rules-users_
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>    

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100514/8702267d/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 635 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20100514/8702267d/attachment.jpe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 2725 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20100514/8702267d/attachment-0001.jpe 


More information about the rules-users mailing list