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> 

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

解决fetch_california_housing数据集403错误的3种实用方法(附手动下载地址) 本文针对机器学习中常见的fetch_california_housing数据集403 Forbidden错误,提供了三种实用的解决方案。从理解HTTP 403错误的根源出发,详细介绍了修改源码路径、使用国内镜像源以及手动下载并配置数据文件这三种方法,并附带了可靠的手动下载地址,帮助开发者彻底解决数据加载障碍,确保机器学习项目顺利进行。 阅读详情

相关推荐

差分分析.

差分分析是一种强大的密码攻击技术,通过研究明文差分与密文差分的关系来破解加密算法。本文系统介绍了差分分析的核心概念和方法: 基础差分分析:通过异或运算抵消密钥影响,利用差分分布表(DDT)寻找高概率差分特征,以FEAL-4为例展示了具体攻击过程。 高级差分技术:包括截断差分分析(关注部分特征)、不可能差分分析(排除概率为0的路径)和飞来去器分析(将算法分段处理)。 自动化搜索方法:介绍了松井算法和MILP(混合整数线性规划)方法,将差分路径搜索转化为数学优化问题。 这些方法展现了差分分析从基础理论到现代应用

weixin_61562383的博客 786

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

基于cat12搞定SBM的ROI的统计分析——vertex水平和ROI水平的双样本T检验

前言 一、Atlas皮层图谱介绍 二、SBM分析——主要以皮层四种常用指标中的厚度(thickness)和沟深(depth)为主

Sophia2023的博客 8749

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

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

2301_76212351的博客 1156

电流舵DAC设计(一)

如果分辨率继续增加,温度计码译码逻辑成为面积的主要决定因素,数字版图面积增加,总的面积消耗成上升趋势。缺点是:对于高分辨率的 DAC,高位码元和低位码元权重相差很大,当输入码元转换时(以 8 位二进制型 DAC 为例)尤其是中码转换(从 01111111 转换到 10000000),因为此时电流源的选通动作并非理想情况下的绝对一致等因素,导致在极短的时间内,码元会从 01111111 跳转到 11111111 再跳到10000000,这个过程中所有开关都参与转换,会引起最大幅度的尖峰毛刺(glitch);

模拟芯片设计 2872

Windows环境Oracle19C安装与配置全攻略

本文详细介绍了在Windows环境下安装与配置Oracle19C数据库的完整流程,包括环境准备、安装步骤、网络配置、客户端工具设置及常见问题解决方案。特别针对Windows 10和Windows Server 2016及以上版本提供了优化建议,帮助用户高效完成Oracle19C的部署与维护。

weixin_28455801的博客 487

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

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

m0_62946761的博客 8133

【专栏必读】王道考研408操作系统+Linux系统编程万字笔记使用说明及章节导航

王道408考研操作系统)第一章计算机系统概述-第一节1、2:操作系统概念、概念和特征1:理解fork的作用prinf("还没有执行fork函数的本进程为:%d\n" , getpid());//其返回值是pid类型的 sleep(1);if(ret > 0) //父进程返回的是子进程ID {printf("我是父进程,我的id是:%d,我的孩子id是%d\n" , getpid() , ret);sleep(1);} } else if(ret == 0) //子进程fork返回值是0 {.........

快乐江湖的博客 3万+

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

国科大学习资料--计算机网络--历年考题1

国科大学习资料–计算机网络–历年考题1 1、假定有一个通信协议,每个分组都引入100字节的开销用于头和成帧,现在使用这个协议发送1M字节的数据(为方便计算,1M=10^6),然而在传递的过程中有一个字节被破坏了,因而包含该字节的那个分组被丢弃并重传。(1)当数据的分组大小为1000、5000、20000和40000字节时,计算相应(包括开销)的传递字节总数目。(2)计算分组大小的最优值是多少,即分组的大小为何值时总的传输字节数最少。(提示:最优值不是1000、5000、20000和40000字节中的一个)

无名何许人的博客 1181

SAP-ABAP:新手入门篇——从0到1写出你的第一个ABAP Hello World程序并完成调试运行

本文是ABAP开发入门指南,详细介绍如何创建并运行第一个"Hello World"程序。主要内容包括:通过SE38事务码进入ABAP编辑器;创建以Z/Y开头的程序并保存为本地对象;编写简单的WRITE输出语句;完成语法检查、激活和执行流程;以及初步体验调试功能。文章特别强调ABAP开发的规范要求,如程序命名规则、激活与保存的区别等,并提供了详细的步骤说明和常见问题提示,帮助零基础开发者快速上手ABAP编程。

baidu_35680696的博客 479

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

五步通关!宝塔Linux部署ASP.NET Core的魔法秘籍大公开!

摘要: 本文提供ASP.NET Core应用五步部署攻略,涵盖从环境配置到线上运行的完整流程: 1️⃣ 环境准备:安装宝塔面板、ASP.NET Core运行时及开放端口; 2️⃣ 应用发布:通过dotnet publish生成独立部署包并上传服务器; 3️⃣ Nginx配置:设置反向代理将域名请求转发至应用端口; 4️⃣ 进程守护:使用Supervisor确保应用持续运行; 5️⃣ HTTPS加密:通过宝塔快速申请SSL证书并解决验证路径冲突。 关键点: 强调权限设置(755)、端口开放及反向代理细节; 提

java专栏 969

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

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

qq_52080086的博客 967

pscad IEEE标准系统搭建说明

pscad IEEE标准系统搭建说明,包含典型的IEEE 9节点、14节点、30节点、39节点和118节点系统。内含标准测试系统的原始数据和潮流结果。

NTscan扫描工具

ntscan是一个扫描器,可以扫描没有密码和弱密码的共享,先到配置文件中填写猜测的用户名和密码,扫描过程中右侧出现的是扫描日志。

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

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

1582

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

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

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

dubbo注册zookeeper失败

qq_43653436的博客 741

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

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

关于启动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、付费专栏及课程。

余额充值