zookeeper作为dubbo注册中心报错

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-06-01 17:44:36.658 ERROR 24784 --- [           main] o.s.boot.SpringApplication               : Application run failed

java.lang.IllegalStateException: Failed to register dubbo://10.10.10.143:20880/com.user.manage.service.CaptchaService?anyhost=true&application=usermanage&bean.name=ServiceBean:com.user.manage.service.CaptchaService:1.0.0&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.user.manage.service.CaptchaService&loadbalance=roundrobin&methods=smscode,getCode&pid=24784&register=true&release=2.7.3&revision=1.0.0&side=provider&threadpool=fixed&threads=10&timestamp=1622540675414&version=1.0.0 to registry 172.17.2.180:2181, cause: Failed to register dubbo://10.10.10.143:20880/com.user.manage.service.CaptchaService?anyhost=true&application=usermanage&bean.name=ServiceBean:com.user.manage.service.CaptchaService:1.0.0&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.user.manage.service.CaptchaService&loadbalance=roundrobin&methods=smscode,getCode&pid=24784&register=true&release=2.7.3&revision=1.0.0&side=provider&threadpool=fixed&threads=10&timestamp=1622540675414&version=1.0.0 to zookeeper zookeeper://172.17.2.180:2181/org.apache.dubbo.registry.RegistryService?application=usermanage&dubbo=2.0.2&interface=org.apache.dubbo.registry.RegistryService&pid=24784&qos.enable=false&release=2.7.3&timestamp=1622540675405, cause: KeeperErrorCode = Unimplemented for /dubbo/com.user.manage.service.CaptchaService/providers/dubbo%3A%2F%2F10.10.10.143%3A20880%2Fcom.user.manage.service.CaptchaService%3Fanyhost%3Dtrue%26application%3Dusermanage%26bean.name%3DServiceBean%3Acom.user.manage.service.CaptchaService%3A1.0.0%26deprecated%3Dfalse%26dubbo%3D2.0.2%26dynamic%3Dtrue%26generic%3Dfalse%26interface%3Dcom.user.manage.service.CaptchaService%26loadbalance%3Droundrobin%26methods%3Dsmscode%2CgetCode%26pid%3D24784%26register%3Dtrue%26release%3D2.7.3%26revision%3D1.0.0%26side%3Dprovider%26threadpool%3Dfixed%26threads%3D10%26timestamp%3D1622540675414%26version%3D1.0.0
	at org.apache.dubbo.registry.support.FailbackRegistry.register(FailbackRegistry.java:249) ~[dubbo-2.7.3.jar:2.7.3]
	at org.apache.dubbo.registry.integration.RegistryProtocol.register(RegistryProtocol.java:185) ~[dubbo-2.7.3.jar:2.7.3]
	at org.apache.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:219) ~[dubbo-2.7.3.jar:2.7.3]
	at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:59) ~[dubbo-2.7.3.jar:2.7.3]
	at org.apache.dubbo.qos.protocol.QosProtocolWrapper.export(QosProtocolWrapper.java:61) ~[dubbo-2.7.3.jar:2.7.3]
	at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:120) ~[dubbo-2.7.3.jar:2.7.3]
	at org.apache.dubbo.rpc.Protocol$Adaptive.export(Protocol$Adaptive.java) ~[dubbo-2.7.3.jar:2.7.3]
	at org.apache.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:607) ~[dubbo-2.7.3.jar:2.7.3]
	at org.apache.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:457) ~[dubbo-2.7.3.jar:2.7.3]
	at org.apache.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:415) ~[dubbo-2.7.3.jar:2.7.3]
	at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:378) ~[dubbo-2.7.3.jar:2.7.3]
	at org.apache.dubbo.config.spring.ServiceBean.export(ServiceBean.java:336) ~[dubbo-2.7.3.jar:2.7.3]
	at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:114) ~[dubbo-2.7.3.jar:2.7.3]
	at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:60) ~[dubbo-2.7.3.jar:2.7.3]
	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176) ~[spring-context-5.3.6.jar:5.3.6]
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169) ~[spring-context-5.3.6.jar:5.3.6]
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) ~[spring-context-5.3.6.jar:5.3.6]
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421) ~[spring-context-5.3.6.jar:5.3.6]
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378) ~[spring-context-5.3.6.jar:5.3.6]
	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:938) ~[spring-context-5.3.6.jar:5.3.6]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586) ~[spring-context-5.3.6.jar:5.3.6]
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144) ~[spring-boot-2.4.5.jar:2.4.5]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:782) [spring-boot-2.4.5.jar:2.4.5]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:774) [spring-boot-2.4.5.jar:2.4.5]
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:439) [spring-boot-2.4.5.jar:2.4.5]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:339) [spring-boot-2.4.5.jar:2.4.5]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1340) [spring-boot-2.4.5.jar:2.4.5]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1329) [spring-boot-2.4.5.jar:2.4.5]
	at com.user.manage.UsermanageApplication.main(UsermanageApplication.java:12) [classes/:na]
