quartz 遇到的问题

quartz 踩过的坑:

1.

Caused by: org.quartz.JobPersistenceException: 
Couldn't store job: FUNCTION ××××.EMPTY_BLOB does not exist [See nested exception: 
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:
 FUNCTION ××××.EMPTY_BLOB does not exist]

这个异常原因是:我用的数据库是Mysql,而配置文件中org.quartz.jobStore.driverDelegateClass设置的是Oracle的
修改方法:

 org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.StdJDBCDelegate

2.

Caused by: org.quartz.ObjectAlreadyExistsException: Unable to store Job : 'DEFAULT.JOB_CLEAN_HISTORY_LOG', because one already exists with this identification.

这个错误提示唯一的标识已经存在
我出现这个错误是发生在:
把项目打包放在一个tomcat下启动正常
当把项目放在第二个tomcat下同时启动时,就出现了这个错误
解决办法:
在初始化调度的时候clean一下

Scheduler scheduler = new StdSchedulerFactory().getScheduler();
scheduler.clear();

3.

This scheduler instance (localhost1490343168982) is still active but was recovered by another instance in the cluster. This may cause inconsistent behavior.

原因
这种与群集有关的错误的最可能原因是具有系统时钟未同步的群集节点。
解决办法
确保您的群集节点与同一个NTP服务器定期同步,或找到其他方法来保持同步。

  • 4
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

MaxCode-1

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值