dubbo报错Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.sea

IP不能作为rocketmq 的topic org.apache.rocketmq.client.exception.MQClientException: The specified topic[182.16.226.45] contains illegal characters, allowing only ^[%|a-zA-Z0-9_-]+$ For more information, please visit the url, htt... 阅读详情

在使用dubbo,写了个简单的SayHello进行测试,分别启动服务层工程和表现层工程的时候,出现以下报错信息:

Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'demoService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service cn.feezu.carsearch.service.DemoService. No provider available for the service cn.feezu.carsearch.service.DemoService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=consumer-of-helloworld-app&default.timeout=5000&dubbo=2.5.3&interface=cn.feezu.carsearch.service.DemoService&methods=sayHello&pid=8148&side=consumer&timestamp=1440572169099 to the consumer 10.10.8.101 use dubbo version 2.5.3  
    at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:151)  
    at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103)  
    at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1514)  
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:252)  
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)  
    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:973)  
    at Main.main(Main.java:15)  
Caused by: java.lang.IllegalStateException: Failed to check the status of the service cn.feezu.carsearch.service.DemoService. No provider available for the service cn.feezu.carsearch.service.DemoService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=consumer-of-helloworld-app&default.timeout=5000&dubbo=2.5.3&interface=cn.feezu.carsearch.service.DemoService&methods=sayHello&pid=8148&side=consumer&timestamp=1440572169099 to the consumer 10.10.8.101 use dubbo version 2.5.3  
    at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:420)  
    at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:300)  
    at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:138)  
    at com.alibaba.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:65)  
    at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:144)  
    ... 6 more  

原因:是由于生产者和消费者的xml配置文件中的版本号不一致导致的,要么两个配置文件都有以下version信息,要么都不写,需要统一

<?xml version="1.0" encoding="UTF-8"?>

生产者的xml文件配置如下:

<?xml version="1.0" encoding="UTF-8"?>  
<beans xmlns="http://www.springframework.org/schema/beans"     
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"     
      xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"     
         xsi:schemaLocation="http://www.springframework.org/schema/beans 
         http://www.springframework.org/schema/beans/spring-beans.xsd 
         http://code.alibabatech.com/schema/dubbo 
         http://code.alibabatech.com/schema/dubbo/dubbo.xsd">  
         
         <dubbo:application name="demo-consumer"/>    
         <dubbo:registry address="zookeeper://192.168.56.121:2181" /> 
         
         <dubbo:reference id="helloT" interface="com.searchservice.test.service.HelloT" version="1.0"/> 
        
         <dubbo:reference id="errorAnalyDao" interface="com.searchservice.youmeng.dao.ErrorAnalyDao" version="1.0"/> 
          
         
</beans>  

消费者的xml文件配置如下:

<?xml version="1.0" encoding="UTF-8"?>  
<beans xmlns="http://www.springframework.org/schema/beans"        
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    
    xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"     
       xsi:schemaLocation="http://www.springframework.org/schema/beans 
       http://www.springframework.org/schema/beans/spring-beans.xsd 
       http://code.alibabatech.com/schema/dubbo 
       http://code.alibabatech.com/schema/dubbo/dubbo.xsd"> 
       
       <dubbo:protocol name="dubbo" port="20880"></dubbo:protocol>        
       <dubbo:application name="dubbo-service-test"/>    	
       <dubbo:registry address="zookeeper://192.168.56.121:2181" />  	
       	
       <dubbo:service interface="com.searchservice.test.service.HelloT" ref="helloImpl" version="1.0" />  
	   <bean id="helloImpl" class="com.searchservice.test.service.impl.HelloImpl"/> 
      

</beans> 

如果不是这个问题,建议查看是不是防火墙的问题,建议关掉试下

AltiumDesigner 高效封装库管理 -- samacsys插件实战指南 本文详细介绍了如何利用samacsys插件高效管理AltiumDesigner封装库。通过实战指南,指导用户完成插件安装、云端元件搜索与放置,并分享将海量资源整合为个人标准库的管理策略,从而大幅提升PCB设计效率与可靠性,杜绝封装错误。 阅读详情

相关推荐

工业相机与ABB机器人Socket通信实战:手把手教你用RobotStudio 6.08搭建视觉引导工作站

本文详细介绍了工业相机与ABB机器人通过Socket通信实现视觉引导工作站的实战教程。使用RobotStudio 6.08平台,涵盖工作站搭建、坐标系标定、RAPID代码开发及TCP/IP通信配置,特别解析了欧拉角与四元数转换等关键技术难点,助力智能制造产线升级。

weixin_42531516的博客 407

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万+

SAR ADC和sigma delta ADC的区别

0、ADC基本概念 ADC,即analog to digital converter,模拟到数字的转换器,简称模数转换器。 为什么需要ADC?因为现实的世界中,电信号是连续的,例如心电信号,或者声音信号,这些连续的信号被称为“模拟信号”。 图1:心电信号 图2:声音信号 然而这种连续的信号是无法被计算机处理的,计算机只认识0和1组成的“数字信号“。ADC就充当了这样一个桥梁,将“模拟信号”转换为计算机能识别的“数字信号”。举个例子,当前的心电电压为1.2V(实际没有这么高),ADC可能会得

长河柱天的博客 2万+

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

