phasapis / cqels

Automatically exported from code.google.com/p/cqels
0 stars 0 forks source link

IllegalArgumentException when executing query with 'RANGE' pattern #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Executing a CQELS query with a 'RANGE' pattern but without a corresponding 
'SLIDE' pattern causes a IllegalArgumentException as 
java.util.Timer.schedule(...) is called with a period = 0 which is not allowed. 
Adding a 'SLIDE' pattern resolves this problem, as it changed the period to > 0.

What steps will reproduce the problem?
1. Download and compile current trunk version from SVN
2. Execute CQELS query with 'RANGE' pattern but without 'SLIDE' pattern. For 
example modify the example query 'query1.cqels' by changing the line

STREAM <http://deri.org/streams/rfid> [NOW] 

to 

STREAM <http://deri.org/streams/rfid> [RANGE 1s] 

3. execute example code running modified query with 'Paul Erdoes' as AUTHORNAME.

Original issue reported on code.google.com by michael....@student.kit.edu on 7 Mar 2014 at 10:56

GoogleCodeExporter commented 8 years ago
Thanks for your report. This problem has been fixed. Now it's ok to use 
TUMBLING and SLIDE keywords.

Original comment by chanle...@gmail.com on 16 Apr 2014 at 9:58