Dubbo:Unimplemented for 。。。

报错信息


java.lang.IllegalStateException: Failed to register dubbo://192.168.0.101:20880/com.luo.services.ProviderService?accesslog=true&anyhost=true&application=service-provider&delay=-1&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.luo.services.ProviderService&metadata-type=remote&methods=sayHello&pid=3352&release=2.7.8&retries=1&revision=1.0.0&side=provider&timeout=3000&timestamp=1608540769535&version=1.0.0 to registry 47.98.159.35:2181, cause: Failed to register dubbo://192.168.0.101:20880/com.luo.services.ProviderService?accesslog=true&anyhost=true&application=service-provider&delay=-1&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.luo.services.ProviderService&metadata-type=remote&methods=sayHello&pid=3352&release=2.7.8&retries=1&revision=1.0.0&side=provider&timeout=3000&timestamp=1608540769535&version=1.0.0 to zookeeper zookeeper://47.98.159.35:2181/org.apache.dubbo.registry.RegistryService?application=service-provider&dubbo=2.0.2&interface=org.apache.dubbo.registry.RegistryService&pid=3352&qos.enable=false&register=true&release=2.7.8&timestamp=1608540769535, cause: KeeperErrorCode = Unimplemented for /dubbo
	at org.apache.dubbo.registry.support.FailbackRegistry.register(FailbackRegistry.java:253) ~[dubbo-2.7.8.jar:2.7.8]
	at org.apache.dubbo.registry.ListenerRegistryWrapper.register(ListenerRegistryWrapper.java:57) ~[dubbo-2.7.8.jar:2.7.8]
	at org.apache.dubbo.registry.integration.RegistryProtocol.register(RegistryProtocol.java:178) ~[dubbo-2.7.8.jar:2.7.8]
	at org.apache.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:214) ~[dubbo-2.7.8.jar:2.7.8]
	at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:62) ~[dubbo-2.7.8.jar:2.7.8]
	at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:153) ~[dubbo-2.7.8.jar:2.7.8]
	at org.apache.dubbo.qos.protocol.QosProtocolWrapper.export(QosProtocolWrapper.java:64) ~[dubbo-2.7.8.jar:2.7.8]
	at org.apache.dubbo.rpc.Protocol$Adaptive.export(Protocol$Adaptive.java) ~[dubbo-2.7.8.jar:2.7.8]
	at org.apache.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:492) ~[dubbo-2.7.8.jar:2.7.8]
	at org.apache.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:325) ~[dubbo-2.7.8.jar:2.7.8]
	at org.apache.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:300) ~[dubbo-2.7.8.jar:2.7.8]
	at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:206) ~[dubbo-2.7.8.jar:2.7.8]
	at org.apache.dubbo.config.bootstrap.DubboBootstrap.lambda$exportServices$15(DubboBootstrap.java:1103) ~[dubbo-2.7.8.jar:2.7.8]
	at java.util.HashMap$Values.forEach(HashMap.java:980) ~[na:1.8.0_144]
	at org.apache.dubbo.config.bootstrap.DubboBootstrap.exportServices(DubboBootstrap.java:1090) ~[dubbo-2.7.8.jar:2.7.8]
	at org.apache.dubbo.config.bootstrap.DubboBootstrap.start(DubboBootstrap.java:901) ~[dubbo-2.7.8.jar:2.7.8]
	at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onContextRefreshedEvent(DubboBootstrapApplicationListener.java:59) ~[dubbo-2.7.8.jar:2.7.8]
	at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onApplicationContextEvent(DubboBootstrapApplicationListener.java:52) ~[dubbo-2.7.8.jar:2.7.8]
	at org.apache.dubbo.config.spring.context.OneTimeExecutionApplicationContextEventListener.onApplicationEvent(OneTimeExecutionApplicationContextEventListener.java:40) ~[dubbo-2.7.8.jar:2.7.8]
	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-5.3.2.jar:5.3.2]
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-5.3.2.jar:5.3.2]
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-5.3.2.jar:5.3.2]
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:426) ~[spring-context-5.3.2.jar:5.3.2]
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:383) ~[spring-context-5.3.2.jar:5.3.2]
	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:943) ~[spring-context-5.3.2.jar:5.3.2]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:591) ~[spring-context-5.3.2.jar:5.3.2]
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144) ~[spring-boot-2.4.1.jar:2.4.1]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:767) [spring-boot-2.4.1.jar:2.4.1]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) [spring-boot-2.4.1.jar:2.4.1]
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426) [spring-boot-2.4.1.jar:2.4.1]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:326) [spring-boot-2.4.1.jar:2.4.1]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1309) [spring-boot-2.4.1.jar:2.4.1]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1298) [spring-boot-2.4.1.jar:2.4.1]
	at com.example.dubboprovider.DubboProviderApplication.main(DubboProviderApplication.java:12) [classes/:na]
