You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SimpleTriggerFactoryBean and CronTriggerFactoryBean fail without jobDetail [SPR-13604] #18182
Factory beans SimpleTriggerFactoryBean and CronTriggerFactoryBean throw NPE when their jobDetail property is not set. This makes it impossible to create triggers without associated job detail (something that we need in our application and that worked fine in Spring 3.x). Moreover, the jobDetail null check in afterPropertiesSet (SimpleTriggerFactoryBean:221) is useless, because jobDetail is dereferenced without any null checking later in this method.
Making it possible to create triggers without job detail will make these bean factories more flexible and should not break any current uses of these beans.
As far as I can see, this never worked with Cron/SimpleTriggerFactoryBean... Are you maybe referring to the old Cron/SimpleTriggerBean for Quartz 1.x where this actually worked?
This is worth fixing in any case. It's just not a regression in those particular classes then.
As far as I can see, this never worked with Cron/SimpleTriggerFactoryBean... Are you maybe referring to the old Cron/SimpleTriggerBean for Quartz 1.x where this actually worked?
Yes, you are right, I was referring to SimpleTriggerBean from Spring 3.2.8.RELEASE.
Activity
spring-projects-issues commentedon Oct 23, 2015
Martin Benda commented
Pull request URL added.
spring-projects-issues commentedon Nov 18, 2015
Martin Benda commented
Changing "Affects Version/s" to 4.2.3; issue is still present in the latest version.
spring-projects-issues commentedon Jan 19, 2016
Juergen Hoeller commented
As far as I can see, this never worked with
Cron/SimpleTriggerFactoryBean... Are you maybe referring to the oldCron/SimpleTriggerBeanfor Quartz 1.x where this actually worked?This is worth fixing in any case. It's just not a regression in those particular classes then.
Juergen
spring-projects-issues commentedon Jan 19, 2016
Stéphane Nicoll commented
Fixed on master and available in
4.3.0.BUILD-SNAPSHOTin a couple of hours. Juergen Hoeller can you please review and backport to 4.2?spring-projects-issues commentedon Jan 19, 2016
Juergen Hoeller commented
Sure, will do...
spring-projects-issues commentedon Jan 19, 2016
Martin Benda commented
Yes, you are right, I was referring to
SimpleTriggerBeanfrom Spring 3.2.8.RELEASE.Thanks!