qinxuewu / boot-actuator

基于SpringBoot2.0 实现的jvm远程监工图形化工具,可以同时监控多个web应用,支持远程监控
MIT License
230 stars 108 forks source link

为啥一堆错误😂 #2

Open DaiYuanchuan opened 5 years ago

DaiYuanchuan commented 5 years ago

莫名其妙的 就是 一堆错误 , 先从 定时任务 quartz 包 , 报 org.springframework.scheduling.quartz.QuartzJobBean 这个包没有 , 引入 spring-context-support 错误消失 , 后来就是 MySQL 报错 , 说好的支持 Linux 呢 。。。 错误 Table 'actuator.QRTZ_TRIGGERS' doesn't exist
为啥是大写的 。。。Liunx 的 MySQL 默认区分大小写 然后 又是 Couldn't retrieve trigger:No record found for selection of Trigger with key: 'DEFAULT.TASK_4' and statement 。。。。。。。。。。 不说了 , 调 BUG 去了

qinxuewu commented 5 years ago

(⊙o⊙)… 我的数据库默表都是小写的了。 这个错误就是你的数据区分大小写了。定时任务的表结构都是 quartz自带的

qinxuewu commented 5 years ago

spring-context-support 这个包 我项目里好像没有吧

DaiYuanchuan commented 5 years ago

是的 这个包你没有 , 然后我就报错,说找不到QuartzJobBean , 不止这些呢 ,还有一堆 。。。。 mail.html 错误 Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: oshi/SystemInfo An error happened during template parsing (template: "class path resource [templates/main.html]") 然后就一直是 执行定时任务失败(ScheduleJob.java:58) 。。。。 什么任务ID:6 还有什么 java.lang.NullPointerException(ThreadService.java:35)。。。。。

DaiYuanchuan commented 5 years ago

兄弟 , 你这个到处都是缺少 jar 包的啊 , 全部都是 要么 jar 冲突 , 要么 缺少 jar , 我光找 对应的 jar 就找了好久。。。。。。😂

qinxuewu commented 5 years ago

我本地下载下来 运行启动不少jar包的啊

DaiYuanchuan commented 5 years ago

com.github.oshi 这个没有

qinxuewu commented 5 years ago

修复jar包缺失问题 增加大写的定时任务表结构

DaiYuanchuan commented 5 years ago

还有个问题,就是SQL里面的定时任务,经常是运行时出错,任务ID5 ,任务ID6