整合xxl-job后,项目启动报 ERROR c.x.job.core.executor.XxlJobExecutor - null
Posted mry6
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了整合xxl-job后,项目启动报 ERROR c.x.job.core.executor.XxlJobExecutor - null相关的知识,希望对你有一定的参考价值。
错误内容
项目集成xxl-job-core( 版本号:2.2.0 )后,项目启动时打印下面异常信息:
19:54:37.897 logback [main] INFO c.e.demo.ChahuashiServiceApplication - Started ChahuashiServiceApplication in 7.98 seconds (JVM running for 9.947)
19:54:47.692 logback [SpringContextShutdownHook] ERROR c.x.job.core.executor.XxlJobExecutor - null
java.lang.NullPointerException: null
at com.xxl.job.core.thread.ExecutorRegistryThread.toStop(ExecutorRegistryThread.java:117)
at com.xxl.job.core.server.EmbedServer.stopRegistry(EmbedServer.java:262)
at com.xxl.job.core.server.EmbedServer.stop(EmbedServer.java:124)
at com.xxl.job.core.executor.XxlJobExecutor.stopEmbedServer(XxlJobExecutor.java:158)
at com.xxl.job.core.executor.XxlJobExecutor.destroy(XxlJobExecutor.java:85)
at com.xxl.job.core.executor.impl.XxlJobSpringExecutor.destroy(XxlJobSpringExecutor.java:55)
at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:258)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:579)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:551)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:1089)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:512)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:1082)
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1061)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1030)
at org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:949)
19:54:47.696 logback [xxl-job, executor JobLogFileCleanThread] INFO c.x.j.c.thread.JobLogFileCleanThread - >>>>>>>>>>> xxl-job, executor JobLogFileCleanThread thread destory.
19:54:47.696 logback [xxl-job, executor TriggerCallbackThread] INFO c.x.j.c.thread.TriggerCallbackThread - >>>>>>>>>>> xxl-job, executor callback thread destory.
19:54:47.697 logback [Thread-80] INFO c.x.j.c.thread.TriggerCallbackThread - >>>>>>>>>>> xxl-job, executor retry callback thread destory.
Disconnected from the target VM, address: '127.0.0.1:54195', transport: 'socket'
+1 0-1 0
解决方案
xxl-job-core的版本修改成2.3.0版本或以上。
<dependency>
<groupId>com.xuxueli</groupId>
<artifactId>xxl-job-core</artifactId>
<version>2.3.0</version>
</dependency>
以上是关于整合xxl-job后,项目启动报 ERROR c.x.job.core.executor.XxlJobExecutor - null的主要内容,如果未能解决你的问题,请参考以下文章
Spring Boot整合Elasticsearch启动报错
升级code11.3后遇到React Native启动报错的问题 getCurrentAppState:error 和 objectAtIndexedSubscript: 的解决方案
node本地服务启动报Error: listen EADDRINUSE ,80端口被占用解决方法
启动项目报错:502 Server dropped connection The following error occurred while trying to access http://loc