dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

dubb2.6.12消费不到dubbo2.7.18的提供的服务

Open robin977 opened this issue 1 year ago • 2 comments

问题: dubb2.6.12消费不到dubbo2.7.18的提供的服务 Failed to check the status of the service com.aaa.bbb.boot.api.service.IUserQueryService. No provider available for the service

1,新项目采用dubbo2.7.18,作为提供者,注册中心采用nacos2.0.3 采用xml配置 <dubbo:registry id="nacosregistry" protocol="${dubbo.registry.protocol:nacos}" address="${dubbo.registry.address}" > <dubbo:parameter key="namespace" value="${dubbo.registry.namespace}" /> </dubbo:registry>

<dubbo:protocol name="dubbo" port="${dubbo.provider.port:20880}"   />

<dubbo:provider timeout="10000" threadpool="fixed" threads="100" accepts="1000"  registry="nacosregistry" />

<dubbo:service interface="com.aaa.xx.boot.api.service.IUserQueryService"
                ref="boot.userQueryService" retries="0" version="2.0.0" registry="nacosregistry"  />

注册时,服务名如下 wecom-temp-af6f471c9355fe905a96199d60e847fd

注册中心内容如下: wecom-temp-e39d0b268564f1134c08d57503f594c6

2,消费端采用dubbo2.6.12,注册中心为nacos2.0.3 服务订阅时如下:服务名称没有":" wecom-temp-c48c092b93a1ace7711c6c3ec4317701 ,获取不到实例,如果加上":" image 是可以获取实例的 建议在做服务暴露时,如果没有对应的参数,不要添加":" image

robin977 avatar Dec 20 '22 06:12 robin977