Caused by: org.apache.dubbo.rpc.RpcException: Failed to register dubbo://192.168.0.101:20880/com.luo.services.ProviderService?accesslog=true&anyhost=true&application=service-provider&delay=-1&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.luo.services.ProviderService&metadata-type=remote&methods=sayHello&pid=3352&release=2.7.8&retries=1&revision=1.0.0&side=provider&timeout=3000&timestamp=1608540769535&version=1.0.0 to zookeeper zookeeper://47.98.159.35:2181/org.apache.dubbo.registry.RegistryService?application=service-provider&dubbo=2.0.2&interface=org.apache.dubbo.registry.RegistryService&pid=3352&qos.enable=false&register=true&release=2.7.8&timestamp=1608540769535, cause: KeeperErrorCode = Unimplemented for /dubbo
	at org.apache.dubbo.registry.zookeeper.ZookeeperRegistry.doRegister(ZookeeperRegistry.java:131) ~[dubbo-2.7.8.jar:2.7.8]
	at org.apache.dubbo.registry.support.FailbackRegistry.register(FailbackRegistry.java:240) ~[dubbo-2.7.8.jar:2.7.8]
	... 33 common frames omitted
Caused by: java.lang.IllegalStateException: KeeperErrorCode = Unimplemented for /dubbo
	at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.createPersistent(CuratorZookeeperClient.java:94) ~[dubbo-2.7.8.jar:2.7.8]
	at org.apache.dubbo.remoting.zookeeper.support.AbstractZookeeperClient.create(AbstractZookeeperClient.java:89) ~[dubbo-2.7.8.jar:2.7.8]
	at org.apache.dubbo.remoting.zookeeper.support.AbstractZookeeperClient.create(AbstractZookeeperClient.java:84) ~[dubbo-2.7.8.jar:2.7.8]
	at org.apache.dubbo.remoting.zookeeper.support.AbstractZookeeperClient.create(AbstractZookeeperClient.java:84) ~[dubbo-2.7.8.jar:2.7.8]
	at org.apache.dubbo.remoting.zookeeper.support.AbstractZookeeperClient.create(AbstractZookeeperClient.java:84) ~[dubbo-2.7.8.jar:2.7.8]
	at org.apache.dubbo.registry.zookeeper.ZookeeperRegistry.doRegister(ZookeeperRegistry.java:129) ~[dubbo-2.7.8.jar:2.7.8]
	... 34 common frames omitted
Caused by: org.apache.zookeeper.KeeperException$UnimplementedException: KeeperErrorCode = Unimplemented for /dubbo
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:103) ~[zookeeper-3.5.3-beta.jar:3.5.3-beta-8ce2

解决方案

 <!-- zookeeper客户端 -->
        <!-- https://mvnrepository.com/artifact/org.apache.curator/curator-framework -->
        <dependency>
            <groupId>org.apache.curator</groupId>
            <artifactId>curator-framework</artifactId>
            <version>4.2.0</version>
            <!-- 先排除自带的zookeeper3.5.3版本-->
            <exclusions>
                <exclusion>
                    <groupId>org.apache.zookeeper</groupId>
                    <artifactId>zookeeper</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <!-- 引入和服务器zookeeper一样的版本的jar -->
        <dependency>
            <groupId>org.apache.zookeeper</groupId>
            <artifactId>zookeeper</artifactId>
            <version>3.4.14</version>
        </dependency>

成功解决。。。

猜你喜欢

转载自blog.csdn.net/qq_42224683/article/details/111478757