quartz报错:Couldn't retrieve trigger: No record found for selection of Trigger with key

Caused by: org.quartz.JobPersistenceException: Couldn‘t obtain triggers for job: 不良的类型值 long : \x Caused by: org.quartz.JobPersistenceException: Couldn’t obtain triggers for job: 不良的类型值 long : \x。Caused by: org.postgresql.util.PSQLException: 不良的类型值 long : \x。 阅读详情
AI摘要

本文探讨了Quartz调度器在启动过程中遇到的错误,详细分析了由于触发器与cron触发器表数据不一致导致的问题,并提供了删除多余记录的解决方案。

2020-03-20 21:02:58  [Thread: localhost-startStop-1] org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1339) INFO - Quartz scheduler 'quartzScheduler' initialized from an externally provided properties instance.
2020-03-20 21:02:58  [Thread: localhost-startStop-1] org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1343) INFO - Quartz scheduler version: 2.2.1
2020-03-20 21:02:58  [Thread: localhost-startStop-1] org.quartz.core.QuartzScheduler.setJobFactory(QuartzScheduler.java:2311) INFO - JobFactory set to: org.springframework.scheduling.quartz.AdaptableJobFactory@39a60d59
2020-03-20 21:02:59  [Thread: localhost-startStop-1] org.quartz.impl.jdbcjobstore.JobStoreSupport.recoverJobs(JobStoreSupport.java:861) INFO - Freed 0 triggers from 'acquired' / 'blocked' state.
2020-03-20 21:02:59  [Thread: localhost-startStop-1]

启动工程时quartz报以下错误:

org.quartz.impl.jdbcjobstore.JobStoreSupport.recoverMisfiredJobs(JobStoreSupport.java:968) INFO - Handling 3 trigger(s) that missed their scheduled fire-time.
2020-03-20 21:02:59  [Thread: localhost-startStop-1] com.xxxxxxx.quartz.scheduler.QuartzManager.startJobs(QuartzManager.java:216) ERROR - Failure occured during job recovery.
org.quartz.SchedulerConfigException: Failure occured during job recovery. [See nested exception: org.quartz.JobPersistenceException: Couldn't retrieve trigger: No record found for selection of Trigger with key: 'G_QUALITY_14.G_QUALITY_14' and statement: SELECT * FROM qrtz_CRON_TRIGGERS WHERE SCHED_NAME = 'quartzScheduler' AND TRIGGER_NAME = ? AND TRIGGER_GROUP = ? [See nested exception: java.lang.IllegalStateException: No record found for selection of Trigger with key: 'G_QUALITY_14.G_QUALITY_14' and statement: SELECT * FROM qrtz_CRON_TRIGGERS WHERE SCHED_NAME = 'quartzScheduler' AND TRIGGER_NAME = ? AND TRIGGER_GROUP = ?]]
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.schedulerStarted(JobStoreSupport.java:692)
    at org.quartz.core.QuartzScheduler.start(QuartzScheduler.java:567)
    at org.quartz.impl.StdScheduler.start(StdScheduler.java:142)
    at com.xxxxxxx.quartz.scheduler.QuartzManager.startJobs(QuartzManager.java:214)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1694)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1633)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1562)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
    at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:461)
    at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:435)
    at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:559)
    at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:169)
    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
    at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:305)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1202)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4699)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5165)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1412)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1402)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

QRTZ_TRIGGERS表中有G_QUALITY_14这条记录,而QRTZ_CRON_TRIGGERS表中没有这条记录报错,将QRTZ_TRIGGERS表中的这条记录删掉即可

quartz数据不完整导致不调度并且报错Couldn‘t store trigger MisfireHandler: Error handling misfires: Couldn't store trigger '218111-TRIGGER' for '218111' job:The job (xx-JOBGROUP.218111) referenced by the trigger does not exist. org.quartz.JobPersistenceException: Couldn't store trigger '218111-TRIGGER' for '218111 阅读详情

相关推荐

避坑指南:SAP CO模块维护成本控制范围的5个常见错误及解决方法

本文深入剖析了SAP CO模块中维护成本控制范围时最易犯的5个常见错误,包括货币参数配置不当、标准层次结构缺失、财政年度变式不一致、功能激活遗漏及集成参数设置错误。重点针对事务码OKKP的配置,提供了详细的排查步骤与实战解决方案,帮助顾问有效规避陷阱,确保成本核算体系稳定运行。

stone的博客 233

quartz报错:Couldn‘t retrieve trigger: No record found for selection of Trigger with key—————————————

QRTZ_TRIGGERS表中有G_QUALITY_14这条记录,而QRTZ_CRON_TRIGGERS表中没有这条记录报错,将QRTZ_TRIGGERS表中的这条记录删掉即可

傲宇苍穹 4097

