Failed to check the status of the service com.test.project.DemoService. No provider available for th

DUBBO 报错 Failed to check the status of the service 不知道为什么消费者不能调用,报错如下: Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ISerivceApi': FactoryBean threw exception on object creation; 阅读详情

此文章特此记录写代码时犯的最低级的错误

问题描述:

今天使用dubbo时报错,总是显示消费者无法找到服务提供者的报错情况

 这条日志信息表明 Dubbo 消费者在尝试引用服务 com.yupi.project.DemoService 时遇到了问题,具体表现为找不到任何可用的服务提供者

  • Dubbo Module[1.1.1] refer catch error:表示 Dubbo 模块在尝试引用服务时捕获到了错误。
  • Dubbo Module[1.1.1] start failed:表示 Dubbo 模块启动失败,具体原因是没有找到可用的服务提供者。
  • 具体错误信息:

    • java.lang.IllegalStateException: Failed to check the status of the service com.yupi.project.DemoService:表示在检查服务状态时出现了非法状态异常。
    • No provider available for the service com.yupi.project.DemoService:表示没有找到任何可用的服务提供者。
2024-09-05 18:06:46.102 ERROR 35568 --- [  restartedMain] o.a.d.c.deploy.DefaultModuleDeployer     :  [DUBBO] Dubbo Module[1.1.1] refer catch error., dubbo version: 3.0.9, current host: 10.24.5.125
2024-09-05 18:06:46.102 ERROR 35568 --- [  restartedMain] o.a.d.c.deploy.DefaultModuleDeployer     :  [DUBBO] Dubbo Module[1.1.1] start failed: java.lang.IllegalStateException: Failed to check the status of the service com.yupi.project.DemoService. No provider available for the service com.yupi.project.DemoService from the url consumer://10.24.5.125/com.yupi.project.DemoService?application=dubbo-springboot-demo-provider&background=false&dubbo=2.0.2&interface=com.yupi.project.DemoService&methods=sayHello,sayHelloAsync,sayHello2&pid=35568&register.ip=10.24.5.125&release=3.0.9&side=consumer&sticky=false&timestamp=1725530805868 to the consumer 10.24.5.125 use dubbo version 3.0.9, dubbo version: 3.0.9, current host: 10.24.5.125
  1. 日志内容:

    • Ignore empty notify urls:表示 Dubbo 消费者收到了空的订阅结果,即没有找到任何提供者。
    • for subscribe url:提供了订阅 URL 的详细信息,其中包含了服务名、应用名、接口名以及其他一些 Dubbo 配置参数。
2024-09-05 18:06:45.879  WARN 35568 --- [  restartedMain] o.a.dubbo.registry.nacos.NacosRegistry   :  [DUBBO] Ignore empty notify urls for subscribe url consumer://10.24.5.125/com.yupi.project.DemoService?application=dubbo-springboot-demo-provider&background=false&category=providers,configurators,routers&dubbo=2.0.2&interface=com.yupi.project.DemoService&methods=sayHello,sayHelloAsync,sayHello2&pid=35568&release=3.0.9&side=consumer&sticky=false&timestamp=1725530805868, dubbo version: 3.0.9, current host: 10.24.5.125

 配置检查:

1. 服务提供者:

这是我 服务提供者的配置

dubbo:
  application:
    name: dubbo-springboot-demo-provider
  protocol:
    name: dubbo
    port: -1
  registry:
    id: nacos-registry
    address: nacos://localhost:8848

启动服务和nacos后,访问 http://localhost:8848/nacos  ,能看到服务以及注册上来了

 2. 服务消费者:

当然启动类也加了@EnbaleDubbo注解

解决:

其实问题很简单,只是我当天智商不在线了,因此记录一下丢脸时刻.....

就因为少建了一个“包”,所以报了错,服务提供者和服务消费者的路径必须一样。

 

 添加后就能运行了

WRF和WPS模型在Ubuntu系统上的安装与常见问题解决指南 本文详细介绍了在Ubuntu系统上安装WRF和WPS模型的完整教程,涵盖系统环境配置、依赖库安装、源代码编译以及常见问题的解决方案。重点解决了WPS编译中intmath.f文件的修改、环境变量设置和编译器兼容性等关键难点,帮助用户高效部署气象研究与预报模型。 阅读详情

相关推荐

OnePlus救砖指南:线刷包与OTA全量包实战解析

本文详细解析了OnePlus手机救砖的两种核心方法:线刷包与OTA全量包。针对手机变砖的不同状况(如黑屏、能进Recovery等),文章提供了清晰的判断标准和对应的实战操作指南。重点阐述了线刷包作为终极救砖手段的底层原理与详细步骤,并对比了OTA全量包作为温和修复方案的使用场景与卡刷流程,旨在帮助用户安全、有效地恢复手机系统。

weixin_28312391的博客 1324

java.lang.IllegalStateException: Failed to check the status of the service 的解决办法