首先检查dubbo暴露的服务和配置以及包,暴露服务的实现类使用了@DubboService,并且配置文件中扫描包路径正确。尝试搭建Nacos整合dubbo Demo过程中,服务提供者能够正确启动并成功注册到Nacos注册中心,但消费者模块启动后一直异常导致服务终止。检查服务消费者:检查报错信息中的IP和本机ip是否一致,如果不一致的话需要在网络设置里面禁用其他网卡。在检查消费者服务的时候发现错误:消费者接口的定义需要跟服务提供者完全一致,需要注意包名也需要相同。可以推断服务提供者应该是没问题的。

2301_76212351的博客 1156

风控IV、AUC、KS python计算代码

df_temp:数据集,Y:是否逾期标签,feas_list:需要计算IV的 变量。2、 按月和不同Y 下的 IV计算。

暮雨听轩的专栏 1618

泛微OA与金蝶云星空审批流程对接实战:从报销单到采购合同的完整指南

本文详细介绍了泛微OA与金蝶云星空审批流程的深度集成方案,涵盖从报销单到采购合同的完整对接指南。通过API层面的无缝连接,实现流程自动化、数据同源和权限联动,显著提升企业业务效率。文章还提供了环境配置、数据映射、接口安全等实用技巧,助力企业轻松完成系统对接。

weixin_29268637的博客 245

Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.atguigu.gm

学习dubbo过程中遇到的bug以及解决方法

m0_62946761的博客 8133

C/C++炫酷烟花①(完整代码)

C/C++实现炫酷烟花动画的完整代码。

AIGC 2万+

java.lang.IllegalStateException: 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.sellergoods.service.Bra...

weixin_30301183的博客 586

手把手入门YOLO到改进优化教程 | 【P5进阶篇】YOLOv8损失函数改进实战-损失函数IoU之KLD Loss

在本节,将从 KLD Loss(Kullback–Leibler Divergence Loss)的理论到实战代码实现,带你把 KLD Loss融合进 YOLOv8 的训练框架中。并通过训练日志与实验结果,验证 KLD Loss 在实际工程中的优势。

嵌入式阿齐Archie 2万+

【脑电信号】脑电信号EEG形态学滤波处理【含Matlab源码 4023期】

脑电信号EEG形态学滤波处理 完整的代码,包运行;运行操作视频见优快云资源!适合小白!

订阅付费专栏Matlab(奶茶价版),可赠送奶茶价版付费专栏指定代码1份; 823

java.lang.IllegalStateException

java.lang.IllegalStateException: Failed to check the status of the service com.lyc.sellergoods.service.BrandService. No provider available for the servicecom.lyc.sellergoods.service.BrandService from ...

半庭竹韵的博客 1157

基于STM32设计的老人摔倒检测报警系统【升级版】(235)

在 `235 基于STM32设计的老人摔倒检测报警系统(OneNet+MQTT)` 项目基础上增加了心率、血氧、体温测量3个功能。

1509

Dubbo 消费者启动报错java.lang.IllegalStateException: Failed to check the status of the service com.

在命令窗口输入ipconfig查看网卡IP地址。

qq_52080086的博客 967

android 蓝牙通讯demo

android 下蓝牙通讯demo,实现了发现蓝牙,使能蓝牙,通过蓝牙发送消息。

华为的C语言编程规范.pdf

华为技术有限公司内部技术规范。本规范制定了编写C语言程序的基本原则、规则和建议。从代码的清晰、简洁、可测试、安全、程序效率、可移植各个方面对C语言编程作出了具体指导。

Dubbo中消费端报错Caused by: java.lang.IllegalStateException: Failed to check the status of th

消费端代码: @EnableAutoConfiguration public class DubboConsumerBoot...

1582

最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版

Part-E1-SDIO-Specification-Ver4.00-Final-120220.pdf:最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版,包括SDIO 接口的外设,SDIO 接口官方协议等。

Dubbo:java.lang.IllegalStateException: Failed to check the status of the service com.xiaohou.service

dubbo注册zookeeper失败

qq_43653436的博客 741

IEM模型,地表粗糙度模拟

利用微波反演土壤水分时候,利用IEM模型可以实现对随机地表的模拟

关于启动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

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万+

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

旭东怪的博客 1565

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报错没有提供者Caused by: java.lang.IllegalStateException: Failed to check the status of the service

在使用dubbo,分别启动服务层工程和表现层工程的时候,tomcat出现以下报错信息: Caused by: java.lang.IllegalStateException: Failed to check the status of the service cn.campus.service.ItemService. No provider available for the service ...

weixin_42133396的博客 9179

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

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

CodeYearn 4963

SpringBoot Dubbo 大坑之Caused by: java.lang.IllegalStateException: Failed to check the status of the se

SpringBoot Dubbo 大坑之Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.wudner.service.OrderService. No provider available for the service 具体错误: Caused by: java.lang.IllegalStateException: Failed to check the status of

Xiao_W_u的博客 3557

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

Caused by: java.lang.IllegalStateException: <dubbo:service interface=““ /> interface not allow null!

今天我在dubbo项目中,新增一个服务时,代码写完正准备启动项目报错了:四月 18, 2021 12:16:34 上午 org.apache.catalina.loader.WebappClassLoader findResourceInternal 信息: Illegal access: this web application instance has been stopped already. Could not load . The eventual following stack trace ..

qq_45441466的博客 2257
上一篇: java连接mongodb报错超时连接不上
下一篇: Flink安装 高可用
Poolweet_
博客等级 码龄7年 21粉丝 48原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值