Caused by: org.apache.dubbo.rpc.RpcException: Failed to register dubbo://10.10.10.143:20880/com.user.manage.service.CaptchaService?anyhost=true&application=usermanage&bean.name=ServiceBean:com.user.manage.service.CaptchaService:1.0.0&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.user.manage.service.CaptchaService&loadbalance=roundrobin&methods=smscode,getCode&pid=24784&register=true&release=2.7.3&revision=1.0.0&side=provider&threadpool=fixed&threads=10&timestamp=1622540675414&version=1.0.0 to zookeeper zookeeper://172.17.2.180:2181/org.apache.dubbo.registry.RegistryService?application=usermanage&dubbo=2.0.2&interface=org.apache.dubbo.registry.RegistryService&pid=24784&qos.enable=false&release=2.7.3&timestamp=1622540675405, cause: KeeperErrorCode = Unimplemented for /dubbo/com.user.manage.service.CaptchaService/providers/dubbo%3A%2F%2F10.10.10.143%3A20880%2Fcom.user.manage.service.CaptchaService%3Fanyhost%3Dtrue%26application%3Dusermanage%26bean.name%3DServiceBean%3Acom.user.manage.service.CaptchaService%3A1.0.0%26deprecated%3Dfalse%26dubbo%3D2.0.2%26dynamic%3Dtrue%26generic%3Dfalse%26interface%3Dcom.user.manage.service.CaptchaService%26loadbalance%3Droundrobin%26methods%3Dsmscode%2CgetCode%26pid%3D24784%26register%3Dtrue%26release%3D2.7.3%26revision%3D1.0.0%26side%3Dprovider%26threadpool%3Dfixed%26threads%3D10%26timestamp%3D1622540675414%26version%3D1.0.0
	at org.apache.dubbo.registry.zookeeper.ZookeeperRegistry.doRegister(ZookeeperRegistry.java:117) ~[dubbo-2.7.3.jar:2.7.3]
	at org.apache.dubbo.registry.support.FailbackRegistry.register(FailbackRegistry.java:236) ~[dubbo-2.7.3.jar:2.7.3]
	... 28 common frames omitted
