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

motan:registry zookeeper异常(500-20008) #106

Closed
hexian55 opened this issue Jun 8, 2016 · 4 comments
Closed

motan:registry zookeeper异常(500-20008) #106

hexian55 opened this issue Jun 8, 2016 · 4 comments

Comments

@hexian55
Copy link

hexian55 commented Jun 8, 2016

配置如下:
motan:registry regProtocol="zookeeper" name="fans_server" address="127.0.0.1:3181,127.0.0.1:3182,127.0.0.1:3183"
异常栈:
Exception in thread "main" com.weibo.api.motan.exception.MotanFrameworkException: error_message: register error! Could not find extension for registry protocol:zookeeper, make sure registry module for zookeeper is in classpath!, status: 500, error_code: 20008,r=
at com.weibo.api.motan.config.handler.SimpleConfigHandler.register(SimpleConfigHandler.java:107)
at com.weibo.api.motan.config.handler.SimpleConfigHandler.export(SimpleConfigHandler.java:80)
at com.weibo.api.motan.config.ServiceConfig.doExport(ServiceConfig.java:211)
at com.weibo.api.motan.config.ServiceConfig.export(ServiceConfig.java:129)
at com.weibo.api.motan.config.springsupport.ServiceConfigBean.onApplicationEvent(ServiceConfigBean.java:90)
at com.weibo.api.motan.config.springsupport.ServiceConfigBean.onApplicationEvent(ServiceConfigBean.java:42)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:163)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:136)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:381)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:335)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:855)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)
at com.app.miaomiao.FansServer.main.Server.main(Server.java:11)

@hexian55
Copy link
Author

hexian55 commented Jun 8, 2016

我使用的是快速入门的代码,consul测试过没有什么问题,但是zk却有问题,请大神帮忙解答一下

@qdaxb
Copy link
Collaborator

qdaxb commented Jun 8, 2016

看一下classpath下是否有motan-registry-zookeeper包

@hexian55
Copy link
Author

hexian55 commented Jun 8, 2016

maven没有引motan-registry-zookeeper这个包导致的 感谢 另外还有一个问题帮忙解答一下
限制服务端连接池工作线程数 motan:protocol id="demoMotan" name="motan" maxWorkerThread="800" minWorkerThread="20" 我在service中,怎么设置这个protocol呢?还在只需要再server.xml里面加上这一行?

@qdaxb
Copy link
Collaborator

qdaxb commented Jun 14, 2016

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

No branches or pull requests

2 participants