Failed to check the status of the service. No provider available for the service【已解决】
关于Failed to check the status of the service com.******.service.ItemService. No provider available for the service
项目中用dubbo发生:
Failed to check the status of the service com.******.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.test.UserService" check="false" />
2、关闭所有服务的启动时检查:(没有提供者时报错) 写在定义服务消费者一方
<dubbo:consumer check="false" />
3、关闭注册中心启动时检查:(注册订阅失败时报错)
<dubbo:registry check="false" />
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 from问题解决
问题描述: Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.serv ...
- 关于Failed to check the status of the service com.xxx.service.ItemService. No provider available.....
项目中用dubbo发生: Failed to check the status of the service com.test.service.ItemService. No provider ava ...
- HFSS安装提示failed to check out license during initialization,怎么解决?
HFSS安装后打开文件提示 failed to check out license during initialization cannot connect to license server(FLE ...
- Mac android studio升级时提示 :Connection failed. Please check your network connection .
1>>Mac 下Android Studio check update 2>>之后会出现 Connection failed. Please check your netwo ...
- dubbo+zookeeper与提供者、消费者之间端口通信问题(No provider available for the service)
一.异常信息分析 Failed to check the status of the service com.sihai.service.ItemService. No provider availa ...
- 【Dubbo】no provider available for the service错误解决方案
在分布式项目中用Dubbo发生No provider available for the service错误解决方案: Failed to check the status of the servic ...
- kudu集群Tablet Server异常:Check failed: _s.ok() Bad status: Service unavailable: Cannot initialize clock
背景: CDH 6.3.1集群上kudu实例Tablet Server异常无法启动.根据报错信息提示时钟同步问题无法启动Check failed: _s.ok() Bad status: Servic ...
- 已解决:Job for docker.service failed because the control process exited with error code. See “systemctl
1.问题描述 Docker宿主机重启后,再次执行systemctl start docker命令时报如下错误: [root@k8s-node02 docker]# systemctl start do ...
- nfs服务启动失败:Failed to start NFS status monitor for NFSv2/3 locking..
今天碰到个问题,服务器重启后,nfs服务就启动不了了,关闭都关不了.查看系统日志报下面的错: Aug 10 17:08:53 prod-r3-slt-s-01 systemd: Started Pre ...
最新文章
- php线程视频教程,通俗易懂的php多线程解决方案
- Python--一些重要的小tips【持续更新】
- 重启redis命令_redis系列之——数据持久化(RDB和AOF)
- Codevs 3269 混合背包
- 解决数据库报唯一性约束错误的实践
- honeywell Xenon 1900 usb
- 完整性校验用到常见的算法_文件完整性校验
- windows提升效率神器
- 记一次拉去代码失败的解决过程Permission denied, please try again. git@code.odrcloud.cn: Permission denied
- 独立游戏开发日志:2021年2月14日 斜面攀爬
- 怎么选型企业客户管理软件?看看别人是怎么做的
- Single Round Match 506 Round 1 - Division I, Level Two SlimeXGrandSlimeAuto
- Spring Cloud之微服务之间相互调用、如何让一个微服务调用另外一个微服务
- Pixhawk---sdlog2应用详解
- Android记账系统可行性分析,毕业设计论文-基于安卓的大学生记账管理系统的设计与实现.doc...
- 5G取代光纤宽带,有可能吗?
- 2023最新SSM计算机毕业设计选题大全(附源码+LW)之java洁强汽车美容nq941
- vue.js鼠标移入变换样式,鼠标移出去除样式(active)实现方法
- python统计字母出现次数代码用while_py_while循环及基本运算符
- ENVI实验教程(5) 实验五、遥感图像增强
热门文章
- vm虚拟机输入法_VM虚拟机中fedora28 无法使用中文输入法问题
- HDU-4556-Stern-Brocot Tree(欧拉函数)
- 各种HIC处理数据之间的相互转化
- RAW怎么转为JPG?这些转换技巧值得收藏
- java sql 违反协议_SQLException:违反协议。Oracle JDBC驱动程序问题
- 有道云笔记免费使用视图中背景纸张
- Odoo中使用的数据关系
- 数据分析:大数据时代的必备技能之EXCEL
- 电子计算机进行会计核算 其会计,1. 使用电子计算机进行会计核算,其软件与其生成会计 ….doc...
- 炫酷按钮《html》