Re: [rules-users] NPE in SlidingTimeWindow$SlidingTimeWindowComparator

2011-10-12 Thread Rob Crawford
I've tried to create an example, but when I try to isolate the problem, it goes 
away. It's apparently an interaction between multiple rules, and I can't seem 
to come up with minimal set.

Are there any guidelines for writing rules in STREAM mode? I'm banging my head 
against the wall, getting different problems and seeing behavior that doesn't 
make sense based on my experience with CLOUD mode.


On Oct 7, 2011, at 19:42, Edson Tirelli ed.tire...@gmail.com wrote:

 
   Hi Rob,
 
   Can you please provide the test case (open a JIRA with it) or at least a 
 description of what kind of events are you feeding in and with which 
 frequency so that we can try to reproduce the problem?
 
   The NPE where you mentioned is the symptom... the problem is elsewhere...
 
   Edson
 
 2011/10/6 Rob Crawford crawf...@kloognome.com
 I'm getting a null pointer exception on either line 232 or 233 of 
 SlidingTimeWindow. The only window I'm using is:
 
 rule Mark up to date
   timer(int: 5m)
 when
   $store: Store()
   exists (SensorReading (this.store == $store) over window:time(5m))
 then
   ...
 end
 
 The rule never fires; this happens when the sliding time window is expiring 
 tuples.
 
 It appears the comparator needs to handle nulls, but there's nothing in the 
 JavaDocs about that.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users
 
 
 
 -- 
   Edson Tirelli
   JBoss Drools Core Development
   JBoss by Red Hat @ www.jboss.com
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] NPE in SlidingTimeWindow$SlidingTimeWindowComparator

2011-10-07 Thread Edson Tirelli
  Hi Rob,

  Can you please provide the test case (open a JIRA with it) or at least a
description of what kind of events are you feeding in and with which
frequency so that we can try to reproduce the problem?

  The NPE where you mentioned is the symptom... the problem is elsewhere...

  Edson

2011/10/6 Rob Crawford crawf...@kloognome.com

 I'm getting a null pointer exception on either line 232 or 233 of
 SlidingTimeWindow. The only window I'm using is:

 rule Mark up to date
   timer(int: 5m)
 when
   $store: Store()
   exists (SensorReading (this.store == $store) over window:time(5m))
 then
   ...
 end

 The rule never fires; this happens when the sliding time window is expiring
 tuples.

 It appears the comparator needs to handle nulls, but there's nothing in the
 JavaDocs about that.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




-- 
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] NPE in SlidingTimeWindow$SlidingTimeWindowComparator

2011-10-06 Thread Rob Crawford
I'm getting a null pointer exception on either line 232 or 233 of 
SlidingTimeWindow. The only window I'm using is:

rule Mark up to date
   timer(int: 5m)
when
   $store: Store()
   exists (SensorReading (this.store == $store) over window:time(5m))
then
   ...
end

The rule never fires; this happens when the sliding time window is expiring 
tuples.

It appears the comparator needs to handle nulls, but there's nothing in the 
JavaDocs about that.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users