Failed to check the status of the service com.taotao.service.ItemService.
2018-01-26 00:49
423 查看
项目中用dubbo发生:
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”关闭检查,比如,测试时,有些服务不关心,或者出现了循环依赖,必须有一方先启动。
转载来源 http://www.cnblogs.com/luojunwen/p/7305925.html
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.foo.BarService" check="false" /> 2、关闭所有服务的启动时检查:(没有提供者时报错) 写在定义服务消费者一方 <dubbo:consumer check="false" /> 3、关闭注册中心启动时检查:(注册订阅失败时报错) <dubbo:registry check="false" />
转载来源 http://www.cnblogs.com/luojunwen/p/7305925.html
相关文章推荐
- Failed to check the status of the service com.taotao.search.service.SearchItemSerivce. No provider a
- 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
- Failed to check the status of the service. No provider available for the service【已解决】
- java.lang.IllegalStateException: Failed to check the status of the service org.cdc.system.service.S
- dubbo异常:Failed to check the status of the service . No provider available for the service 解决
- the connection to the VMware USB Arbitration Service was unsuccessful.Please check the status of this service in the Microsogt M
- the connection to the VMware USB Arbitration Service was unsuccessful.Please check the status of thi
- Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- (springmvc)页面找不到静态资源文件Failed to load resource: the server responded with a status of 404 (Not Found)
- SprimgMVC:Failed to load resource: the server responded with a status of 406 (Not Acceptable)
- Failed to load resource: the server responded with a status of 404 (Not Foun
- Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
- springmvc Failed to load resource: the server responded with a status of 404 (Not Found)
- jquery:Failed to load resource: the server responded with a status of 404 (Not Found)
- Failed to load resource: the server responded with a status of 406 (Not Acceptable)
- 关于前台jsp页面Failed to load resource: the server responded with a status of 400 (Bad Request)
- Custom tool error: Failed to generate code for the service reference ××××××. Please check other erro
- ajax 报错 400 (Failed to load resource: the server responded with a status of 400 (Bad Request))
- Failed to load resource: the server responded with a status of 400 (Bad Request)