读书人

【异常】spring的定时器quartz

发布时间: 2012-06-26 10:04:13 作者: rapoo

【错误】spring的定时器quartz
05-02 16:12:25.606 [ERROR] org.quartz.core.ErrorLogger - An error occured instantiating job to be executed. job= 'DEFAULT.scanBankJob'
[/color]org.quartz.SchedulerException: Problem instantiating class 'com.yinct.schedule.ScanBankSchedule' - [color=red]java.lang.NoSuchMethodError: org.quartz.SchedulerException: method <init>(Ljava/lang/String;Ljava/lang/Throwable;)V not foundat org.quartz.core.JobRunShell.initialize(JobRunShell.java:148)
at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:353)
2012-5-2 16:12:26 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()


参考信息:
http://grails.1312388.n4.nabble.com/Error-about-Quartz-jobs-in-Def-Guide-to-Grails-td1345018.html

I'm not sure, but it looks like a conflict in API between Quartz 1.6.0
(which is supported by Spring 2.5 in Grails 1.0) and Quartz 1.5.x (which was
used in Spring 2.x in earlier versions of Grails). Try upgrading to the
0.3-SNAPSHOT version of the plugin ('grails install-plugin quartz
0.3-SNAPSHOT'), it built against quartz 1.6.0, so at least you'll see the
real exception occured instead of NoSuchMethod one.

我使用的是:spring2.5+quartz_1.5.2

现修改为:spring2.5+quartz_1.6,成功改过

读书人网 >软件架构设计

热点推荐