何方社区
  • -

200

67 网友分享了链接

quartz 表名应该大写还是小写

2020-08-16 06:58:51

是大写的,运行时报的错能证明

java.lang.IllegalStateException: Failed to execute CommandLineRunner
   at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:798)
   at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:779)
   at org.springframework.boot.SpringApplication.run(SpringApplication.java:322)
   at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237)
   at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
   at org.xingxj.AdminApplication.main(AdminApplication.java:22)
Caused by: org.xingxj.common.exception.MyException: org.quartz.impl.jdbcjobstore.LockException: Failure obtaining db row lock: Table 'started.QRTZ_LOCKS' doesn't exist [See nested exception: java.sql.SQLSyntaxErrorException: Table 'started.QRTZ_LOCKS' doesn't exist]
   at org.xingxj.modules.job.utils.ScheduleUtils.updateScheduleJob(ScheduleUtils.java:104)
   at org.xingxj.modules.job.init.JobCommandLineRunner.run(JobCommandLineRunner.java:35)
   at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:795)
   ... 5 common frames omitted
Caused by: org.quartz.impl.jdbcjobstore.LockException: Failure obtaining db row lock: Table 'started.QRTZ_LOCKS' doesn't exist
   at org.quartz.impl.jdbcjobstore.StdRowLockSemaphore.executeSQL(StdRowLockSemaphore.java:157)
   at org.quartz.impl.jdbcjobstore.DBSemaphore.obtainLock(DBSemaphore.java:113)
   at org.quartz.impl.jdbcjobstore.JobStoreCMT.executeInLock(JobStoreCMT.java:238)
   at org.quartz.impl.jdbcjobstore.JobStoreSupport.replaceTrigger(JobStoreSupport.java:1474)
   at org.quartz.core.QuartzScheduler.rescheduleJob(QuartzScheduler.java:1115)
   at org.quartz.impl.StdScheduler.rescheduleJob(StdScheduler.java:321)
   at org.xingxj.modules.job.utils.ScheduleUtils.updateScheduleJob(ScheduleUtils.java:96)
   ... 7 common frames omitted
Caused by: java.sql.SQLSyntaxErrorException: Table 'started.QRTZ_LOCKS' doesn't exist
   at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120)
   at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
   at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
   at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:953)
   at com.mysql.cj.jdbc.ClientPreparedStatement.executeQuery(ClientPreparedStatement.java:1003)
   at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_executeQuery(FilterChainImpl.java:3188)
   at com.alibaba.druid.wall.WallFilter.preparedStatement_executeQuery(WallFilter.java:641)
   at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_executeQuery(FilterChainImpl.java:3185)
   at com.alibaba.druid.filter.FilterEventAdapter.preparedStatement_executeQuery(FilterEventAdapter.java:465)
   at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_executeQuery(FilterChainImpl.java:3185)
   at com.alibaba.druid.proxy.jdbc.PreparedStatementProxyImpl.executeQuery(PreparedStatementProxyImpl.java:181)
   at com.alibaba.druid.pool.DruidPooledPreparedStatement.executeQuery(DruidPooledPreparedStatement.java:228)
   at org.quartz.impl.jdbcjobstore.StdRowLockSemaphore.executeSQL(StdRowLockSemaphore.java:96)
   ... 13 common frames omitted

据错可知 是大写的,在mysql 表名大小写区分是有这个问题

    文章最多点击量
  1. 劝学-先秦-荀子 0
  2. 随记 0
  3. MySQL8如何设置表名大小写不敏感? 1
  4. quartz 表名应该大写还是小写 0
  5. CentOS8下安装mysql8 10
  6. Nginx启动报错:could not open error log file: open() "/usr/local/nginx/logs/error.log" failed 3
  7. mysql修改密码 4
  8. mysql如果没有就插入,如果有就更新 1
  9. BIO、NIO 和 AIO 的区别? 0
  10. 记一次linux ssh密钥登陆失败的解决方式 2
  11. 搭建Git服务器 1
  12. 如何在CentOS中开启Swap 5
  13. 《失控》图书推荐 3
  14. Netty 的高性能表现在哪些方面? 0
  15. Netty 的零拷贝实现? 3
  16. 如何选择序列化协议? 1
  17. 了解哪几种序列化协议? 1
  18. Netty 的线程模型? 0
  19. Netty 的特点? 4
  20. NIO 的组成? 0
  21. XssFilter Jsoup 富文本过滤后 @RequestBody 解析json 失败 4
  22. 不能反向序列化 0
  23. 网站待优化 0
  24. Kafka面试题 2
  25. nacos配置管理 4
  26. 前端js防抖 3
  27. Docker学习0001 40
  28. 待整理todo 1
  29. shell重启java应用 0
  30. 调整 ubuntu swap 大小 2
使用本站请开启cookie和JavaScript