问题描述:
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内容请搜索靠谱客的其他文章。
发表评论 取消回复