Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-11362

SchedulerAccessor 'globalJobListeners' and 'globalTriggerListeners' not working with 2.0.x and 2.1.x

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 3.2 GA, 3.2.6
    • Fix Version/s: 3.2.7, 4.0.1
    • Component/s: None
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      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);

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              snicoll St├ęphane Nicoll
              Reporter:
              hatanaka Hatanaka, Akihiro
              Last updater:
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 37 weeks, 1 day ago