概述
问题描述:
org.quartz.JobPersistenceException: Couldn't store trigger 'DEFAULT.TASK_CLASS_NAME2a3a476d7640454f89d72d8c6f8ea6d0' for 'DEFAULT.TASK_CLASS_NAME2a3a476d7640454f89d72d8c6f8ea6d0' job:ORA-08177: 无法连续访问此事务处理
问题分析:
1、Quartz从MySQL数据库换成Oracle数据库,并且org.quartz.jobStore.txIsolationLevelSerializable设置为true,出现了报错。
解决办法:
(1)注释掉Quartz配置类的@Configuration注解,代表不使用当前配置类,org.quartz.jobStore.txIsolationLevelSerializable默认为false。
(2)注释掉Quartz配置类的prop.put("org.quartz.jobStore.txIsolationLevelSerializable", "true");,代表org.quartz.jobStore.txIsolationLevelSerializable默认为false。
// quartz参数
Properties prop = new Properties();
//prop.put("org.quartz.jobStore.txIsolationLevelSerializable", "true");
(3)将org.quartz.jobStore.txIsolationLevelSerializable设置为false。
prop.put("org.quartz.jobStore.txIsolationLevelSerializable", "false");
最后
以上就是朴实白猫为你收集整理的Quartz JobPersistenceException: Couldn‘t store trigger ‘xxx‘ for ‘xxx‘ job:ORA-08177:无法连续访问此事务处理问题解决的全部内容,希望文章能够帮你解决Quartz JobPersistenceException: Couldn‘t store trigger ‘xxx‘ for ‘xxx‘ job:ORA-08177:无法连续访问此事务处理问题解决所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复