Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-196

NPE when used Timers with temporal operators in the LHS pattern

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None

      NPE when used Timers with temporal operators. When the rule is invalidated by the clock we see:

      Unable to execute timer job!
      java.lang.NullPointerException
      at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1236)
      at org.drools.common.Scheduler$ActivationTimerJob.execute(Scheduler.java:91)
      at org.drools.time.SelfRemovalJob.execute(SelfRemovalJob.java:15)
      at org.drools.time.impl.DefaultTimerJobInstance.call(DefaultTimerJobInstance.java:47)
      at org.drools.time.impl.DefaultTimerJobInstance.call(DefaultTimerJobInstance.java:12)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)

      Unit test attached.

        1. LoopTestTimer.java
          6 kB
          Alessandro Lazarotti

              mfusco@redhat.com Mario Fusco
              rhn-support-alazarot Alessandro Lazarotti
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: