zookeeper异常之instance must be started before calling this method

1.异常描述

/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/bin/java "-javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=50651:/Applications/IntelliJ IDEA.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath /Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/lib/packager.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/lib/tools.jar:/Users/gaoxinfu/gupaoedu/gupaoedu/3.分布式与微服务/3.5.分布式服务治理/3.5.17-18.ApacheDubbo的基本认识/demo/demo-gupao-dubbo-example02/demo-gupao-dubbo-example02-provider/target/test-classes:/Users/gaoxinfu/gupaoedu/gupaoedu/3.分布式与微服务/3.5.分布式服务治理/3.5.17-18.ApacheDubbo的基本认识/demo/demo-gupao-dubbo-example02/demo-gupao-dubbo-example02-provider/target/classes:/Users/gaoxinfu/.m2/repository/junit/junit/4.11/junit-4.11.jar:/Users/gaoxinfu/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/Users/gaoxinfu/gupaoedu/gupaoedu/3.分布式与微服务/3.5.分布式服务治理/3.5.17-18.ApacheDubbo的基本认识/demo/demo-gupao-dubbo-example02/demo-gupao-dubbo-example02-api/target/classes:/Users/gaoxinfu/.m2/repository/org/apache/dubbo/dubbo/2.7.2/dubbo-2.7.2.jar:/Users/gaoxinfu/.m2/repository/org/springframework/spring-context/4.3.16.RELEASE/spring-context-4.3.16.RELEASE.jar:/Users/gaoxinfu/.m2/repository/org/springframework/spring-aop/4.3.16.RELEASE/spring-aop-4.3.16.RELEASE.jar:/Users/gaoxinfu/.m2/repository/org/springframework/spring-beans/4.3.16.RELEASE/spring-beans-4.3.16.RELEASE.jar:/Users/gaoxinfu/.m2/repository/org/springframework/spring-core/4.3.16.RELEASE/spring-core-4.3.16.RELEASE.jar:/Users/gaoxinfu/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar:/Users/gaoxinfu/.m2/repository/org/springframework/spring-expression/4.3.16.RELEASE/spring-expression-4.3.16.RELEASE.jar:/Users/gaoxinfu/.m2/repository/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar:/Users/gaoxinfu/.m2/repository/io/netty/netty-all/4.1.25.Final/netty-all-4.1.25.Final.jar:/Users/gaoxinfu/.m2/repository/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar:/Users/gaoxinfu/.m2/repository/org/yaml/snakeyaml/1.20/snakeyaml-1.20.jar:/Users/gaoxinfu/.m2/repository/org/slf4j/slf4j-api/1.7.26/slf4j-api-1.7.26.jar:/Users/gaoxinfu/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar:/Users/gaoxinfu/.m2/repository/ch/qos/logback/logback-core/1.2.3/logback-core-1.2.3.jar:/Users/gaoxinfu/.m2/repository/org/apache/curator/curator-framework/4.0.0/curator-framework-4.0.0.jar:/Users/gaoxinfu/.m2/repository/org/apache/curator/curator-client/4.0.0/curator-client-4.0.0.jar:/Users/gaoxinfu/.m2/repository/org/apache/zookeeper/zookeeper/3.5.3-beta/zookeeper-3.5.3-beta.jar:/Users/gaoxinfu/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar:/Users/gaoxinfu/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar:/Users/gaoxinfu/.m2/repository/io/netty/netty/3.10.5.Final/netty-3.10.5.Final.jar:/Users/gaoxinfu/.m2/repository/com/google/guava/guava/20.0/guava-20.0.jar:/Users/gaoxinfu/.m2/repository/org/apache/curator/curator-recipes/4.0.0/curator-recipes-4.0.0.jar com.gaoxinfu.demo.gupao.dubbo.login.service.impl.LoginServiceImplTest
log4j:WARN No appenders could be found for logger (org.apache.dubbo.common.logger.LoggerFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
09:08:18,469 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
09:08:18,469 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
09:08:18,470 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/Users/gaoxinfu/gupaoedu/gupaoedu/3.%e5%88%86%e5%b8%83%e5%bc%8f%e4%b8%8e%e5%be%ae%e6%9c%8d%e5%8a%a1/3.5.%e5%88%86%e5%b8%83%e5%bc%8f%e6%9c%8d%e5%8a%a1%e6%b2%bb%e7%90%86/3.5.17-18.ApacheDubbo%e7%9a%84%e5%9f%ba%e6%9c%ac%e8%ae%a4%e8%af%86/demo/demo-gupao-dubbo-example02/demo-gupao-dubbo-example02-provider/target/classes/logback.xml]
09:08:18,510 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
09:08:18,511 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
09:08:18,516 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
09:08:18,550 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - This appender no longer admits a layout as a sub-component, set an encoder instead.
09:08:18,550 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
09:08:18,550 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
09:08:18,550 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - ROOT level set to DEBUG
09:08:18,551 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
09:08:18,551 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
09:08:18,552 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@58a9760d - Registering current configuration as safe fallback point

