问题描述:我们在整合Spring Cloud + Spring Cloud Alibaba + Spring Boot 开发,使用nacos作为服务的注册配置中心,同时整合spring-cloud-starter-dubbo做RPC旧接口调用。使用dubbo消费者启动报:

2021-04-18 17:58:56.500 ERROR 73780 --- [           main] .a.d.m.s.InMemoryWritableMetadataService :  [DUBBO] publishProvider interfaceName is empty . providerUrl: consumer://10.3.25.142/com.alibaba.cloud.dubbo.service.DubboMetadataService?application=51dubbo_consumer&check=false&dubbo=2.0.2&generic=true&group=51stockhouse-dubbo_provider&interface=com.alibaba.cloud.dubbo.service.DubboMetadataService&pid=73780&qos.enable=false&release=2.7.6&side=consumer&sticky=false&timestamp=1618739935954&version=1.0.0, dubbo version: 2.7.6, current host: 10.3.25.142

同时调用服务提供者也报同样的错误。

问题分析:Spring Cloud + Spring Cloud Alibaba + Spring Boot整合后版本兼容性。为了保证版本正常兼容,我们在Alibaba官方文档:https://github.com/alibaba/spring-cloud-alibaba/wiki/%E7%89%88%E6%9C%AC%E8%AF%B4%E6%98%8E 找到了毕业版本的推荐关系

于是,我服务版本统一设定为:Spring Cloud Greenwich.SR6+ Spring Cloud Alibaba 2.1.2.RELEASE  + Spring Boot 2.1.13.RELEASE,但启动后还是会报

[DUBBO] publishProvider interfaceName is empty .

解决方法:SpringCloud Greenwich版本过高!最终使用的版本组合为:Spring Cloud Greenwich.SR2+ Spring Cloud Alibaba 2.1.0.RELEASE  + Spring Boot 2.1.13.RELEASE 由此看来,我们还是要遵循官方推荐版本组合,同时避免使用高版本!!!

©著作权归作者所有:来自51CTO博客作者茕茕木偶的原创作品,如需转载,请注明出处,否则将追究法律责任

每一份赞赏源于懂得

赞赏

0人进行了赞赏支持

更多相关文章

  1. NAO机器人py文件植入
  2. NAO机器人opencv版本问题解决
  3. 苹果A10及以后版本芯片KTRR原理及脆弱性分析
  4. jira如何部署
  5. Git与GitLab
  6. Git与SVN对比
  7. 用好Git 和 SVN,轻松驾驭版本管理
  8. SVN服务的部署及使用
  9. Gitlab安装部署及基础操作

随机推荐

  1. 动画 :相识数组与链表两兄弟
  2. 【工具】历史文章分类汇总-V4 | Python数
  3. 偷学Python二十六|OS.path模块的详细使用
  4. 51CTO学员---沿着前人脚步追寻pmp的5个A
  5. 面试必知必会|理解堆和堆排序
  6. Numpy中Meshgrid函数介绍及2种应用场景
  7. 二叉树及其四大遍历
  8. 大学三年,写下 “万字” 兼职经历,这就是你
  9. 给Python代码加上酷炫进度条的几种姿势
  10. 面试二叉树看这 11 个就够了~