rainwolf01 commented on issue #9682:
URL: https://github.com/apache/dubbo/issues/9682#issuecomment-1038643967


   使用版本:dubbo 3.0.5/nacos 2.0.4
   
   ### 调用方式一:
   这种方式是可以正常调用provider-service并返回预期结果
   ```
   @DubboReference(providedBy = "provider-service", protocol = "tri")
   ```
   
   ### 调用方式二:
   使用这种方式配置后,会报异常, 
   ```
   @DubboReference(providedBy = "provider-service")
   
   //配置
   dubbo.protocol.name=tri
   ```
   
   异常信息:
   ```
   2022-02-14 12:53:22.920  WARN 
[consumer-service,ebfeb5e99cd16341,ebfeb5e99cd16341] 10184 --- 
[nio-8001-exec-2] o.a.d.r.c.directory.AbstractDirectory    :  [DUBBO] No 
provider available after connectivity filter for the service 
com.example.demo.xxxxService all validInvokers' size: 0/ all routed invokers' 
size: 0/ all invokers' size: 0 from registry 192.168.1.212:8848 on the consumer 
192.168.1.98 using the dubbo version 3.0.5., dubbo version: 3.0.5, current 
host: 192.168.1.98
   ```
   
   报no provider异常应该是consumer查找时使用了默认的`dubbo`协议,而provider仅支持`tri`协议导致的。
   
   @BurningCN 麻烦看一下,这是bug吗?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to