2019-08-04 09:08:18,797 INFO  [main] org.apache.zookeeper.ZooKeeper - Client environment:zookeeper.version=3.5.3-beta-8ce24f9e675cbefffb8f21a47e06b42864475a60, built on 04/03/2017 16:19 GMT
2019-08-04 09:08:18,799 INFO  [main] org.apache.zookeeper.ZooKeeper - Client environment:host.name=192.168.16.102
2019-08-04 09:08:18,799 INFO  [main] org.apache.zookeeper.ZooKeeper - Client environment:java.version=1.8.0_211
2019-08-04 09:08:18,799 INFO  [main] org.apache.zookeeper.ZooKeeper - Client environment:java.vendor=Oracle Corporation
2019-08-04 09:08:18,799 INFO  [main] org.apache.zookeeper.ZooKeeper - Client environment:java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre
2019-08-04 09:08:18,799 INFO  [main] org.apache.zookeeper.ZooKeeper - Client environment:java.class.path=/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/lib/packager.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/lib/tools.jar:/Users/gaoxinfu/gupaoedu/gupaoedu/3.分布式与微服务/3.5.分布式服务治理/3.5.17-18.ApacheDubbo的基本认识/demo/demo-gupao-dubbo-example02/demo-gupao-dubbo-example02-provider/target/test-classes:/Users/gaoxinfu/gupaoedu/gupaoedu/3.分布式与微服务/3.5.分布式服务治理/3.5.17-18.ApacheDubbo的基本认识/demo/demo-gupao-dubbo-example02/demo-gupao-dubbo-example02-provider/target/classes:/Users/gaoxinfu/.m2/repository/junit/junit/4.11/junit-4.11.jar:/Users/gaoxinfu/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/Users/gaoxinfu/gupaoedu/gupaoedu/3.分布式与微服务/3.5.分布式服务治理/3.5.17-18.ApacheDubbo的基本认识/demo/demo-gupao-dubbo-example02/demo-gupao-dubbo-example02-api/target/classes:/Users/gaoxinfu/.m2/repository/org/apache/dubbo/dubbo/2.7.2/dubbo-2.7.2.jar:/Users/gaoxinfu/.m2/repository/org/springframework/spring-context/4.3.16.RELEASE/spring-context-4.3.16.RELEASE.jar:/Users/gaoxinfu/.m2/repository/org/springframework/spring-aop/4.3.16.RELEASE/spring-aop-4.3.16.RELEASE.jar:/Users/gaoxinfu/.m2/repository/org/springframework/spring-beans/4.3.16.RELEASE/spring-beans-4.3.16.RELEASE.jar:/Users/gaoxinfu/.m2/repository/org/springframework/spring-core/4.3.16.RELEASE/spring-core-4.3.16.RELEASE.jar:/Users/gaoxinfu/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar:/Users/gaoxinfu/.m2/repository/org/springframework/spring-expression/4.3.16.RELEASE/spring-expression-4.3.16.RELEASE.jar:/Users/gaoxinfu/.m2/repository/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar:/Users/gaoxinfu/.m2/repository/io/netty/netty-all/4.1.25.Final/netty-all-4.1.25.Final.jar:/Users/gaoxinfu/.m2/repository/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar:/Users/gaoxinfu/.m2/repository/org/yaml/snakeyaml/1.20/snakeyaml-1.20.jar:/Users/gaoxinfu/.m2/repository/org/slf4j/slf4j-api/1.7.26/slf4j-api-1.7.26.jar:/Users/gaoxinfu/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar:/Users/gaoxinfu/.m2/repository/ch/qos/logback/logback-core/1.2.3/logback-core-1.2.3.jar:/Users/gaoxinfu/.m2/repository/org/apache/curator/curator-framework/4.0.0/curator-framework-4.0.0.jar:/Users/gaoxinfu/.m2/repository/org/apache/curator/curator-client/4.0.0/curator-client-4.0.0.jar:/Users/gaoxinfu/.m2/repository/org/apache/zookeeper/zookeeper/3.5.3-beta/zookeeper-3.5.3-beta.jar:/Users/gaoxinfu/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar:/Users/gaoxinfu/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar:/Users/gaoxinfu/.m2/repository/io/netty/netty/3.10.5.Final/netty-3.10.5.Final.jar:/Users/gaoxinfu/.m2/repository/com/google/guava/guava/20.0/guava-20.0.jar:/Users/gaoxinfu/.m2/repository/org/apache/curator/curator-recipes/4.0.0/curator-recipes-4.0.0.jar:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar
2019-08-04 09:08:18,799 INFO  [main] org.apache.zookeeper.ZooKeeper - Client environment:java.library.path=/Users/gaoxinfu/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
2019-08-04 09:08:18,799 INFO  [main] org.apache.zookeeper.ZooKeeper - Client environment:java.io.tmpdir=/var/folders/l7/t6tn885s3tx1s1yfjlcs3wx40000gn/T/
2019-08-04 09:08:18,799 INFO  [main] org.apache.zookeeper.ZooKeeper - Client environment:java.compiler=<NA>
2019-08-04 09:08:18,799 INFO  [main] org.apache.zookeeper.ZooKeeper - Client environment:os.name=Mac OS X
2019-08-04 09:08:18,799 INFO  [main] org.apache.zookeeper.ZooKeeper - Client environment:os.arch=x86_64
2019-08-04 09:08:18,799 INFO  [main] org.apache.zookeeper.ZooKeeper - Client environment:os.version=10.14.5
2019-08-04 09:08:18,799 INFO  [main] org.apache.zookeeper.ZooKeeper - Client environment:user.name=gaoxinfu
2019-08-04 09:08:18,799 INFO  [main] org.apache.zookeeper.ZooKeeper - Client environment:user.home=/Users/gaoxinfu
2019-08-04 09:08:18,799 INFO  [main] org.apache.zookeeper.ZooKeeper - Client environment:user.dir=/Users/gaoxinfu/gupaoedu/gupaoedu/3.分布式与微服务/3.5.分布式服务治理/3.5.17-18.ApacheDubbo的基本认识/demo/demo-gupao-dubbo-example02
2019-08-04 09:08:18,799 INFO  [main] org.apache.zookeeper.ZooKeeper - Client environment:os.memory.free=109MB
2019-08-04 09:08:18,799 INFO  [main] org.apache.zookeeper.ZooKeeper - Client environment:os.memory.max=1820MB
2019-08-04 09:08:18,799 INFO  [main] org.apache.zookeeper.ZooKeeper - Client environment:os.memory.total=123MB
2019-08-04 09:08:18,841 INFO  [main] o.a.c.f.i.CuratorFrameworkImpl - Starting
2019-08-04 09:08:18,843 DEBUG [main] o.a.c.CuratorZookeeperClient - Starting
2019-08-04 09:08:18,843 DEBUG [main] o.apache.curator.ConnectionState - Starting
2019-08-04 09:08:18,843 DEBUG [main] o.apache.curator.ConnectionState - reset
2019-08-04 09:08:18,846 INFO  [main] org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=192.168.16.102:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@76a4ebf2
2019-08-04 09:08:18,859 INFO  [main] o.a.zookeeper.ClientCnxnSocket - jute.maxbuffer value is 4194304 Bytes
2019-08-04 09:08:18,870 INFO  [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Opening socket connection to server 192.168.16.102/192.168.16.102:2181. Will not attempt to authenticate using SASL (unknown error)
2019-08-04 09:08:18,881 INFO  [main] o.a.c.f.i.CuratorFrameworkImpl - Default schema
2019-08-04 09:08:18,896 INFO  [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Socket connection established, initiating session, client: /192.168.16.102:50660, server: 192.168.16.102/192.168.16.102:2181
2019-08-04 09:08:18,898 DEBUG [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Session establishment request sent on 192.168.16.102/192.168.16.102:2181
2019-08-04 09:08:18,908 INFO  [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Session establishment complete on server 192.168.16.102/192.168.16.102:2181, sessionid = 0x16c5a1cb0d50008, negotiated timeout = 40000
2019-08-04 09:08:18,910 DEBUG [main-EventThread] o.apache.curator.ConnectionState - Negotiated session timeout: 40000
2019-08-04 09:08:18,913 INFO  [main-EventThread] o.a.c.f.s.ConnectionStateManager - State change: CONNECTED
2019-08-04 09:08:18,921 DEBUG [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x16c5a1cb0d50008, packet:: clientPath:/zookeeper/config serverPath:/zookeeper/config finished:false header:: 1,4  replyHeader:: 1,19,-101  request:: '/zookeeper/config,T  response::  
2019-08-04 09:08:18,932 DEBUG [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x16c5a1cb0d50008, packet:: clientPath:/dubbo/config serverPath:/dubbo/config finished:false header:: 2,4  replyHeader:: 2,19,-101  request:: '/dubbo/config,T  response::  
2019-08-04 09:08:18,932 DEBUG [main-EventThread] o.a.c.f.recipes.cache.TreeCache - processResult: CuratorEventImpl{type=GET_DATA, resultCode=-101, path='/dubbo/config', name='null', children=null, context=null, stat=null, data=null, watchedEvent=null, aclList=null, opResults=null}
2019-08-04 09:08:18,935 DEBUG [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x16c5a1cb0d50008, packet:: clientPath:/dubbo/config serverPath:/dubbo/config finished:false header:: 3,12  replyHeader:: 3,19,-101  request:: '/dubbo/config,T  response:: v{} 
2019-08-04 09:08:18,936 DEBUG [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x16c5a1cb0d50008, packet:: clientPath:/dubbo/config serverPath:/dubbo/config finished:false header:: 4,3  replyHeader:: 4,19,-101  request:: '/dubbo/config,T  response::  
2019-08-04 09:08:18,939 DEBUG [main-EventThread] o.a.c.f.recipes.cache.TreeCache - processResult: CuratorEventImpl{type=CHILDREN, resultCode=-101, path='/dubbo/config', name='null', children=[], context=null, stat=null, data=null, watchedEvent=null, aclList=null, opResults=null}
2019-08-04 09:08:18,940 DEBUG [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x16c5a1cb0d50008, packet:: clientPath:/dubbo/config serverPath:/dubbo/config finished:false header:: 5,3  replyHeader:: 5,19,-101  request:: '/dubbo/config,T  response::  
2019-08-04 09:08:18,940 DEBUG [main-EventThread] o.a.c.f.recipes.cache.TreeCache - publishEvent: TreeCacheEvent{type=INITIALIZED, data=null}
2019-08-04 09:08:18,941 DEBUG [main-EventThread] o.a.c.f.recipes.cache.TreeCache - processResult: CuratorEventImpl{type=EXISTS, resultCode=-101, path='/dubbo/config', name='null', children=null, context=null, stat=null, data=null, watchedEvent=null, aclList=null, opResults=null}
2019-08-04 09:08:18,941 DEBUG [main-EventThread] o.a.c.f.recipes.cache.TreeCache - processResult: CuratorEventImpl{type=EXISTS, resultCode=-101, path='/dubbo/config', name='null', children=null, context=null, stat=null, data=null, watchedEvent=null, aclList=null, opResults=null}
2019-08-04 09:08:18,945 DEBUG [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x16c5a1cb0d50008, packet:: clientPath:null serverPath:null finished:false header:: 6,3  replyHeader:: 6,19,-101  request:: '/dubbo/config/dubbo/dubbo.properties,F  response::  
2019-08-04 09:08:18,946 DEBUG [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x16c5a1cb0d50008, packet:: clientPath:null serverPath:null finished:false header:: 7,3  replyHeader:: 7,19,-101  request:: '/dubbo/config/demo-gupao-dubbo-example02-provider/dubbo.properties,F  response::  
2019-08-04 09:08:19,143 DEBUG [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x16c5a1cb0d50008, packet:: clientPath:null serverPath:null finished:false header:: 8,3  replyHeader:: 8,19,-101  request:: '/dubbo/config/dubbo/demo-gupao-dubbo-example02-provider.configurators,F  response::  
2019-08-04 09:08:19,197 DEBUG [main] i.n.u.i.l.InternalLoggerFactory - Using SLF4J as the default logging framework
2019-08-04 09:08:19,199 DEBUG [main] i.n.c.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 8
2019-08-04 09:08:19,224 DEBUG [main] i.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false
2019-08-04 09:08:19,224 DEBUG [main] i.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512
2019-08-04 09:08:19,240 DEBUG [main] i.n.u.internal.PlatformDependent - Platform: MacOS
2019-08-04 09:08:19,242 DEBUG [main] i.n.u.i.PlatformDependent0 - -Dio.netty.noUnsafe: false
2019-08-04 09:08:19,245 DEBUG [main] i.n.u.i.PlatformDependent0 - Java version: 8
2019-08-04 09:08:19,246 DEBUG [main] i.n.u.i.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available
2019-08-04 09:08:19,246 DEBUG [main] i.n.u.i.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available
2019-08-04 09:08:19,247 DEBUG [main] i.n.u.i.PlatformDependent0 - java.nio.Buffer.address: available
2019-08-04 09:08:19,248 DEBUG [main] i.n.u.i.PlatformDependent0 - direct buffer constructor: available
2019-08-04 09:08:19,250 DEBUG [main] i.n.u.i.PlatformDependent0 - java.nio.Bits.unaligned: available, true
2019-08-04 09:08:19,250 DEBUG [main] i.n.u.i.PlatformDependent0 - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable prior to Java9
2019-08-04 09:08:19,250 DEBUG [main] i.n.u.i.PlatformDependent0 - java.nio.DirectByteBuffer.<init>(long, int): available
2019-08-04 09:08:19,250 DEBUG [main] i.n.u.internal.PlatformDependent - sun.misc.Unsafe: available
2019-08-04 09:08:19,251 DEBUG [main] i.n.u.internal.PlatformDependent - -Dio.netty.tmpdir: /var/folders/l7/t6tn885s3tx1s1yfjlcs3wx40000gn/T (java.io.tmpdir)
2019-08-04 09:08:19,251 DEBUG [main] i.n.u.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model)
2019-08-04 09:08:19,252 DEBUG [main] i.n.u.internal.PlatformDependent - -Dio.netty.noPreferDirect: false
2019-08-04 09:08:19,252 DEBUG [main] i.n.u.internal.PlatformDependent - -Dio.netty.maxDirectMemory: 1908932608 bytes
2019-08-04 09:08:19,252 DEBUG [main] i.n.u.internal.PlatformDependent - -Dio.netty.uninitializedArrayAllocationThreshold: -1
2019-08-04 09:08:19,253 DEBUG [main] i.n.util.internal.CleanerJava6 - java.nio.ByteBuffer.cleaner(): available
2019-08-04 09:08:19,261 DEBUG [main] i.n.u.internal.PlatformDependent - org.jctools-core.MpscChunkedArrayQueue: available
2019-08-04 09:08:19,294 DEBUG [main] i.netty.channel.DefaultChannelId - -Dio.netty.processId: 5351 (auto-detected)
2019-08-04 09:08:19,296 DEBUG [main] io.netty.util.NetUtil - -Djava.net.preferIPv4Stack: false
2019-08-04 09:08:19,297 DEBUG [main] io.netty.util.NetUtil - -Djava.net.preferIPv6Addresses: false
2019-08-04 09:08:19,299 DEBUG [main] io.netty.util.NetUtil - Loopback interface: lo0 (lo0, 0:0:0:0:0:0:0:1%lo0)
2019-08-04 09:08:19,299 DEBUG [main] io.netty.util.NetUtil - Failed to get SOMAXCONN from sysctl and file /proc/sys/net/core/somaxconn. Default: 128
2019-08-04 09:08:19,301 DEBUG [main] i.netty.channel.DefaultChannelId - -Dio.netty.machineId: 38:f9:d3:ff:fe:69:5b:c8 (auto-detected)
2019-08-04 09:08:19,307 DEBUG [main] i.n.u.i.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024
2019-08-04 09:08:19,307 DEBUG [main] i.n.u.i.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096
2019-08-04 09:08:19,316 DEBUG [main] i.n.util.ResourceLeakDetector - -Dio.netty.leakDetection.level: simple
2019-08-04 09:08:19,316 DEBUG [main] i.n.util.ResourceLeakDetector - -Dio.netty.leakDetection.targetRecords: 4
2019-08-04 09:08:19,391 DEBUG [main] i.n.b.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 8
2019-08-04 09:08:19,392 DEBUG [main] i.n.b.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 8
2019-08-04 09:08:19,392 DEBUG [main] i.n.b.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192
2019-08-04 09:08:19,392 DEBUG [main] i.n.b.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 11
2019-08-04 09:08:19,392 DEBUG [main] i.n.b.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 16777216
2019-08-04 09:08:19,392 DEBUG [main] i.n.b.PooledByteBufAllocator - -Dio.netty.allocator.tinyCacheSize: 512
2019-08-04 09:08:19,392 DEBUG [main] i.n.b.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256
2019-08-04 09:08:19,392 DEBUG [main] i.n.b.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64
2019-08-04 09:08:19,392 DEBUG [main] i.n.b.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768
2019-08-04 09:08:19,392 DEBUG [main] i.n.b.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192
2019-08-04 09:08:19,392 DEBUG [main] i.n.b.PooledByteBufAllocator - -Dio.netty.allocator.useCacheForAllThreads: true
2019-08-04 09:08:19,403 DEBUG [main] io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: pooled
2019-08-04 09:08:19,404 DEBUG [main] io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 0
2019-08-04 09:08:19,404 DEBUG [main] io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384
2019-08-04 09:08:19,421 DEBUG [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x16c5a1cb0d50008, packet:: clientPath:null serverPath:null finished:false header:: 9,3  replyHeader:: 9,19,-101  request:: '/dubbo/config/dubbo/com.gaoxinfu.demo.gupao.dubbo.login.service.LoginService.configurators,F  response::  
2019-08-04 09:08:19,557 DEBUG [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x16c5a1cb0d50008, packet:: clientPath:null serverPath:null finished:false header:: 10,3  replyHeader:: 10,19,-101  request:: '/dubbo/com.gaoxinfu.demo.gupao.dubbo.login.service.LoginService/providers,F  response::  
2019-08-04 09:08:19,558 DEBUG [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x16c5a1cb0d50008, packet:: clientPath:null serverPath:null finished:false header:: 11,3  replyHeader:: 11,19,-101  request:: '/dubbo/com.gaoxinfu.demo.gupao.dubbo.login.service.LoginService,F  response::  
2019-08-04 09:08:19,559 DEBUG [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x16c5a1cb0d50008, packet:: clientPath:null serverPath:null finished:false header:: 12,3  replyHeader:: 12,19,-101  request:: '/dubbo,F  response::  
2019-08-04 09:08:19,581 DEBUG [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x16c5a1cb0d50008, packet:: clientPath:null serverPath:null finished:false header:: 13,15  replyHeader:: 13,-1,-6  request:: '/dubbo,#3139322e3136382e31362e313032,v{s{31,s{'world,'anyone}}},0  response::  
2019-08-04 09:08:19,581 INFO  [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Unable to read additional data from server sessionid 0x16c5a1cb0d50008, likely server has closed socket, closing socket connection and attempting reconnect
2019-08-04 09:08:19,686 DEBUG [main-EventThread] o.a.c.f.recipes.cache.TreeCache - process: WatchedEvent state:Disconnected type:None path:null
2019-08-04 09:08:19,686 INFO  [main-EventThread] o.a.c.f.s.ConnectionStateManager - State change: SUSPENDED
2019-08-04 09:08:19,687 DEBUG [Curator-ConnectionStateManager-0] o.a.c.f.recipes.cache.TreeCache - publishEvent: TreeCacheEvent{type=CONNECTION_SUSPENDED, data=null}
2019-08-04 09:08:19,690 DEBUG [Thread-0] org.apache.curator.RetryLoop - Retry-able exception received
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /dubbo/com.gaoxinfu.demo.gupao.dubbo.login.service.LoginService/providers/dubbo%3A%2F%2F192.168.16.102%3A20880%2Fcom.gaoxinfu.demo.gupao.dubbo.login.service.LoginService%3Fanyhost%3Dtrue%26application%3Ddemo-gupao-dubbo-example02-provider%26bean.name%3Dcom.gaoxinfu.demo.gupao.dubbo.login.service.LoginService%26deprecated%3Dfalse%26dubbo%3D2.0.2%26dynamic%3Dtrue%26generic%3Dfalse%26interface%3Dcom.gaoxinfu.demo.gupao.dubbo.login.service.LoginService%26methods%3Dlogin%26pid%3D5351%26register%3Dtrue%26release%3D2.7.2%26side%3Dprovider%26timestamp%3D1564880898965
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
	at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
	at org.apache.zookeeper.ZooKeeper.delete(ZooKeeper.java:1681)
	at org.apache.curator.framework.imps.DeleteBuilderImpl$5.call(DeleteBuilderImpl.java:274)
	at org.apache.curator.framework.imps.DeleteBuilderImpl$5.call(DeleteBuilderImpl.java:268)
	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.DeleteBuilderImpl.pathInForeground(DeleteBuilderImpl.java:265)
	at org.apache.curator.framework.imps.DeleteBuilderImpl.forPath(DeleteBuilderImpl.java:249)
	at org.apache.curator.framework.imps.DeleteBuilderImpl.forPath(DeleteBuilderImpl.java:34)
	at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.delete(CuratorZookeeperClient.java:147)
	at org.apache.dubbo.registry.zookeeper.ZookeeperRegistry.doUnregister(ZookeeperRegistry.java:124)
	at org.apache.dubbo.registry.support.FailbackRegistry.unregister(FailbackRegistry.java:266)
	at org.apache.dubbo.registry.support.AbstractRegistry.destroy(AbstractRegistry.java:465)
	at org.apache.dubbo.registry.support.FailbackRegistry.destroy(FailbackRegistry.java:401)
	at org.apache.dubbo.registry.zookeeper.ZookeeperRegistry.destroy(ZookeeperRegistry.java:104)
	at org.apache.dubbo.registry.support.AbstractRegistryFactory.destroyAll(AbstractRegistryFactory.java:75)
	at org.apache.dubbo.config.DubboShutdownHook.doDestroy(DubboShutdownHook.java:89)
	at org.apache.dubbo.config.spring.extension.SpringExtensionFactory$ShutdownHookListener.onApplicationEvent(SpringExtensionFactory.java:114)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347)
	at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:991)
	at org.springframework.context.support.AbstractApplicationContext$2.run(AbstractApplicationContext.java:929)
2019-08-04 09:08:20,695 DEBUG [Thread-0] org.apache.curator.RetryLoop - Retrying operation
2019-08-04 09:08:21,326 INFO  [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Opening socket connection to server 192.168.16.102/192.168.16.102:2181. Will not attempt to authenticate using SASL (unknown error)
2019-08-04 09:08:21,328 INFO  [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Socket connection established, initiating session, client: /192.168.16.102:50667, server: 192.168.16.102/192.168.16.102:2181
2019-08-04 09:08:21,331 DEBUG [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Session establishment request sent on 192.168.16.102/192.168.16.102:2181
2019-08-04 09:08:21,332 INFO  [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Session establishment complete on server 192.168.16.102/192.168.16.102:2181, sessionid = 0x16c5a1cb0d50008, negotiated timeout = 40000
2019-08-04 09:08:21,332 DEBUG [main-EventThread] o.a.c.f.recipes.cache.TreeCache - process: WatchedEvent state:SyncConnected type:None path:null
2019-08-04 09:08:21,332 DEBUG [main-EventThread] o.apache.curator.ConnectionState - Negotiated session timeout: 40000
2019-08-04 09:08:21,332 INFO  [main-EventThread] o.a.c.f.s.ConnectionStateManager - State change: RECONNECTED
2019-08-04 09:08:21,333 DEBUG [Curator-ConnectionStateManager-0] o.a.c.f.recipes.cache.TreeCache - publishEvent: TreeCacheEvent{type=CONNECTION_RECONNECTED, data=null}
2019-08-04 09:08:21,334 DEBUG [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x16c5a1cb0d50008, packet:: clientPath:null serverPath:null finished:false header:: 14,101  replyHeader:: 14,19,0  request:: 19,v{},v{'/dubbo/config},v{}  response:: null
2019-08-04 09:08:21,334 DEBUG [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x16c5a1cb0d50008, packet:: clientPath:null serverPath:null finished:false header:: 15,2  replyHeader:: 15,20,-101  request:: '/dubbo/com.gaoxinfu.demo.gupao.dubbo.login.service.LoginService/providers/dubbo%253A%252F%252F192.168.16.102%253A20880%252Fcom.gaoxinfu.demo.gupao.dubbo.login.service.LoginService%253Fanyhost%253Dtrue%2526application%253Ddemo-gupao-dubbo-example02-provider%2526bean.name%253Dcom.gaoxinfu.demo.gupao.dubbo.login.service.LoginService%2526deprecated%253Dfalse%2526dubbo%253D2.0.2%2526dynamic%253Dtrue%2526generic%253Dfalse%2526interface%253Dcom.gaoxinfu.demo.gupao.dubbo.login.service.LoginService%2526methods%253Dlogin%2526pid%253D5351%2526register%253Dtrue%2526release%253D2.7.2%2526side%253Dprovider%2526timestamp%253D1564880898965,-1  response:: null
2019-08-04 09:08:21,335 DEBUG [Thread-0] o.a.c.f.i.CuratorFrameworkImpl - Closing
2019-08-04 09:08:21,335 DEBUG [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x16c5a1cb0d50008, packet:: clientPath:/zookeeper/config serverPath:/zookeeper/config finished:false header:: 16,4  replyHeader:: 16,20,-101  request:: '/zookeeper/config,T  response::  
2019-08-04 09:08:21,335 DEBUG [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x16c5a1cb0d50008, packet:: clientPath:/dubbo/config serverPath:/dubbo/config finished:false header:: 17,4  replyHeader:: 17,20,-101  request:: '/dubbo/config,T  response::  
2019-08-04 09:08:21,335 DEBUG [main-EventThread] o.a.c.f.recipes.cache.TreeCache - processResult: CuratorEventImpl{type=GET_DATA, resultCode=-101, path='/dubbo/config', name='null', children=null, context=null, stat=null, data=null, watchedEvent=null, aclList=null, opResults=null}
2019-08-04 09:08:21,336 DEBUG [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x16c5a1cb0d50008, packet:: clientPath:/dubbo/config serverPath:/dubbo/config finished:false header:: 18,12  replyHeader:: 18,20,-101  request:: '/dubbo/config,T  response:: v{} 
2019-08-04 09:08:21,336 ERROR [main-EventThread] o.a.c.f.i.CuratorFrameworkImpl - Background exception was not retry-able or retry gave up
java.lang.IllegalStateException: instance must be started before calling this method
	at org.apache.curator.shaded.com.google.common.base.Preconditions.checkState(Preconditions.java:444)
	at org.apache.curator.framework.imps.CuratorFrameworkImpl.checkExists(CuratorFrameworkImpl.java:426)
	at org.apache.curator.framework.recipes.cache.TreeCache$TreeNode.wasDeleted(TreeCache.java:326)
	at org.apache.curator.framework.recipes.cache.TreeCache$TreeNode.processResult(TreeCache.java:479)
	at org.apache.curator.framework.imps.CuratorFrameworkImpl.sendToBackgroundCallback(CuratorFrameworkImpl.java:852)
	at org.apache.curator.framework.imps.CuratorFrameworkImpl.processBackgroundOperation(CuratorFrameworkImpl.java:629)
	at org.apache.curator.framework.imps.WatcherRemovalFacade.processBackgroundOperation(WatcherRemovalFacade.java:152)
	at org.apache.curator.framework.imps.GetDataBuilderImpl$3.processResult(GetDataBuilderImpl.java:272)
	at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:590)
	at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:499)
2019-08-04 09:08:21,336 INFO  [Curator-Framework-0] o.a.c.f.i.CuratorFrameworkImpl - backgroundOperationsLoop exiting
2019-08-04 09:08:21,336 DEBUG [Thread-0] o.a.c.CuratorZookeeperClient - Closing
2019-08-04 09:08:21,336 DEBUG [Thread-0] o.apache.curator.ConnectionState - Closing
2019-08-04 09:08:21,336 DEBUG [main-EventThread] o.a.c.f.recipes.cache.TreeCache - processResult: CuratorEventImpl{type=CHILDREN, resultCode=-101, path='/dubbo/config', name='null', children=[], context=null, stat=null, data=null, watchedEvent=null, aclList=null, opResults=null}
2019-08-04 09:08:21,336 ERROR [main-EventThread] o.a.c.f.i.CuratorFrameworkImpl - Background exception was not retry-able or retry gave up
java.lang.IllegalStateException: instance must be started before calling this method
	at org.apache.curator.shaded.com.google.common.base.Preconditions.checkState(Preconditions.java:444)
	at org.apache.curator.framework.imps.CuratorFrameworkImpl.checkExists(CuratorFrameworkImpl.java:426)
	at org.apache.curator.framework.recipes.cache.TreeCache$TreeNode.wasDeleted(TreeCache.java:326)
	at org.apache.curator.framework.recipes.cache.TreeCache$TreeNode.processResult(TreeCache.java:433)
	at org.apache.curator.framework.imps.CuratorFrameworkImpl.sendToBackgroundCallback(CuratorFrameworkImpl.java:852)
	at org.apache.curator.framework.imps.CuratorFrameworkImpl.processBackgroundOperation(CuratorFrameworkImpl.java:629)
	at org.apache.curator.framework.imps.WatcherRemovalFacade.processBackgroundOperation(WatcherRemovalFacade.java:152)
	at org.apache.curator.framework.imps.GetChildrenBuilderImpl$2.processResult(GetChildrenBuilderImpl.java:187)
	at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:619)
	at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:499)
2019-08-04 09:08:21,338 DEBUG [Thread-0] org.apache.zookeeper.ZooKeeper - Closing session: 0x16c5a1cb0d50008
2019-08-04 09:08:21,338 DEBUG [Thread-0] org.apache.zookeeper.ClientCnxn - Closing client for session: 0x16c5a1cb0d50008
2019-08-04 09:08:21,339 DEBUG [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x16c5a1cb0d50008, packet:: clientPath:null serverPath:null finished:false header:: 19,-11  replyHeader:: 19,21,0  request:: null response:: null
2019-08-04 09:08:21,339 DEBUG [Thread-0] org.apache.zookeeper.ClientCnxn - Disconnecting client for session: 0x16c5a1cb0d50008
2019-08-04 09:08:21,339 DEBUG [main-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - An exception was thrown while closing send thread for session 0x16c5a1cb0d50008 : Unable to read additional data from server sessionid 0x16c5a1cb0d50008, likely server has closed socket
2019-08-04 09:08:21,339 INFO  [Thread-0] org.apache.zookeeper.ZooKeeper - Session: 0x16c5a1cb0d50008 closed
2019-08-04 09:08:21,339 INFO  [main-EventThread] org.apache.zookeeper.ClientCnxn - EventThread shut down for session: 0x16c5a1cb0d50008
2019-08-04 09:08:21,343 INFO  [Thread-0] o.a.c.f.i.CuratorFrameworkImpl - Starting
2019-08-04 09:08:21,343 DEBUG [Thread-0] o.a.c.CuratorZookeeperClient - Starting
2019-08-04 09:08:21,343 DEBUG [Thread-0] o.apache.curator.ConnectionState - Starting
2019-08-04 09:08:21,343 DEBUG [Thread-0] o.apache.curator.ConnectionState - reset
2019-08-04 09:08:21,343 INFO  [Thread-0] org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=192.168.16.102:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@691673aa
2019-08-04 09:08:21,343 INFO  [Thread-0] o.a.zookeeper.ClientCnxnSocket - jute.maxbuffer value is 4194304 Bytes
2019-08-04 09:08:21,344 INFO  [Thread-0-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Opening socket connection to server 192.168.16.102/192.168.16.102:2181. Will not attempt to authenticate using SASL (unknown error)
2019-08-04 09:08:21,344 INFO  [Thread-0] o.a.c.f.i.CuratorFrameworkImpl - Default schema
2019-08-04 09:08:21,344 INFO  [Thread-0-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Socket connection established, initiating session, client: /192.168.16.102:50668, server: 192.168.16.102/192.168.16.102:2181
2019-08-04 09:08:21,344 DEBUG [Thread-0-SendThread(192.168.16.102:2181)] org.apache.zookeeper.ClientCnxn - Session establishment request sent on 192.168.16.102/192.168.16.102:2181

Process finished with exit code 1

2.解决方案

1.主要原因是你的Curator 版本与安装的zookeeper的版本不一致导致的;
我这里zookeeper安装的版本是3.4.10
但是我pom.xm中引用的curator的版本是4.10.0 版本太高导致的
 <!--zookeeper相关依赖包-->
      <dependency>
        <groupId>org.apache.curator</groupId>
        <artifactId>curator-framework</artifactId>
        <version>4.0.0</version>
      </dependency>
      <dependency>
        <groupId>org.apache.curator</groupId>
        <artifactId>curator-recipes</artifactId>
        <version>4.0.0</version>
      </dependency>

zookeeper3.4.XX 用2.8.XX的curator还是可以的
改为下面

 <!--zookeeper相关依赖包-->
      <dependency>
        <groupId>org.apache.curator</groupId>
        <artifactId>curator-framework</artifactId>
        <version>2.8.0</version>
      </dependency>
      <dependency>
        <groupId>org.apache.curator</groupId>
        <artifactId>curator-recipes</artifactId>
        <version>2.8.0</version>
      </dependency>
Curator 存在版本兼容问题。

Curator 2.x.x-兼容两个zk 3.4.x 和zk 3.5.x,

Curator 3.x.x-兼容兼容zk 3.5
  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

东山富哥

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值