Skip to content

SchedulerAccessor 'globalJobListeners' and 'globalTriggerListeners' not working with 2.0.x and 2.1.x [SPR-11362] #15988

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Referenced from: commits fe4b57c, c719c70

Backported to: 3.2.7

Metadata

Metadata

Assignees

Labels

status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions