showcase的初始化时是不是少一张表?

发布于 2021-11-12 15:18:30 字数 5647 浏览 804 评论 6

启动报错

Caused by: org.quartz.JobPersistenceException: Couldn't retrieve trigger: Table "QRTZ_TRIGGERS" not found; SQL statement:

SELECT * FROM QRTZ_TRIGGERS WHERE SCHED_NAME = 'clusterQuartzScheduler' AND TRIGGER_NAME = ? AND TRIGGER_GROUP = ? [42102-164] [See nested exception: org.h2.jdbc.JdbcSQLException: Table "QRTZ_TRIGGERS" not found; SQL statement:

SELECT * FROM QRTZ_TRIGGERS WHERE SCHED_NAME = 'clusterQuartzScheduler' AND TRIGGER_NAME = ? AND TRIGGER_GROUP = ? [42102-164]

at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)

at org.h2.message.DbException.get(DbException.java:169)

at org.h2.message.DbException.get(DbException.java:146)

at org.h2.command.Parser.readTableOrView(Parser.java:4753)

at org.h2.command.Parser.readTableFilter(Parser.java:1080)

at org.h2.command.Parser.parseSelectSimpleFromPart(Parser.java:1686)

at org.h2.command.Parser.parseSelectSimple(Parser.java:1793)

at org.h2.command.Parser.parseSelectSub(Parser.java:1680)

at org.h2.command.Parser.parseSelectUnion(Parser.java:1523)

at org.h2.command.Parser.parseSelect(Parser.java:1511)

at org.h2.command.Parser.parsePrepared(Parser.java:405)

at org.h2.command.Parser.parse(Parser.java:279)

at org.h2.command.Parser.parse(Parser.java:251)

at org.h2.command.Parser.prepareCommand(Parser.java:217)

at org.h2.engine.Session.prepareLocal(Session.java:415)

at org.h2.server.TcpServerThread.process(TcpServerThread.java:250)

at org.h2.server.TcpServerThread.run(TcpServerThread.java:146)

at java.lang.Thread.run(Thread.java:619)

]

at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveTrigger(JobStoreSupport.java:1524)

at org.quartz.impl.jdbcjobstore.JobStoreSupport$12.execute(JobStoreSupport.java:1512)

at org.quartz.impl.jdbcjobstore.JobStoreCMT.executeInLock(JobStoreCMT.java:245)

at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeWithoutLock(JobStoreSupport.java:3715)

at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveTrigger(JobStoreSupport.java:1509)

at org.quartz.core.QuartzScheduler.getTrigger(QuartzScheduler.java:1476)

at org.quartz.impl.StdScheduler.getTrigger(StdScheduler.java:499)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191)

... 31 more

Caused by: org.h2.jdbc.JdbcSQLException: Table "QRTZ_TRIGGERS" not found; SQL statement:

SELECT * FROM QRTZ_TRIGGERS WHERE SCHED_NAME = 'clusterQuartzScheduler' AND TRIGGER_NAME = ? AND TRIGGER_GROUP = ? [42102-164]

at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)

at org.h2.message.DbException.get(DbException.java:169)

at org.h2.message.DbException.get(DbException.java:146)

at org.h2.command.Parser.readTableOrView(Parser.java:4753)

at org.h2.command.Parser.readTableFilter(Parser.java:1080)

at org.h2.command.Parser.parseSelectSimpleFromPart(Parser.java:1686)

at org.h2.command.Parser.parseSelectSimple(Parser.java:1793)

at org.h2.command.Parser.parseSelectSub(Parser.java:1680)

at org.h2.command.Parser.parseSelectUnion(Parser.java:1523)

at org.h2.command.Parser.parseSelect(Parser.java:1511)

at org.h2.command.Parser.parsePrepared(Parser.java:405)

at org.h2.command.Parser.parse(Parser.java:279)

at org.h2.command.Parser.parse(Parser.java:251)

at org.h2.command.Parser.prepareCommand(Parser.java:217)

at org.h2.engine.Session.prepareLocal(Session.java:415)

at org.h2.server.TcpServerThread.process(TcpServerThread.java:250)

at org.h2.server.TcpServerThread.run(TcpServerThread.java:146)

at java.lang.Thread.run(Thread.java:619)

 

at org.h2.engine.SessionRemote.done(SessionRemote.java:565)

at org.h2.command.CommandRemote.prepare(CommandRemote.java:67)

at org.h2.command.CommandRemote.<init>(CommandRemote.java:46)

at org.h2.engine.SessionRemote.prepareCommand(SessionRemote.java:437)

at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1121)

at org.h2.jdbc.JdbcPreparedStatement.<init>(JdbcPreparedStatement.java:71)

at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:267)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.quartz.impl.jdbcjobstore.AttributeRestoringConnectionInvocationHandler.invoke(AttributeRestoringConnectionInvocationHandler.java:73)

at $Proxy92.prepareStatement(Unknown Source)

at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.selectTrigger(StdJDBCDelegate.java:1741)

at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveTrigger(JobStoreSupport.java:1520)

... 42 more


如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

琴流音 2021-11-18 06:59:42

RC1版的确忘记了......SNAPSHOT版里面有。建议大家多点直接Pull代码,有了Jenkins后,现在代码质量还挺不错的。

狠疯拽 2021-11-18 03:31:12

在/showcase/pom.xml文件中,没有找到初始化quartz.sql的指令。

平生欢 2021-11-18 01:25:46

quickstart showcase是不行的 我是在application*.xml文件中把quartz相关servcie注解掉了,难道还需要手工执行
refreshdb.bat?

终止放荡 2021-11-17 13:22:40

在文件examplesshowcasesrcmainresourcesapplication.properties中jdbc.url的数据源不同,执行sql语句时需要注意不同的数据源信息

疑心病 2021-11-15 12:43:19

sql examplesshowcasesrcmainresourcessqlh2quartz.sql 里是有这个QRTZ_TRIGGERS的哦,确定开着H2后,执行了那个refreshdb.bat了么?

夜无邪 2021-11-14 18:42:00

我启动Jetty的时候也碰到了这个问题,我把 相关的sql examplesshowcasesrcmainresourcessqlh2quartz.sql

examplesshowcasesrcmainresourcessqlh2schema.sql

在h2上手的执行了下,启动Jetty的时候也还是碰到类似问题,看报错的信息好像是表没有,但查询H2的时候也有,不知是啥问题?

error信息h2查询结果

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文