Dubbo+Zookeeper报错KeeperException$UnimplementedException: KeeperErrorCode = Unimplemented

今天在运行spring-boot + dubbo的时候,zookeeper中注册的时候抛出一个异常,查看到我使用的curator-recipes版本是4.0+版本,依赖的zookeeper是3.5加版本,而我自己的zookeeper是3.4.x版本。
异常信息

Caused by: com.alibaba.dubbo.rpc.RpcException: Failed to register dubbo://192.168.100.111:20880/com.itstyle.modules.alipay.service.IAliPayService?anyhost=true&application=springboot_pay&default.loadbalance=roundrobin&default.threadpool=fixed&default.threads=10&dubbo=2.6.2&generic=false&interface=com.itstyle.modules.alipay.service.IAliPayService&methods=downloadBillUrl,aliCloseorder,aliPay,appPay,rsaCheckV1,aliPayPc,aliPayMobile,aliRefund,rsaCheckV2&pid=10728&side=provider×tamp=1542872343263 to zookeeper zookeeper://119.23.74.61:2181/com.alibaba.dubbo.registry.RegistryService?application=springboot_pay&dubbo=2.6.2&interface=com.alibaba.dubbo.registry.RegistryService&pid=10728×tamp=1542872343247, cause: KeeperErrorCode = Unimplemented for /dubbo/com.itstyle.modules.alipay.service.IAliPayService/providers/dubbo%3A%2F%2F192.168.100.111%3A20880%2Fcom.itstyle.modules.alipay.service.IAliPayService%3Fanyhost%3Dtrue%26application%3Dspringboot_pay%26default.loadbalance%3Droundrobin%26default.threadpool%3Dfixed%26default.threads%3D10%26dubbo%3D2.6.2%26generic%3Dfalse%26interface%3Dcom.itstyle.modules.alipay.service.IAliPayService%26methods%3DdownloadBillUrl%2CaliCloseorder%2CaliPay%2CappPay%2CrsaCheckV1%2CaliPayPc%2CaliPayMobile%2CaliRefund%2CrsaCheckV2%26pid%3D10728%26side%3Dprovider%26timestamp%3D1542872343263
	at com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry.doRegister(ZookeeperRegistry.java:116)
	at com.alibaba.dubbo.registry.support.FailbackRegistry.register(FailbackRegistry.java:131)
	... 37 common frames omitted
Caused by: java.lang.IllegalStateException: KeeperErrorCode = Unimplemented for /dubbo/com.itstyle.modules.alipay.service.IAliPayService/providers/dubbo%3A%2F%2F192.168.100.111%3A20880%2Fcom.itstyle.modules.alipay.service.IAliPayService%3Fanyhost%3Dtrue%26application%3Dspringboot_pay%26default.loadbalance%3Droundrobin%26default.threadpool%3Dfixed%26default.threads%3D10%26dubbo%3D2.6.2%26generic%3Dfalse%26interface%3Dcom.itstyle.modules.alipay.service.IAliPayService%26methods%3DdownloadBillUrl%2CaliCloseorder%2CaliPay%2CappPay%2CrsaCheckV1%2CaliPayPc%2CaliPayMobile%2CaliRefund%2CrsaCheckV2%26pid%3D10728%26side%3Dprovider%26timestamp%3D1542872343263
	at com.alibaba.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.createEphemeral(CuratorZookeeperClient.java:89)
	at com.alibaba.dubbo.remoting.zookeeper.support.AbstractZookeeperClient.create(AbstractZookeeperClient.java:63)
	at com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry.doRegister(ZookeeperRegistry.java:114)
	... 38 common frames omitted
Caused by: org.apache.zookeeper.KeeperException$UnimplementedException: KeeperErrorCode = Unimplemented for /dubbo/com.itstyle.modules.alipay.service.IAliPayService/providers/dubbo%3A%2F%2F192.168.100.111%3A20880%2Fcom.itstyle.modules.alipay.service.IAliPayService%3Fanyhost%3Dtrue%26application%3Dspringboot_pay%26default.loadbalance%3Droundrobin%26default.threadpool%3Dfixed%26default.threads%3D10%26dubbo%3D2.6.2%26generic%3Dfalse%26interface%3Dcom.itstyle.modules.alipay.service.IAliPayService%26methods%3DdownloadBillUrl%2CaliCloseorder%2CaliPay%2CappPay%2CrsaCheckV1%2CaliPayPc%2CaliPayMobile%2CaliRefund%2CrsaCheckV2%26pid%3D10728%26side%3Dprovider%26timestamp%3D1542872343263
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:103)
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
	at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:1525)
	at org.apache.curator.framework.imps.CreateBuilderImpl$17.call(CreateBuilderImpl.java:1181)
	at org.apache.curator.framework.imps.CreateBuilderImpl$17.call(CreateBuilderImpl.java:1158)
	at org.apache.curator.connection.StandardConnectionHandlingPolicy.callWithRetry(StandardConnectionHandlingPolicy.java:64)
	at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:100)
	at org.apache.curator.framework.imps.CreateBuilderImpl.pathInForeground(CreateBuilderImpl.java:1155)
	at org.apache.curator.framework.imps.CreateBuilderImpl.protectedPathInForeground(CreateBuilderImpl.java:605)
	at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:595)
	at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:573)
	at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:49)
	at com.alibaba.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.createEphemeral(CuratorZookeeperClient.java:86)
	... 40 common frames omitted

参考到该文章:https://blog.csdn.net/sgrrmswtvt/article/details/81129342?utm_source=blogxgwz2
说是由于Zookeeper版本问题,果然我的Zookeeper版本是3.4.x的
查看到我的pom依赖的zookeeper是3.5.x所以导致这个错误
Dubbo+Zookeeper报错KeeperException$UnimplementedException: KeeperErrorCode = Unimplemented_第1张图片
更新版本


   org.apache.curator
   curator-recipes
   4.0.1
   先排除zookeeper
   
    	
    		org.apache.zookeeper
    		zookeeper
    	
    


添加zookeeper3.4.x版本

	org.apache.zookeeper
	zookeeper
	3.4.7

修改依赖之后重新运行成功。
如有类似问题欢迎留言,看到会回复。

你可能感兴趣的:(SpringBoot,Dubbo)