问题概述 这个问题是在分布式微服务开发过程中遇到的,其中主要使用的框架包括: 分布式应用程序协调服务 > zookeeper 资源调度和治理中心的管理工具 > dubbo 在进行远程调用其它程序的接口时,一直报错,并提示 “Failed to check the status of the service ”未能检查服务的状态,接口调用如下: Url地址: zook...

Spring Boot-Common On With You 2万+

如何用Hugo Stack主题打造极简技术博客?3个必改配置与5个高级美化技巧

本文详细解析了如何深度定制Hugo Stack主题,打造个性化技术博客。文章提供了3个必改配置与5个高级美化技巧,涵盖字体美学、布局重构、代码块视觉强化及细节打磨,帮助开发者超越基础部署,实现从功能到美学的进阶,提升博客质感与用户体验。

carrot的博客 568

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 这个问题 ,dubboadmin上边看服务正常启动 ,报错信息如下: Exception in thread “main” org.springframework.beans.factory.BeanCreationE...

厉兵秣码 8263

手把手教你用ROS2 Humble给PX4无人机写个“画圆”程序:从C++代码到Gazebo仿真全流程

本文详细介绍了如何使用ROS2 Humble和PX4飞控实现无人机圆形轨迹控制,涵盖从环境配置、Gazebo仿真到C++代码实现的完整流程。通过实战教程,读者将掌握轨迹跟踪仿真的核心技术,包括ROS2与PX4的通信接口、圆形轨迹算法设计及Gazebo仿真调试技巧。

weixin_29056781的博客 257

基于FFT的阵列方向图快速计算公式推导

因为自己毕设涉及到阵列方向图综合相关知识,最近阅读了关于方向图综合的相关文献,就其中关于使用FFT计算阵列方向图的方法进行了公式推导。 简介: 自从1965年Colley-Tukey发表快速傅里叶变换[1]论文以来,FFT在许多科学技术领域获得了广泛和成功的应用。在阵列信号处理与雷达信号处理领域,随着科技的发展,对于电尺寸较大的相控阵天线,使用公式按照级数求和计算天线阵列方向图的方法效率甚低,...

qq_38151438的博客 4292

关于启动dubbo服务时Failed to check the status of the service x.x.x.x.xApi. 错误

具体报错如下 Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.tanhua.dubbo.api.UserInfoApi. No provider available for the service com.tanhua.dubbo.api.UserInfoApi from the url spring-cloud://localhost:9090/org.apache.dub

weixin_47900124的博客 3325

车载以太网-ARP 动态 静态

车载以太网-ARP 动态 静态

天赐好车的博客 410

dubbo消费者启动报Failed to check the status of the service

在注册中心找不到对应的服务 java.lang.IllegalStateException: Failed to check the status of the service com.pinyougou.sellergoods.service.BrandService. No provider available for the service com.pinyougou.sellergood...

jiejiaohupo的博客 2万+

【Clickhouse】Cannot allocate block number in Zookeeper write prefix view location

我有一个问题,我CK集群跑批的时候,replicated表变成只读的了下面是CK的报错和当时ZK的日志。下面是zk报错开始 我认为是写入的时候,压力太大,ZK扛不住了,就按照博客里的建议优化了ZK的参数,现在偶尔还会只读,zk报错都是图里的那种clickhouse的集群是5分片的集群,数据量比较大。每小时批量一次,每次2-10W条数据,字段的话,不到200个字段,使用的 jdbc sink写入。

九师兄 836

XSS漏洞之PDF生成:从XSS到服务端任意文件读取

XSS是最为常见的Web漏洞之一,多年来连续入选OWASP TOP10,相信大家都耳熟能详。 它是一种代码注入类的攻击,是一种客户端侧的攻击,攻击者通过在Web应用中注入恶意JavaScript代码,通过点击URL,最终在受害者浏览器端执行的一种漏洞。主要有反射型XSS、存储型XSS、基于DOM的XSS三类。XSS一些比较常规的危害大概有:重定向浏览器、窃取Cookie、浏览器劫持等。本文章侧重于发现XSS后的进一步利用。 主要介绍在某次实际测试过程中,发现XSS漏洞之后,如何进一步的利用,最终通过XSS达

计算机毕业论文源码,学生个人网页制作html源码。贴近用户做网络推广和互联网优化。 3780

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 这个问题 ,dubboadmin上边看服务正常启动 ,报错信息如下: Exception in thread “main” org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘demoService’: F

m0_67401761的博客 2418

C#与数据采集卡集成开发全指南:从硬件连接到实时数据处理(附工业传感器监测实战)

