Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dubbo提供多协议接口,服务消费者启动异常 #7049

Open
keith-java opened this issue Dec 23, 2020 · 1 comment
Open

dubbo提供多协议接口,服务消费者启动异常 #7049

keith-java opened this issue Dec 23, 2020 · 1 comment

Comments

@keith-java
Copy link

1、在dubbo服务提供者指定多协议暴漏接口
2、dubbo:reference不指定protocol的情况下系统会异常
3、异常如下:
[main] ERROR com.alibaba.dubbo.registry.integration.RegistryDirectory:91 - [DUBBO] Failed to refer invoker for interface:interface xxx.xxxx.xxx.XXXBrandManager,url:(rest:

@keith-java
Copy link
Author

导致异常的原因跟踪了下源码就是在注册服务的时候未找到rest服务提供者导致
1、com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry#doSubscribe
2、com.alibaba.dubbo.registry.integration.RegistryDirectory#toInvokers
3、com.alibaba.dubbo.rpc.Protocol#refer
在最后一步生产代理实例发生异常

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@keith-java and others