Description
Hatanaka, Akihiro opened SPR-11362 and commented
With Quartz 2.0, SchedulerFactoryBean throws NoSuchMethodException.
My scheduler config in appliction.xml is below.
<bean id="scheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="globalJobListeners">
<list>
<ref bean="qbpmContextJobListener" />
</list>
</property>
...
</bean>
There is a bug in SchedulerAccessor#registerListeners().
Quartz 2.1, 2.2 has org.quartz.core.ListenerManagerImpl.addJobListener(JobListener).
However, Quartz 2.0 does not have.
So this line throws NoSuchMethodException.
Method addJobListener = target.getClass().getMethod((quartz2 ? "addJobListener" : "addGlobalJobListener"), JobListener.class);
Affects: 3.2 GA, 3.2.6
Issue Links:
- Full Quartz 2.2 compatibility, including LocalDataSourceJobStore [SPR-11284] #15908 Full Quartz 2.2 compatibility, including LocalDataSourceJobStore
- Require Jackson 2.1+, Quartz 2.1.4+, EhCache 2.5+ [SPR-11262] #15887 Require Jackson 2.1+, Quartz 2.1.4+, EhCache 2.5+
Referenced from: commits fe4b57c, c719c70
Backported to: 3.2.7