C#数据采集卡集成开发指南 本文系统介绍了不同类型数据采集卡(DAQ卡)与C#的集成方法。主要内容包括: 数据采集卡分类:按接口分为PCIe/PCI(高带宽低延迟)、USB(便携即插即用)和以太网(远距离组网);按信号类型分为模拟量输入、数字量输入/输出等。 C#集成核心方法: 优先使用厂商SDK(如NI DAQmx),提供完整功能封装 无SDK时采用通用协议(如USB HID、Modbus TCP) 具体实现示例: NI DAQmx采集热电偶温度代码 USB HID协议读取模拟量电压值 工业应用要点:实时

这里只有干货:从 Modbus 通信到 MES 对接,从 YOLO 训练到工控机部署,带你搞定工业软件开发全流程。 1972

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.Ite...

往昔岁月的博客 9101

老版QQ原生表情gif动态

这是老版的QQ表情,不过全是动态的的,Windows照片查看器是不会动的,可以右击用浏览器打开查看,再说一遍是老版的,只是分享给宁愿用老版也要动态的人。

LinePhone3.2.7(android端最新版本) sip客户端

SIP客户端For android:LinePhone3.2.7(最新版本),官网地址:http://www.linphone.org/

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.service.UserService. No provider available for the service com.service.UserService from the url spring-cloud://localhost:9090/org.apache.dubbo.registry.Regist

旭东怪的博客 1566

Statistics and Machine Learning Toolbox

Statistics and Machine Learning Toolbox(带书签),MATLAB统计学习工具

dubbo: Failed to check the status of the service

生产者和消费者的版本号需要一致。

cccccs_的博客 803

WINCC7.3破解文件

WINCC7.3硬件够破解文件,有需要的下载!WINCC7.3硬件够破解文件,有需要的下载!

dubbo 消费者启动报错 Failed to check the status of the service

记录使用dubbo时的报错 1. 报错信息 Failed to check the status of the service cn.qiuming.dubbo.api.DubboService. No provider available for the service Caused by: java.lang.IllegalStateException: Failed to check the status of the service cn.qiuming.dubbo.api.DubboService

inlauallnoany的博客 7472

DUBBO 消费端报错: Failed to check the status of the service

首先检查消费端的配置文件中,check是不是false,如果是true,dubbo会先检查是否有生产者提供的服务。1、关闭某个服务的启动时检查:(没有提供者时报错) <dubbo:reference interface="com.foo.BarService" check="false" /> 其中容易混淆的是,如果本身消费端因为配置参数或者缺少必要的dubbo的相关jar包导致的连接...

yepboy的专栏 1万+

Dubbo消费者启动报Failed to check the status of the service

博客分类: DubboDubbo项目中准备使用Dubbo,运行官方的Provider和Consumer没有问题,自己写了个简单的SayHello进行测试,生产者启动后,通过DubboAdmin可以看到(不存在有人说的服务启动后又消失的问题),但启动生产者却报发下错误Java代码  收藏代码Exception in thread "main" org.springframework.beans.fa...

大JAVA解决方案 1万+

Dubbo使用nacos报错Failed to check the status of the service com.yyds.ccgateway.DemoService

Dubbo使用nacos报错Failed to check the status of the service com.yyds.ccgateway.DemoService

m0_64901859的博客 797

dubbo启动后访问报错:java.lang.IllegalStateException: Failed to check the status of the service

原因:缺少配置,换进版本不一致;这里分享源码!!! 看是否满足一下条件

CodeYearn 4963

Failed to check the status of the service com.xxx.UserSerivce. No provider available for the service

踩了一个低级的坑,服务提供方,和消费方,所调用的同一个接口,包命不一样。面向接口编程,所以服务提供方,和消费方接口,包命和类名要一致。只是调用远程的实现而已。当然还有其他原因,这只是其中一个,引以为戒...

夏天吹雪的博客 5807

关于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 available for the service..... org.springframework.beans.factory.BeanCreationException: Error cr...

myroncham的博客 2976

java.lang.IllegalStateException: Failed to check the status of the service org.cdc.system.service.S

17:54:01,368 ERROR [ContextLoader] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customerService' defined in ServletContext res

MyPointOne的专栏 1万+

[Dubbo]消费者启动失败 java.lang.IllegalStateException: Failed to check the status of the service XXX

3.再检查消费者服务的时候发现错误,消费者接口的包名需要跟服务提供者的包名一致,建议是抽,象出一个公共项目(放接口、实体类等),调用项目和提供者项目尽量引入相同的依赖和配置。Nacos整合dubbo 过程中,服务提供者能够正确启动并成功注册到Nacos注册中心,但消费者无法正常启动。1.启动类是否加@EnableDubbo注解,提供者服务实现类是否使用@DubboService注解。2.发现服务提供方成功注册到注册中心,所以问题不在服务提供者。修改包名后,成功解决。

m0_51935980的博客 825
上一篇: 【Nacos】Unable to make field private java.lang.String java.lang.StackTraceElement.classLoaderName acc
下一篇: TypeError: decode_js.EntityDecoder is not a constructor
Nobody.sir
博客等级 码龄4年 100粉丝 26原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Nobody.sir

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值