Skip to content

SimpleTriggerBean is not compatible with Quartz 2.1+ [SPR-9776] #14410

Closed
@spring-projects-issues

Description

@spring-projects-issues

Alexander Radzin opened SPR-9776 and commented

Quartz made some changes in their API that are not backwards compatible.
For example former class org.springframework.scheduling.quartz.SimpleTriggerBean became interface. This causes application that used org.springframework.scheduling.quartz.SimpleTriggerBean to fail because this class extends SimpleTriggerBean that became interface, so the declaration (and implementation of SimpleTriggerBean) must be changed.

The new version of quartz was released at May, 2, 2012, so other people have not complained yet.

Here is the relevant stack trace fragment:

Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.springframework.scheduling.quartz.SimpleTriggerBean] for bean with name 'circuitCacheInitialLoadingTrigger' defined in URL [file:/C:/proj/trunk/main/measurments/collector/target/test-classes/com/panpwr/measurements/collector/persistence/test-collector.appcontext.xml]: problem with class file or dependent class; nested exception is java.lang.IncompatibleClassChangeError: class org.springframework.scheduling.quartz.SimpleTriggerBean has interface org.quartz.SimpleTrigger as super class
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1265)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:433)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)


Attachments:

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: declinedA suggestion or change that we don't feel we should currently applytype: taskA general task

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions