]
Michael Anstis updated JBRULES-3286:
------------------------------------
Fix Version/s: 5.5.0.CR1
(was: 5.5.0.Beta1)
org.drools.time.TimerService.scheduleJob(Job, JobContext, Trigger)
suddenly requires non-null JobContext
--------------------------------------------------------------------------------------------------------
Key: JBRULES-3286
URL:
https://issues.jboss.org/browse/JBRULES-3286
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-core (fusion)
Affects Versions: 5.3.0.Final
Reporter: Richard Calmbach
Assignee: Edson Tirelli
Priority: Critical
Fix For: 5.5.0.CR1
See the forum reference above for context. As requested, this is the bug report for issue
F3 in the post. The intro and description are copied from the original post:
I am making extensive use of the event processing features of the Drools rule engine.
Upgrading from Drools 5.2.0.Final to Drools 5.3.0.Final broke 47 of my unit tests and also
broke my functional tests. There seem to be multiple changes in Drools 5.3.0 that cause
incorrect behavior and/or break backward compatibility. Here are the results of my
investigation so far.
Issue F3:
It is debatable whether this is a bug, but it is a backward-compatibility breaking
change. Previously, when scheduling a job with
org.drools.time.TimerService.scheduleJob(Job job, JobContext ctx, Trigger trigger) (for
both real-time and pseudo clock), you could pass a null JobContext (say, because you
didn't need one), and it would work. However, in Drools 5.3.0, this causes a
NullPointerException at:
org.drools.time.impl.DefaultTimerJobFactoryManager.createTimerJobInstance(Job,
JobContext, Trigger, JobHandle, InternalSchedulerService) line: 25
I realize that if it's not in knowledge-api-<version>.jar, it's not an
official API, but the available interfaces and classes in org.drools.time.** (as used in
the Broker example) are *very* useful for test harnesses *and* for production code (for
implementing dynamic timers, for instance). So, this is more of a heads-up: If you are
suddenly getting an NPE, this might be the cause.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: