-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
无法获取服务 #120
Comments
client和server的registry配置有吗,我看你client配的 |
zookeeper配置
zookeeper信息
|
建议debug进motan-zookeeper-registry包下,ZookeeperRegistry类里有个subscribeService方法,确认一下错误的具体位置和信息 |
|
这个是捕获的代码抛出的异常,异常信息是null,没法定位具体抛异常的位置,需要调试来看代码块中抛异常的具体位置…… |
没有日志么? |
可能是这种情况 : motan 注册服务使用的是zookeeper临时节点,当网络抖动或者服务端线程堵塞时会导致临时节点丢失,确认下 你获取服务时 在zookeeper上的服务节点是否存在
|
我电脑里的host文件屏蔽了百度所有的产品 对motan有影响么? |
@gongrico 这个host配置对motan没有影响。错误日志中的cause为原始异常的message信息,这个字段为空说明没有从原始异常中获取到message信息。你可以断点在ZookeeperRegistry类的line:83,看看具体的exception是什么。
|
请参考#129 |
收到,感谢 |
com.weibo.api.motan.exception.MotanFrameworkException: error_message: Failed to subscribe motan://169.254.130.54:0/com.xxxxxxx.passport.service.AccountService?group=default_rpc to zookeeper(zookeeper://127.0.0.1:2181/com.weibo.api.motan.registry.RegistryService?group=default_rpc), cause: null, status: 503, error_code: 20001,r=
一直报这个错误,按照官方demo跑不起来,
服务端配置
<motan:registry regProtocol="zookeeper" name="registry"
address="127.0.0.1:2181" connectTimeout="2000" />
客户端配置
<motan:registry regProtocol="zookeeper" name="nas_registry"
address="127.0.0.1:2181" connectTimeout="2000" />
The text was updated successfully, but these errors were encountered: