赞
踩
我们鼓励使用英文,如果不能直接使用,可以使用翻译软件,您仍旧可以保留中文原文。
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®ister=true®ister.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×tamp=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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。