[
https://issues.jboss.org/browse/JBRULES-3269?page=com.atlassian.jira.plug...
]
Diego Naya commented on JBRULES-3269:
-------------------------------------
Edson, I have attached the two needed files to reproduce the problem. I appears randomly
during the execution. It can be in the first few seconds or after 30 seconds.
Drools NPE on SlidingTimeWindowComparator
-----------------------------------------
Key: JBRULES-3269
URL:
https://issues.jboss.org/browse/JBRULES-3269
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 5.3.0.Final
Reporter: Diego Naya
Assignee: Edson Tirelli
Attachments: DroolsTest.java, Sample.drl
Exception in thread "Thread-0" org.drools.RuntimeDroolsException: Unexpected
exception executing action
org.drools.rule.SlidingTimeWindow$BehaviorExpireWMAction@1737712
at
org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:973)
at org.drools.common.DefaultAgenda.fireUntilHalt(DefaultAgenda.java:1231)
at
org.drools.common.AbstractWorkingMemory.fireUntilHalt(AbstractWorkingMemory.java:753)
at
org.drools.common.AbstractWorkingMemory.fireUntilHalt(AbstractWorkingMemory.java:729)
at
org.drools.impl.StatefulKnowledgeSessionImpl.fireUntilHalt(StatefulKnowledgeSessionImpl.java:234)
at com.sample.DroolsTest$1.run(DroolsTest.java:35)
Caused by: java.lang.NullPointerException
at
org.drools.rule.SlidingTimeWindow$SlidingTimeWindowComparator.compare(SlidingTimeWindow.java:232)
at
org.drools.rule.SlidingTimeWindow$SlidingTimeWindowComparator.compare(SlidingTimeWindow.java:227)
at java.util.PriorityQueue.siftDownUsingComparator(PriorityQueue.java:661)
at java.util.PriorityQueue.siftDown(PriorityQueue.java:629)
at java.util.PriorityQueue.poll(PriorityQueue.java:540)
at java.util.AbstractQueue.remove(AbstractQueue.java:114)
at org.drools.rule.SlidingTimeWindow.expireTuples(SlidingTimeWindow.java:164)
at
org.drools.rule.SlidingTimeWindow$BehaviorExpireWMAction.execute(SlidingTimeWindow.java:431)
at
org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:971)
... 5 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira