记录一次xxlJob升级版本导致的 xxl-job remoting error(Connection reset)

XXL-JOB应运维需求,从2.2.0 升级到2.5.0版本,版本更新完成之后,调度器调度失败,每次都报错 xxl-job remoting error(Connection reset),查询了各种文档未查询出结果。

  后来在本地启动应用时,突然发现控制台打印了一行如下信息:   

 xxl-job remoting server start success, nettype = class com.xxl.job.core.server.EmbedServer, port = 9996

 突发奇想是不是 netty的问题呢,于是查看了pom文件的netty引用:

image

 发现 zookeeper 3.7 引用的版本过高 覆盖了 xxl-job 中的netty版本,于是排除掉了 zookeeper相关的netty引用:

image

 

再次启动,发现不在输出日志:

 xxl-job remoting server start success, nettype = class com.xxl.job.core.server.EmbedServer, port = 9996
于是执行调度任务,成功!!!

 

posted @ 2025-12-08 11:38  Johnson_wang  阅读(36)  评论(0)    收藏  举报