org.quartz.JobPersistenceException

解决Quartz定时任务表缺失问题
本文介绍了解决在使用Quartz时遇到的表不存在问题的方法,通过配置MySQL的lower_case_table_names参数为1来确保表名大小写的一致性。

Caused by: org.quartz.JobPersistenceException: Couldn't retrieve trigger: Table 'framework.QRTZ_TRIGGERS' doesn't exist [See nested exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'framework.QRTZ_TRIGGERS' doesn't exist]


mysql默认对数据表名字是区分大小写的,在my.cnf里面加一行lower_case_table_names=1,这样mysql就对表名,不区分大小写了。

org.quartz.JobPersistenceException: Couldn't retrieve trigger: No record found for selection of Trigger with key: '登录.user_freeze' and statement: SELECT * FROM QRTZ_CRON_TRIGGERS WHERE SCHED_NAME = 'quartzScheduler' AND TRIGGER_NAME = ? AND TRIGGER_GROUP = ? at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveTrigger(JobStoreSupport.java:1538) ~[quartz-2.3.2.jar!/:na] at org.quartz.impl.jdbcjobstore.JobStoreSupport.recoverMisfiredJobs(JobStoreSupport.java:984) ~[quartz-2.3.2.jar!/:na] at org.quartz.impl.jdbcjobstore.JobStoreSupport.doRecoverMisfires(JobStoreSupport.java:3264) ~[quartz-2.3.2.jar!/:na] at org.quartz.impl.jdbcjobstore.JobStoreSupport$MisfireHandler.manage(JobStoreSupport.java:4012) ~[quartz-2.3.2.jar!/:na] at org.quartz.impl.jdbcjobstore.JobStoreSupport$MisfireHandler.run(JobStoreSupport.java:4033) ~[quartz-2.3.2.jar!/:na] Caused by: java.lang.IllegalStateException: No record found for selection of Trigger with key: '登录.user_freeze' and statement: SELECT * FROM QRTZ_CRON_TRIGGERS WHERE SCHED_NAME = 'quartzScheduler' AND TRIGGER_NAME = ? AND TRIGGER_GROUP = ? at org.quartz.impl.jdbcjobstore.CronTriggerPersistenceDelegate.loadExtendedTriggerProperties(CronTriggerPersistenceDelegate.java:107) ~[quartz-2.3.2.jar!/:na] at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.selectTrigger(StdJDBCDelegate.java:1819) ~[quartz-2.3.2.jar!/:na] at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveTrigger(JobStoreSupport.java:1536) ~[quartz-2.3.2.jar!/:na] ... 4 common frames omitted 什么意思
10-29
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值