LMK04821时钟芯片SPI配置避坑指南:从寄存器读写到频率校准全流程

本文详细解析了LMK04821时钟芯片的SPI配置全流程,涵盖寄存器读写、频率校准及JESD204B系统设计中的关键技巧。通过实战案例和避坑指南,帮助工程师高效解决时钟输出异常、同步失败等常见问题,提升高速数据采集系统的时钟稳定性。

weixin_29172963的博客 159

项目启动时报定时任务错误——工作笔记

测试同学为了图方便把多个项目丢到一个tomcat的webapps目录下启动,有的项目启动成功有一个项目报了如下错误: Invocation of init method failed; nested exception is org.quartz.JobPersistenceException: Couldn’t retrieve trigger: No record found for sele...

大蟒蛇来了 1万+

CentOS7无外网环境下MySQL8.0完整离线部署指南

本文详细介绍了在CentOS7无外网环境下,如何通过MySQL8.0二进制包进行完整离线部署。指南涵盖了从环境准备、依赖安装、用户与目录创建,到数据库初始化、服务配置及远程访问设置的全过程,并提供了关键的避坑技巧,帮助企业运维人员在内网环境中高效、稳定地搭建MySQL数据库服务。

xxx12的博客 1029

手把手教你用STM32驱动SPL06-001气压传感器(附完整代码与避坑指南)

本文详细介绍了如何使用STM32驱动SPL06-001气压传感器,包括硬件连接、寄存器配置、驱动层实现和数据补偿算法。通过完整的代码示例和避坑指南,帮助开发者快速掌握SPL06传感器的应用技巧,提升嵌入式系统开发效率。

weixin_42552315的博客 290

项目启动时Quartz定时任务报错(已解决)

项目启动后,报如下错误: No record found for selection of Trigger with key: 'DEFAULT.syncTriggerBean' and statement: SELECT * FROM QRTZ_CRON_TRIGGERS WHERE SCHED_NAME = 'mapScheduler' AND TRIGGER_NAME = ? AND TRIGGER_GROUP = ? 根据错误提示,解决方案如下

围炉夜敲的博客 1万+

数电-基于FPGA的自动售货控制系统设计

本次数电的课程设计是设计一款基于FPGA的自动售货控制系统,因为手上暂时没有FPGA的板子,所以先采用proteus仿真进行设计,观察系统效果,等之后FPGA板子下发,再移到quartus上调试和下载。同样是自己第一次自主设计电路系统,可能在功能上不完整或者逻辑上有错误,大家多多包涵,欢迎沟通交流。

gg1067的博客 2289

SpringBoot启动报错Couldn‘t retrieve trigger: Table ‘xxx.QRTZ_TRIGGERS‘ doesn‘

SpringBoot启动报错Couldn't retrieve trigger: Table 'xxx.QRTZ_TRIGGERS' doesn'

panlupeng的博客 6126

【卫星语音通信】神经网络语音编解码算法:AudioDec

最新研究表明,通过深度学习模型对语音信号进行智能压缩与重建,可在12 kbps码率下实现48 kHz采样率的高保真语音还原,其主观音质评分(MOS)可达3.9分(满分4.27分),远超传统参数编码技术。这意味着未来卫星电话的通话质量有望达到CD级水准,而蜂窝网络的语音业务带宽需求可降低60%以上,为蜂窝和卫星网络中的大规模物联网语音交互铺平道路。它的诞生为神经音频编解码技术带来了一次重要升级,有助于让未来实时语音交互更流畅、更清晰,也让我们进一步体验到人工智能与音频信号处理结合所带来的创新可能性。

u011376987的博客 1472

stm32项目实战(1)光敏电阻的介绍和使用

文章目录前言一、光敏电阻介绍二、cubeMX配置三、代码说明总结 前言 本篇文章我们讲带大家了解光敏电阻的使用 一、光敏电阻介绍 下面是4线光敏电阻实物图 产品接线说明: 1、VCC 接电源正极 3.3-5V 2、GND 接电源负极 3、DO TTL 开关信号输出 (配置为输出模式) 4、AO 模拟信号输出(ADC采样通道) 光敏电阻主要用于检测周围的光照强度,光照强度发生变化那么ADC采样的值也会发送变化。 二、cubeMX配置 简单的配置我们就不多说了主要是ADC采样的配置 这里我采用的是ADC1通道

m0_49476241的博客 1万+

解決org.quartz.JobPersistenceException: Couldn't acquire next trigger: Couldn't retrieve trigger: null

解決org.quartz.JobPersistenceException: Couldn't acquire next trigger: Couldn't retrieve trigger: null org.quartz.JobPersistenceException: Couldn't acquire next trigger: Couldn't retrieve trigg

LWJdear的博客 1万+

