我是靠谱客的博主 朴实白猫,这篇文章主要介绍Quartz JobPersistenceException: Couldn‘t store trigger ‘xxx‘ for ‘xxx‘ job:ORA-08177:无法连续访问此事务处理问题解决,现在分享给大家,希望可以做个参考。

问题描述:

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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(75)

评论列表共有 0 条评论

立即
投稿
返回
顶部