dubbo实战---No provider available for the service

在实际使用Dubbo时遇到了'No provider available for the service'异常,详细错误信息显示服务com.alibaba.dubbo.demo.consumer.HelloService的提供者不可用。检查发现服务已在dubbo-admin中注册,但可能存在IP配置问题。由于服务器使用DHCP分配IP,导致provider注册地址为0.0.0.111,而consumer寻找的是192.168.22.111。解决方案是将服务器IP配置更改为静态,确保provider和consumer使用的IP一致,从而解决问题。
摘要由CSDN通过智能技术生成

问题:

  java.lang.IllegalStateException:Failed to check the status of the servicecom.alibaba.dubbo.demo.consumer.HelloService. No provider available for the service com.alibaba.dubbo.demo.consumer.HelloService from the urlzookeeper://*.*.*.*:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=customer-center-consumer-app&check=false&dubbo=2.5.5&interface=com.alibaba.dubbo.demo.consumer.HelloService&methods=register,sayHello&pid=22130&revision=2.5.5&side=consumer&timestamp=1507604148514to the consumer 0.0.0.111 use dubbo version 2.5.5


评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值