把注释掉的代码删除掉:在 SAP ABAP 团队里打造可回溯、可测试、可演进的代码库

摘要 SAP ABAP项目中常见的"注释掉代码"反模式存在严重隐患:它增加代码噪音,制造虚假安全感,并可能引发安全和合规风险。Clean ABAP指南明确建议删除这类代码,理由包括: 版本控制系统已提供完整历史回溯能力 注释代码会误导开发者,增加理解成本 临时禁用需求应通过Feature Toggle实现 必须保留的参考代码应放入$TMP等隔离区域 团队应建立自动化检查机制,将"删除注释代码"纳入工程规范,确保代码库只表达当前有效的行为逻辑。在AI时代,可以利用工具辅

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 2449

Corg.quartz.JobPersistenceException: Couldn‘t retrieve trigger

项目场景: 提示:这里简述项目相关背景: 例如:项目场景:示例:通过蓝牙芯片(HC-05)与手机 APP 通信,每隔 5s 传输一批传感器数据(不是很大) 问题描述: 启动项目之前修改了路径,调整了位置导致报错。结果quartz就不认识 Caused by: org.quartz.JobPersistenceException: Couldn't retrieve trigger: io.renren.modules.job.enti 原因分析: 因为quartz在job_details中进行

qq_41358110的博客 3316

温度PID控制PLC程序

温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值

android 蓝牙通讯demo

android 下蓝牙通讯demo,实现了发现蓝牙,使能蓝牙,通过蓝牙发送消息。

Quartz Spring 报错!自动注解! Couldn't retrieve trigger: ORA-00942: 表或视图不存在

Couldn't retrieve trigger: ORA-00942: 表或视图不存在 Caused by: org.quartz.JobPersistenceException: Couldn't retrieve trigger: ORA-00942: 表或视图不存在  [See nested exception: java.sql.SQLSyntaxErrorExcept

天涯枫尘 8269

蓝牙模块HM-10手册

蓝牙模块HM-10手册,该手册对蓝牙模块HM-10进行了详细的介绍和使用方法以及一些AT指令。

处理quartz 异常 Couldn‘t retrieve trigger: No record found for selection of Trigger with key:

处理quartz 异常 Couldn't retrieve trigger: No record found for selection of Trigger with key:

p15097962069的博客 3863

老版QQ原生表情gif动态

这是老版的QQ表情,不过全是动态的的,Windows照片查看器是不会动的,可以右击用浏览器打开查看,再说一遍是老版的,只是分享给宁愿用老版也要动态的人。

Quartz Spring 报错!自动注解! Couldn't retrieve trigger: ORA-00942: 表或视图不存在

推荐:Spring配置Quartz出错解决ORA-00942:表或视图不存在 网上说把数据源的名字修改一下,还有一种方式:单独建一个spring配置文件,在里加一个属性: default-autowire="no"   Couldn't retrieve trigger: ORA-00942: 表或视图不存在 Caused by:  org.quartz.JobP

bxx_lucky的博客 1万+

Couldn't retrieve trigger: invalid stream header

定时任务报错:无法检索触发器:流标头无效。  2018-12-25 15:28:50.603 [QuartzScheduler_scheduler-NON_CLUSTERED_MisfireHandler] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore - Handling the first 1 tri...

yunxuantu的博客 8015

SpringBoot - 集成Quartz框架:Couldn‘t acquire next trigger: Couldn‘t retrieve trigger: 不良的类型值 long : \x

SpringBoot集成Quartz框架时报错:Couldn't acquire next trigger: Couldn't retrieve trigger: 不良的类型值 long : \x。

记录并分享 5382

quartz.JobPersistenceException: Couldn‘t retrieve trigger

文章浏览阅读1.9k次。结果quartz就不认识Caused by: org.quartz.JobPersistenceException: Couldn't retrieve trigger: io.renren.modules.job.enti原因分析:因为quartz在job_details中进行_org.quartz.jobpersistenceexception: couldn't retrieve trigger: bad value for。所以只要删除下面的表就行。删了下面这几个表就行。

Katharsis_2021的博客 1208

mysql 切换成postgresql 出错

org.postgresql.util.PSQLException: 不良的类型值 long : \x

TomotoJ的博客 3475

quartz mysql 异常_org.quartz.JobPersistenceException

运行quartz在MS SQL是出现异常,异常代码如下: org . quartz . JobPersistenceException : Couldn 't acquire next trigger: Couldn' t retrieve trigger : [ Microsoft ] [ SQLServer 2000 Driver for JDBC ] ResultSet can not re...

weixin_39618339的博客 2835
上一篇: 推荐一款MongoDB的客户端管理工具--nosqlbooster
下一篇: iframe父获取子页面的内容
qq_34412985
博客等级 码龄11年 143粉丝 983原创
评论 5
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值