【Dubbo】no provider available for the service错误解决方案
来源:互联网 发布:杜兰特新秀体测时数据 编辑:程序博客网 时间:2024/05/22 12:07
在分布式项目中用Dubbo发生No provider available for the service错误解决方案:
Failed to check the status of the service com.taotao.service.ItemService. No provider available for the service
原因:
Dubbo默认(缺省)会在启动时检查依赖的服务是否可用,不可用时会抛出异常,阻止Spring初始化完成,以便上线时,能及早发现问题,默认check=true。
如果你的Spring容器是懒加载的,或者通过API编程延迟引用服务,请关闭check,否则服务临时不可用时,会抛出异常,拿到null引用,如果check=false,总是会返回引用,当服务恢复时,能自动连上。
可以通过check=”false”关闭检查,比如,测试时,有些服务不关心,或者出现了循环依赖,必须有一方先启动。
1、关闭某个服务的启动时检查:(没有提供者时报错)<dubbo:reference interface="com.taotao.ItemService" check="false" />2、关闭所有服务的启动时检查:(没有提供者时报错) 写在定义服务消费者一方<dubbo:consumer check="false" />3、关闭注册中心启动时检查:(注册订阅失败时报错)<dubbo:registry check="false" />
阅读全文
0 0
- 【Dubbo】no provider available for the service错误解决方案
- Dubbo错误No provider available for the service
- 有时候出现No provider available for the service dubbo错误
- Dubbo错误:No provider available for the service
- Dubbo:No provider available for the service
- Dubbo中No provider available for the service异常
- dubbo实战---No provider available for the service
- dubbo没有服务提供者错误 No provider available for the service
- Dubbo: Failed to check the status of the service . No provider available for the service
- Dubbo client 启动报错:No provider available for the service use dubbo version 2.5.3
- dubbo启动消费者报错:No provider available for the service
- dubbo+zookeeper与提供者、消费者之间端口通信问题(No provider available for the service)
- Dubbo学习笔记:No provider available for the service ...异常问题的解决
- dubbo异常:Failed to check the status of the service . No provider available for the service 解决
- dubbo异常:Failed to check the status of the service . No provider available for the service 解决
- No provider available from registry 127.0.0.1:2181 for service com.focussend.email.service.EdmTaskS
- eclipse调试错误No source available for "_dl_debug_state() 解决方案
- 关于Failed to check the status of the service com.taotao.service.ItemService. No provider available fo
- Mybatis基础---配置文件
- 我的博客即将入驻“云栖社区”,诚邀技术同仁一同入驻。
- 大文件切割工具
- 等比数列求和+逆元——算
- keras 提高 GPU利用率
- 【Dubbo】no provider available for the service错误解决方案
- Linux查看日志命令
- Vmware tools安装
- WEB前端面试题集锦1
- 近期阅读记录
- ubuntu下配置和使用github
- 上拉刷新和下拉刷新的实现
- 初识数组
- xilinx fpga学习笔记7:实现属性参数的功能