dubbo消费者调用多个服务_dubbo同一个服务启动两个,service的group和version不同,消费者Reference指定一个group,version,启动报错...

我们鼓励使用英文,如果不能直接使用,可以使用翻译软件,您仍旧可以保留中文原文。

We recommend using English. If you are non-native English speaker, you can use the translation software.

Which Component

Nacos Discovery,spring-cloud-alibaba 2.1.1

Describe the bug

同一个dubbo服务,有两个版本,在service注解中使用不同的group和version,但是在消费端使用Reference注解,指定引用其中一个group和version启动报错,把不引用的再nacos中下线,则可以正常启动

two dubbo provider,same project name,but have diff provider group and version,consumer Reference one of the group and version,Not found exported service

希望同一服务的service可以支持不同版本同时在线,调用端根据service的group和version调用不同的服务

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'initKlineCache' defined in file [E:\IdeaWorkspace\fshares\fshares-exchange\web\websocket-market\out\production\classes\com\fshares\chain\market\config\InitKlineCache.class]: Invocation of init method failed; nested exception is org.apache.dubbo.rpc.RpcException: Failed to invoke the method getLasted in the service com.fshares.chain.service.market.IKlineService. Tried 1 times of the providers [172.16.17.227:28088] (1/2) from the registry localhost:9090 on the consumer 10.0.75.1 using the dubbo version 2.7.3. Last error is: Failed to invoke remote method: getLasted, provider: dubbo://172.16.17.227:28088/com.fshares.chain.service.market.IKlineService?accepts=1000&anyhost=true&application=websocket-market&bean.name=ServiceBean:com.fshares.chain.service.market.IKlineService:1.0.2:fsdex-1&buffer=8192&check=false&delay=-1&deprecated=false&dispatcher=message&dubbo=2.0.2&dynamic=true&generic=false&group=fsdex-1&heartbeat=5000&interface=com.fshares.chain.service.market.IKlineService&keep.alive=true&lazy=false&methods=getLasted,getById,getList,updateOne,getPrev&payload=16777216&pid=11092&qos.enable=false&register=true&register.ip=10.0.75.1&release=2.7.3&remote.application=service-market&retries=0&revision=1.0.2&serialization=kryo&side=consumer&status=server&sticky=false&timeout=5000&timestamp=1575283940635&version=1.0.2, cause: org.apache.dubbo.remoting.RemotingException: org.apache.dubbo.remoting.RemotingException: Not found exported service: fsdex-1/com.fshares.chain.service.market.IKlineService:1.0.2:28088 in [service-market/com.alibaba.cloud.dubbo.service.DubboMetadataService:1.0.0:28088, fsdex/com.fshares.chain.service.market.IExchangeRateService:1.0.1:28088, fsdex/com.fshares.chain.service.market.ICurrencyPairTrendService:1.0.1:28088, fsdex/com.fshares.chain.service.market.IKlineService:1.0.1:28088], may be version or group mismatch , channel: consumer: /172.16.17.5:62920 --> provider: /172.16.17.227:28088, message:RpcInvocation [methodName=getLasted, parameterTypes=[class java.lang.String, class java.lang.String], arguments=[FEOS_FBTC, 1m], attachments={path=com.fshares.chain.service.market.IKlineService, input=249, dubbo=2.0.2, interface=com.fshares.chain.service.market.IKlineService, version=1.0.2, timeout=5000, group=fsdex-1}]

org.apache.dubbo.remoting.RemotingException: Not found exported service: fsdex-1/com.fshares.chain.service.market.IKlineService:1.0.2:28088 in [service-market/com.alibaba.cloud.dubbo.service.DubboMetadataService:1.0.0:28088, fsdex/com.fshares.chain.service.market.IExchangeRateService:1.0.1:28088, fsdex/com.fshares.chain.service.market.ICurrencyPairTrendService:1.0.1:28088, fsdex/com.fshares.chain.service.market.IKlineService:1.0.1:28088], may be version or group mismatch , channel: consumer: /172.16.17.5:62920 --> provider: /172.16.17.227:28088, message:RpcInvocation [methodName=getLasted, parameterTypes=[class java.lang.String, class java.lang.String], arguments=[FEOS_FBTC, 1m], attachments={path=com.fshares.chain.service.market.IKlineService, input=249, dubbo=2.0.2, interface=com.fshares.c

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值