Caused by: java.lang.IllegalStateException: KeeperErrorCode = Unimplemented for /dubbo/com.user.manage.service.CaptchaService/providers/dubbo%3A%2F%2F10.10.10.143%3A20880%2Fcom.user.manage.service.CaptchaService%3Fanyhost%3Dtrue%26application%3Dusermanage%26bean.name%3DServiceBean%3Acom.user.manage.service.CaptchaService%3A1.0.0%26deprecated%3Dfalse%26dubbo%3D2.0.2%26dynamic%3Dtrue%26generic%3Dfalse%26interface%3Dcom.user.manage.service.CaptchaService%26loadbalance%3Droundrobin%26methods%3Dsmscode%2CgetCode%26pid%3D24784%26register%3Dtrue%26release%3D2.7.3%26revision%3D1.0.0%26side%3Dprovider%26threadpool%3Dfixed%26threads%3D10%26timestamp%3D1622540675414%26version%3D1.0.0
	at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.createEphemeral(CuratorZookeeperClient.java:108) ~[dubbo-2.7.3.jar:2.7.3]
	at org.apache.dubbo.remoting.zookeeper.support.AbstractZookeeperClient.create(AbstractZookeeperClient.java:69) ~[dubbo-2.7.3.jar:2.7.3]
	at org.apache.dubbo.registry.zookeeper.ZookeeperRegistry.doRegister(ZookeeperRegistry.java:115) ~[dubbo-2.7.3.jar:2.7.3]
	... 29 common frames omitted
Caused by: org.apache.zookeeper.KeeperException$UnimplementedException: KeeperErrorCode = Unimplemented for /dubbo/com.user.manage.service.CaptchaService/providers/dubbo%3A%2F%2F10.10.10.143%3A20880%2Fcom.user.manage.service.CaptchaService%3Fanyhost%3Dtrue%26application%3Dusermanage%26bean.name%3DServiceBean%3Acom.user.manage.service.CaptchaService%3A1.0.0%26deprecated%3Dfalse%26dubbo%3D2.0.2%26dynamic%3Dtrue%26generic%3Dfalse%26interface%3Dcom.user.manage.service.CaptchaService%26loadbalance%3Droundrobin%26methods%3Dsmscode%2CgetCode%26pid%3D24784%26register%3Dtrue%26release%3D2.7.3%26revision%3D1.0.0%26side%3Dprovider%26threadpool%3Dfixed%26threads%3D10%26timestamp%3D1622540675414%26version%3D1.0.0
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:103) ~[zookeeper-3.5.3-beta.jar:3.5.3-beta-8ce24f9e675cbefffb8f21a47e06b42864475a60]
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51) ~[zookeeper-3.5.3-beta.jar:3.5.3-beta-8ce24f9e675cbefffb8f21a47e06b42864475a60]
	at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:1525) ~[zookeeper-3.5.3-beta.jar:3.5.3-beta-8ce24f9e675cbefffb8f21a47e06b42864475a60]
	at org.apache.curator.framework.imps.CreateBuilderImpl$17.call(CreateBuilderImpl.java:1181) ~[curator-framework-4.0.1.jar:4.0.1]
	at org.apache.curator.framework.imps.CreateBuilderImpl$17.call(CreateBuilderImpl.java:1158) ~[curator-framework-4.0.1.jar:4.0.1]
	at org.apache.curator.connection.StandardConnectionHandlingPolicy.callWithRetry(StandardConnectionHandlingPolicy.java:64) ~[curator-client-4.0.1.jar:na]
	at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:100) ~[curator-client-4.0.1.jar:na]
	at org.apache.curator.framework.imps.CreateBuilderImpl.pathInForeground(CreateBuilderImpl.java:1155) ~[curator-framework-4.0.1.jar:4.0.1]
	at org.apache.curator.framework.imps.CreateBuilderImpl.protectedPathInForeground(CreateBuilderImpl.java:605) ~[curator-framework-4.0.1.jar:4.0.1]
	at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:595) ~[curator-framework-4.0.1.jar:4.0.1]
	at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:573) ~[curator-framework-4.0.1.jar:4.0.1]
	at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:49) ~[curator-framework-4.0.1.jar:4.0.1]
	at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.createEphemeral(CuratorZookeeperClient.java:105) ~[dubbo-2.7.3.jar:2.7.3]
	... 31 common frames omitted

添加zookeeper的虚拟机版本依赖

<dependency>
            <groupId>org.apache.zookeeper</groupId>
            <artifactId>zookeeper</artifactId>
            <version>3.4.10</version>
        </dependency>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值