冯运山 2023-04-13 22:34 采纳率: 80%
浏览 25
已结题

Dubbo在启动的时候遇到的问题

在学习Dubbo的时候运行出现这中情况:org.apache.curator.CuratorConnectionLossException: KeeperErrorCode = ConnectionLoss
后面的是这个,关键是我也不知道这是怎么回事,百度来百度去也没有结果。


[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:29 min
[INFO] Finished at: 2023-04-13T22:21:34+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.2.RELEASE:run (default-cli) on project dubbo-admin-server: An exception occurred while running. null: InvocationTargetException: Error creating bean with name 'accessesController' defined in file [D:\dubbo\dubbo-admin\dubbo-admin-server\target\classes\org\apache\dubbo\admin\controller\AccessesController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'routeServiceImpl': Unsatisfied dependency expressed through field 'registry'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getRegistry' defined in class path resource [org/apache/dubbo/admin/config/ConfigCenter.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.dubbo.registry.Registry]: Factory method 'getRegistry' threw exception; nested exception is java.lang.IllegalStateException: zookeeper not connected -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  • 写回答

1条回答 默认 最新

  • 社区专家-Monster-XH 2023-04-13 22:38
    关注

    基于Monster 组和GPT的调写:
    这个错误提示表明在运行Dubbo的过程中,发生了连接断开的异常(CuratorConnectionLossException),可能是因为与Zookeeper的连接丢失(KeeperErrorCode = ConnectionLoss)。可能的原因包括:

    Zookeeper服务没有启动或已停止,导致Dubbo无法连接到Zookeeper;
    网络连接不稳定或存在丢包现象,导致Dubbo与Zookeeper之间的连接中断;
    Dubbo配置文件中的Zookeeper地址配置错误,无法连接到正确的Zookeeper地址。
    

    建议检查Dubbo配置文件中Zookeeper地址配置是否正确,并确认Zookeeper服务已经启动。如果以上都没有问题,可以考虑检查网络连接稳定性,或者增加重试机制来应对连接断开的情况。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 4月22日
  • 已采纳回答 4月14日
  • 创建了问题 4月13日

悬赏问题

  • ¥15 对于squad数据集的基于bert模型的微调
  • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
  • ¥20 steam下载游戏占用内存
  • ¥15 CST保存项目时失败
  • ¥15 树莓派5怎么用camera module 3啊
  • ¥20 java在应用程序里获取不到扬声器设备
  • ¥15 echarts动画效果的问题,请帮我添加一个动画。不要机器人回答。
  • ¥15 Attention is all you need 的代码运行
  • ¥15 一个服务器已经有一个系统了如果用usb再装一个系统,原来的系统会被覆盖掉吗
  • ¥15 使用esm_msa1_t12_100M_UR50S蛋白质语言模型进行零样本预测时,终端显示出了sequence handled的进度条,但是并不出结果就自动终止回到命令提示行了是怎么回事: