1.1 异常详情
C:\software\jdk-11.0.3\bin\java.exe "-javaagent:C:\software\JetBrains\IntelliJ IDEA 2019.1.3\lib\idea_rt.jar=58803:C:\software\JetBrains\IntelliJ IDEA 2019.1.3\bin" -Dfile.encoding=UTF-8 -classpath F:\IdeaProjects\dobbo\dobbo-provider\target\classes;F:\IdeaProjects\dobbo\dobbo-interface\target\classes;D:\repository\org\apache\curator\curator-framework\4.2.0\curator-framework-4.2.0.jar;D:\repository\org\apache\curator\curator-client\4.2.0\curator-client-4.2.0.jar;D:\repository\org\apache\zookeeper\zookeeper\3.5.4-beta\zookeeper-3.5.4-beta.jar;D:\repository\commons-cli\commons-cli\1.2\commons-cli-1.2.jar;D:\repository\log4j\log4j\1.2.17\log4j-1.2.17.jar;D:\repository\org\apache\yetus\audience-annotations\0.5.0\audience-annotations-0.5.0.jar;D:\repository\io\netty\netty\3.10.6.Final\netty-3.10.6.Final.jar;D:\repository\com\google\guava\guava\27.0.1-jre\guava-27.0.1-jre.jar;D:\repository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;D:\repository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;D:\repository\org\checkerframework\checker-qual\2.5.2\checker-qual-2.5.2.jar;D:\repository\com\google\errorprone\error_prone_annotations\2.2.0\error_prone_annotations-2.2.0.jar;D:\repository\com\google\j2objc\j2objc-annotations\1.1\j2objc-annotations-1.1.jar;D:\repository\org\codehaus\mojo\animal-sniffer-annotations\1.17\animal-sniffer-annotations-1.17.jar;D:\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\repository\org\apache\dubbo\dubbo\2.7.3\dubbo-2.7.3.jar;D:\repository\org\springframework\spring-context\4.3.16.RELEASE\spring-context-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-aop\4.3.16.RELEASE\spring-aop-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-beans\4.3.16.RELEASE\spring-beans-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-core\4.3.16.RELEASE\spring-core-4.3.16.RELEASE.jar;D:\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;D:\repository\org\springframework\spring-expression\4.3.16.RELEASE\spring-expression-4.3.16.RELEASE.jar;D:\repository\org\javassist\javassist\3.20.0-GA\javassist-3.20.0-GA.jar;D:\repository\io\netty\netty-all\4.1.25.Final\netty-all-4.1.25.Final.jar;D:\repository\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar;D:\repository\org\yaml\snakeyaml\1.20\snakeyaml-1.20.jar com.zsx.ProviderApplication
log4j:WARN No appenders could be found for logger (org.springframework.core.env.StandardEnvironment).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [com/zsx/provider.xml]; nested exception is java.io.FileNotFoundException: class path resource [com/zsx/provider.xml] cannot be opened because it does not exist
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:344)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:252)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:127)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:93)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:614)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:515)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93)
at com.zsx.ProviderApplication.main(ProviderApplication.java:10)
Caused by: java.io.FileNotFoundException: class path resource [com/zsx/provider.xml] cannot be opened because it does not exist
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:330)
... 13 more
Process finished with exit code 1
1.2 异常背景:通过复制pom.xml公共依赖,修改pom.xml文件时未修改打包类型pom
1.3 解决方法:将pom修改为jar
1. 异常详情
C:\software\jdk-11.0.3\bin\java.exe "-javaagent:C:\software\JetBrains\IntelliJ IDEA 2019.1.3\lib\idea_rt.jar=59085:C:\software\JetBrains\IntelliJ IDEA 2019.1.3\bin" -Dfile.encoding=UTF-8 -classpath F:\IdeaProjects\dobbo\dobbo-provider\target\classes;F:\IdeaProjects\dobbo\dobbo-interface\target\classes;D:\repository\org\apache\curator\curator-framework\4.2.0\curator-framework-4.2.0.jar;D:\repository\org\apache\curator\curator-client\4.2.0\curator-client-4.2.0.jar;D:\repository\com\google\guava\guava\27.0.1-jre\guava-27.0.1-jre.jar;D:\repository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;D:\repository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;D:\repository\org\checkerframework\checker-qual\2.5.2\checker-qual-2.5.2.jar;D:\repository\com\google\errorprone\error_prone_annotations\2.2.0\error_prone_annotations-2.2.0.jar;D:\repository\com\google\j2objc\j2objc-annotations\1.1\j2objc-annotations-1.1.jar;D:\repository\org\codehaus\mojo\animal-sniffer-annotations\1.17\animal-sniffer-annotations-1.17.jar;D:\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\repository\org\apache\dubbo\dubbo\2.7.3\dubbo-2.7.3.jar;D:\repository\org\springframework\spring-context\4.3.16.RELEASE\spring-context-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-aop\4.3.16.RELEASE\spring-aop-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-beans\4.3.16.RELEASE\spring-beans-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-core\4.3.16.RELEASE\spring-core-4.3.16.RELEASE.jar;D:\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;D:\repository\org\springframework\spring-expression\4.3.16.RELEASE\spring-expression-4.3.16.RELEASE.jar;D:\repository\org\javassist\javassist\3.20.0-GA\javassist-3.20.0-GA.jar;D:\repository\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar;D:\repository\org\yaml\snakeyaml\1.20\snakeyaml-1.20.jar;D:\repository\io\netty\netty-all\4.1.25.Final\netty-all-4.1.25.Final.jar com.zsx.ProviderApplication
9月 10, 2019 3:42:36 下午 org.springframework.context.support.ClassPathXmlApplicationContext prepareRefresh
信息: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@5b87ed94: startup date [Tue Sep 10 15:42:36 CST 2019]; root of context hierarchy
9月 10, 2019 3:42:36 下午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [com/zsx/provider.xml]
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by javassist.ClassPool (file:/D:/repository/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of javassist.ClassPool
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/zookeeper/KeeperException$NoNodeException
at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperTransporter.createZookeeperClient(CuratorZookeeperTransporter.java:26)
at org.apache.dubbo.remoting.zookeeper.support.AbstractZookeeperTransporter.connect(AbstractZookeeperTransporter.java:68)
at org.apache.dubbo.remoting.zookeeper.ZookeeperTransporter$Adaptive.connect(ZookeeperTransporter$Adaptive.java)
at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfiguration.(ZookeeperDynamicConfiguration.java:61)
at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfigurationFactory.createDynamicConfiguration(ZookeeperDynamicConfigurationFactory.java:38)
at org.apache.dubbo.configcenter.AbstractDynamicConfigurationFactory.getDynamicConfiguration(AbstractDynamicConfigurationFactory.java:33)
at org.apache.dubbo.config.AbstractInterfaceConfig.getDynamicConfiguration(AbstractInterfaceConfig.java:314)
at org.apache.dubbo.config.AbstractInterfaceConfig.prepareEnvironment(AbstractInterfaceConfig.java:289)
at org.apache.dubbo.config.AbstractInterfaceConfig.startConfigCenter(AbstractInterfaceConfig.java:279)
at org.apache.dubbo.config.AbstractInterfaceConfig.lambda$null$7(AbstractInterfaceConfig.java:626)
at java.base/java.util.Optional.orElseGet(Optional.java:369)
at org.apache.dubbo.config.AbstractInterfaceConfig.lambda$useRegistryForConfigIfNecessary$8(AbstractInterfaceConfig.java:619)
at java.base/java.util.Optional.ifPresent(Optional.java:183)
at org.apache.dubbo.config.AbstractInterfaceConfig.useRegistryForConfigIfNecessary(AbstractInterfaceConfig.java:617)
at org.apache.dubbo.config.AbstractInterfaceConfig.checkRegistry(AbstractInterfaceConfig.java:207)
at org.apache.dubbo.config.ServiceConfig.checkAndUpdateSubConfigs(ServiceConfig.java:302)
at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:369)
at org.apache.dubbo.config.spring.ServiceBean.export(ServiceBean.java:336)
at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:114)
at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:60)
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.finishRefresh(AbstractApplicationContext.java:883)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93)
at com.zsx.ProviderApplication.main(ProviderApplication.java:10)
Caused by: java.lang.ClassNotFoundException: org.apache.zookeeper.KeeperException$NoNodeException
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 30 more
Process finished with exit code 1
2. 异常背景:启动dobbo服务提供者时,控制台显示异常
3. 异常原因:缺少zookeeper依赖
4. 解决方法:引入zookeeper相关依赖
org.apache.zookeeper
zookeeper
3.5.5
1. 异常详情
C:\software\jdk-11.0.3\bin\java.exe "-javaagent:C:\software\JetBrains\IntelliJ IDEA 2019.1.3\lib\idea_rt.jar=7356:C:\software\JetBrains\IntelliJ IDEA 2019.1.3\bin" -Dfile.encoding=UTF-8 -classpath F:\IdeaProjects\dubbo\dubbo-provider\target\classes;F:\IdeaProjects\dubbo\dubbo-interface\target\classes;D:\repository\org\apache\zookeeper\zookeeper\3.5.5\zookeeper-3.5.5.jar;D:\repository\org\apache\zookeeper\zookeeper-jute\3.5.5\zookeeper-jute-3.5.5.jar;D:\repository\org\apache\yetus\audience-annotations\0.5.0\audience-annotations-0.5.0.jar;D:\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\repository\org\slf4j\slf4j-log4j12\1.7.25\slf4j-log4j12-1.7.25.jar;D:\repository\log4j\log4j\1.2.16\log4j-1.2.16.jar;D:\repository\org\apache\curator\curator-framework\4.2.0\curator-framework-4.2.0.jar;D:\repository\org\apache\curator\curator-recipes\4.2.0\curator-recipes-4.2.0.jar;D:\repository\org\apache\curator\curator-client\4.2.0\curator-client-4.2.0.jar;D:\repository\com\google\guava\guava\27.0.1-jre\guava-27.0.1-jre.jar;D:\repository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;D:\repository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;D:\repository\org\checkerframework\checker-qual\2.5.2\checker-qual-2.5.2.jar;D:\repository\com\google\errorprone\error_prone_annotations\2.2.0\error_prone_annotations-2.2.0.jar;D:\repository\com\google\j2objc\j2objc-annotations\1.1\j2objc-annotations-1.1.jar;D:\repository\org\codehaus\mojo\animal-sniffer-annotations\1.17\animal-sniffer-annotations-1.17.jar;D:\repository\org\apache\dubbo\dubbo-registry-redis\2.7.3\dubbo-registry-redis-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-registry-api\2.7.3\dubbo-registry-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-cluster\2.7.3\dubbo-cluster-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-rpc-api\2.7.3\dubbo-rpc-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-serialization-api\2.7.3\dubbo-serialization-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-remoting-api\2.7.3\dubbo-remoting-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-configcenter-api\2.7.3\dubbo-configcenter-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-common\2.7.3\dubbo-common-2.7.3.jar;D:\repository\com\alibaba\hessian-lite\3.2.5\hessian-lite-3.2.5.jar;D:\repository\com\alibaba\fastjson\1.2.46\fastjson-1.2.46.jar;D:\repository\com\esotericsoftware\kryo\4.0.1\kryo-4.0.1.jar;D:\repository\com\esotericsoftware\reflectasm\1.11.3\reflectasm-1.11.3.jar;D:\repository\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;D:\repository\com\esotericsoftware\minlog\1.3.0\minlog-1.3.0.jar;D:\repository\org\objenesis\objenesis\2.5.1\objenesis-2.5.1.jar;D:\repository\de\javakaffee\kryo-serializers\0.42\kryo-serializers-0.42.jar;D:\repository\de\ruedigermoeller\fst\2.48-jdk-6\fst-2.48-jdk-6.jar;D:\repository\com\fasterxml\jackson\core\jackson-core\2.8.6\jackson-core-2.8.6.jar;D:\repository\com\cedarsoftware\java-util\1.9.0\java-util-1.9.0.jar;D:\repository\com\cedarsoftware\json-io\2.5.1\json-io-2.5.1.jar;D:\repository\org\apache\dubbo\dubbo-container-api\2.7.3\dubbo-container-api-2.7.3.jar;D:\repository\redis\clients\jedis\2.9.0\jedis-2.9.0.jar;D:\repository\org\apache\commons\commons-pool2\2.4.2\commons-pool2-2.4.2.jar;D:\repository\org\apache\dubbo\dubbo\2.7.3\dubbo-2.7.3.jar;D:\repository\org\springframework\spring-context\4.3.16.RELEASE\spring-context-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-aop\4.3.16.RELEASE\spring-aop-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-beans\4.3.16.RELEASE\spring-beans-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-core\4.3.16.RELEASE\spring-core-4.3.16.RELEASE.jar;D:\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;D:\repository\org\springframework\spring-expression\4.3.16.RELEASE\spring-expression-4.3.16.RELEASE.jar;D:\repository\org\javassist\javassist\3.20.0-GA\javassist-3.20.0-GA.jar;D:\repository\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar;D:\repository\org\yaml\snakeyaml\1.20\snakeyaml-1.20.jar;D:\repository\io\netty\netty-all\4.1.25.Final\netty-all-4.1.25.Final.jar com.zsx.ProviderApplication
[11/09/19 14:29:45:787 CST] main INFO support.ClassPathXmlApplicationContext: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@641147d0: startup date [Wed Sep 11 14:29:45 CST 2019]; root of context hierarchy
[11/09/19 14:29:45:830 CST] main INFO xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [com/zsx/provider.xml]
[11/09/19 14:29:45:962 CST] main INFO logger.LoggerFactory: using logger: org.apache.dubbo.common.logger.log4j.Log4jLoggerAdapter
[11/09/19 14:29:45:976 CST] main ERROR common.Version: [DUBBO] Duplicate class org/apache/dubbo/common/Version.class in 2 jar [file:/D:/repository/org/apache/dubbo/dubbo-common/2.7.3/dubbo-common-2.7.3.jar!/org/apache/dubbo/common/Version.class, file:/D:/repository/org/apache/dubbo/dubbo/2.7.3/dubbo-2.7.3.jar!/org/apache/dubbo/common/Version.class], dubbo version: 2.7.3, current host: 192.168.56.1
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by javassist.ClassPool (file:/D:/repository/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of javassist.ClassPool
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[11/09/19 14:29:46:287 CST] main INFO config.AbstractConfig: [DUBBO] The service ready on spring started. service: com.zsx.service.UserService, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 14:29:55:385 CST] main INFO zookeeper.ZooKeeper: Client environment:zookeeper.version=3.5.5-390fe37ea45dee01bf87dc1c042b5e3dcce88653, built on 05/03/2019 12:07 GMT
[11/09/19 14:29:55:386 CST] main INFO zookeeper.ZooKeeper: Client environment:host.name=zsx
[11/09/19 14:29:55:386 CST] main INFO zookeeper.ZooKeeper: Client environment:java.version=11.0.3
[11/09/19 14:29:55:386 CST] main INFO zookeeper.ZooKeeper: Client environment:java.vendor=Oracle Corporation
[11/09/19 14:29:55:386 CST] main INFO zookeeper.ZooKeeper: Client environment:java.home=C:\software\jdk-11.0.3
[11/09/19 14:29:55:387 CST] main INFO zookeeper.ZooKeeper: Client environment:java.class.path=F:\IdeaProjects\dubbo\dubbo-provider\target\classes;F:\IdeaProjects\dubbo\dubbo-interface\target\classes;D:\repository\org\apache\zookeeper\zookeeper\3.5.5\zookeeper-3.5.5.jar;D:\repository\org\apache\zookeeper\zookeeper-jute\3.5.5\zookeeper-jute-3.5.5.jar;D:\repository\org\apache\yetus\audience-annotations\0.5.0\audience-annotations-0.5.0.jar;D:\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\repository\org\slf4j\slf4j-log4j12\1.7.25\slf4j-log4j12-1.7.25.jar;D:\repository\log4j\log4j\1.2.16\log4j-1.2.16.jar;D:\repository\org\apache\curator\curator-framework\4.2.0\curator-framework-4.2.0.jar;D:\repository\org\apache\curator\curator-recipes\4.2.0\curator-recipes-4.2.0.jar;D:\repository\org\apache\curator\curator-client\4.2.0\curator-client-4.2.0.jar;D:\repository\com\google\guava\guava\27.0.1-jre\guava-27.0.1-jre.jar;D:\repository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;D:\repository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;D:\repository\org\checkerframework\checker-qual\2.5.2\checker-qual-2.5.2.jar;D:\repository\com\google\errorprone\error_prone_annotations\2.2.0\error_prone_annotations-2.2.0.jar;D:\repository\com\google\j2objc\j2objc-annotations\1.1\j2objc-annotations-1.1.jar;D:\repository\org\codehaus\mojo\animal-sniffer-annotations\1.17\animal-sniffer-annotations-1.17.jar;D:\repository\org\apache\dubbo\dubbo-registry-redis\2.7.3\dubbo-registry-redis-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-registry-api\2.7.3\dubbo-registry-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-cluster\2.7.3\dubbo-cluster-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-rpc-api\2.7.3\dubbo-rpc-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-serialization-api\2.7.3\dubbo-serialization-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-remoting-api\2.7.3\dubbo-remoting-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-configcenter-api\2.7.3\dubbo-configcenter-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-common\2.7.3\dubbo-common-2.7.3.jar;D:\repository\com\alibaba\hessian-lite\3.2.5\hessian-lite-3.2.5.jar;D:\repository\com\alibaba\fastjson\1.2.46\fastjson-1.2.46.jar;D:\repository\com\esotericsoftware\kryo\4.0.1\kryo-4.0.1.jar;D:\repository\com\esotericsoftware\reflectasm\1.11.3\reflectasm-1.11.3.jar;D:\repository\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;D:\repository\com\esotericsoftware\minlog\1.3.0\minlog-1.3.0.jar;D:\repository\org\objenesis\objenesis\2.5.1\objenesis-2.5.1.jar;D:\repository\de\javakaffee\kryo-serializers\0.42\kryo-serializers-0.42.jar;D:\repository\de\ruedigermoeller\fst\2.48-jdk-6\fst-2.48-jdk-6.jar;D:\repository\com\fasterxml\jackson\core\jackson-core\2.8.6\jackson-core-2.8.6.jar;D:\repository\com\cedarsoftware\java-util\1.9.0\java-util-1.9.0.jar;D:\repository\com\cedarsoftware\json-io\2.5.1\json-io-2.5.1.jar;D:\repository\org\apache\dubbo\dubbo-container-api\2.7.3\dubbo-container-api-2.7.3.jar;D:\repository\redis\clients\jedis\2.9.0\jedis-2.9.0.jar;D:\repository\org\apache\commons\commons-pool2\2.4.2\commons-pool2-2.4.2.jar;D:\repository\org\apache\dubbo\dubbo\2.7.3\dubbo-2.7.3.jar;D:\repository\org\springframework\spring-context\4.3.16.RELEASE\spring-context-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-aop\4.3.16.RELEASE\spring-aop-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-beans\4.3.16.RELEASE\spring-beans-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-core\4.3.16.RELEASE\spring-core-4.3.16.RELEASE.jar;D:\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;D:\repository\org\springframework\spring-expression\4.3.16.RELEASE\spring-expression-4.3.16.RELEASE.jar;D:\repository\org\javassist\javassist\3.20.0-GA\javassist-3.20.0-GA.jar;D:\repository\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar;D:\repository\org\yaml\snakeyaml\1.20\snakeyaml-1.20.jar;D:\repository\io\netty\netty-all\4.1.25.Final\netty-all-4.1.25.Final.jar
[11/09/19 14:29:55:387 CST] main INFO zookeeper.ZooKeeper: Client environment:java.library.path=C:\software\jdk-11.0.3\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\software\jdk-11.0.3\bin;C:\software\apache-maven-3.6.1\bin;C:\strawberry\c\bin;C:\strawberry\perl\bin;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\software\TortoiseSVN\bin;C:\software\MongoDB\bin;C:\software\Git\cmd;C:\software\TortoiseGit\bin;D:\software\OpenSSL-Win64\bin;D:\software\curl-7.65.1-win64-mingw\bin;C:\software\node-v12.6.0-win-x64;C:\software\swagger-editor-master;C:\Users\zhang\AppData\Local\Microsoft\WindowsApps;;.
[11/09/19 14:29:55:387 CST] main INFO zookeeper.ZooKeeper: Client environment:java.io.tmpdir=C:\Users\zhang\AppData\Local\Temp\
[11/09/19 14:29:55:388 CST] main INFO zookeeper.ZooKeeper: Client environment:java.compiler=
[11/09/19 14:29:55:388 CST] main INFO zookeeper.ZooKeeper: Client environment:os.name=Windows 10
[11/09/19 14:29:55:388 CST] main INFO zookeeper.ZooKeeper: Client environment:os.arch=amd64
[11/09/19 14:29:55:388 CST] main INFO zookeeper.ZooKeeper: Client environment:os.version=10.0
[11/09/19 14:29:55:388 CST] main INFO zookeeper.ZooKeeper: Client environment:user.name=zhang
[11/09/19 14:29:55:389 CST] main INFO zookeeper.ZooKeeper: Client environment:user.home=C:\Users\zhang
[11/09/19 14:29:55:389 CST] main INFO zookeeper.ZooKeeper: Client environment:user.dir=F:\IdeaProjects\dubbo
[11/09/19 14:29:55:389 CST] main INFO zookeeper.ZooKeeper: Client environment:os.memory.free=245MB
[11/09/19 14:29:55:389 CST] main INFO zookeeper.ZooKeeper: Client environment:os.memory.max=4064MB
[11/09/19 14:29:55:389 CST] main INFO zookeeper.ZooKeeper: Client environment:os.memory.total=254MB
[11/09/19 14:29:55:391 CST] main INFO utils.Compatibility: Using emulated InjectSessionExpiration
[11/09/19 14:29:55:445 CST] main INFO imps.CuratorFrameworkImpl: Starting
[11/09/19 14:29:55:448 CST] main INFO zookeeper.ZooKeeper: Initiating client connection, connectString=172.20.202.21:2186 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@7a791b66
[11/09/19 14:29:55:451 CST] main INFO common.X509Util: Setting -D jdk.tls.rejectClientInitiatedRenegotiation=true to disable client-initiated TLS renegotiation
[11/09/19 14:29:55:516 CST] main INFO zookeeper.ClientCnxnSocket: jute.maxbuffer value is 4194304 Bytes
[11/09/19 14:29:55:520 CST] main INFO zookeeper.ClientCnxn: zookeeper.request.timeout value is 0. feature enabled=
[11/09/19 14:29:55:526 CST] main INFO imps.CuratorFrameworkImpl: Default schema
[11/09/19 14:29:55:527 CST] main INFO zookeeper.ZookeeperTransporter: [DUBBO] No valid zookeeper client found from cache, therefore create a new client for url. zookeeper://172.20.202.21:2186/ConfigCenterConfig?config.check=true&config.config-file=dubbo.properties&config.group=dubbo&config.highest-priority=true&config.namespace=dubbo&config.timeout=3000&include.spring.env=false, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 14:30:01:558 CST] Curator-Framework-0 INFO state.ConnectionStateManager: State change: SUSPENDED
[11/09/19 14:30:01:561 CST] Curator-Framework-0 ERROR imps.CuratorFrameworkImpl: Background operation retry gave up
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss
at org.apache.zookeeper.KeeperException.create(KeeperException.java:102)
at org.apache.curator.framework.imps.CuratorFrameworkImpl.checkBackgroundRetry(CuratorFrameworkImpl.java:862)
at org.apache.curator.framework.imps.CuratorFrameworkImpl.performBackgroundOperation(CuratorFrameworkImpl.java:990)
at org.apache.curator.framework.imps.CuratorFrameworkImpl.backgroundOperationsLoop(CuratorFrameworkImpl.java:943)
at org.apache.curator.framework.imps.CuratorFrameworkImpl.access$300(CuratorFrameworkImpl.java:66)
at org.apache.curator.framework.imps.CuratorFrameworkImpl$4.call(CuratorFrameworkImpl.java:346)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
[11/09/19 14:30:01:570 CST] Curator-Framework-0 ERROR imps.CuratorFrameworkImpl: Background retry gave up
org.apache.curator.CuratorConnectionLossException: KeeperErrorCode = ConnectionLoss
at org.apache.curator.framework.imps.CuratorFrameworkImpl.performBackgroundOperation(CuratorFrameworkImpl.java:972)
at org.apache.curator.framework.imps.CuratorFrameworkImpl.backgroundOperationsLoop(CuratorFrameworkImpl.java:943)
at org.apache.curator.framework.imps.CuratorFrameworkImpl.access$300(CuratorFrameworkImpl.java:66)
at org.apache.curator.framework.imps.CuratorFrameworkImpl$4.call(CuratorFrameworkImpl.java:346)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
[11/09/19 14:30:13:539 CST] main-SendThread(172.20.202.21:2186) INFO zookeeper.ClientCnxn: Opening socket connection to server 172.20.202.21/172.20.202.21:2186. Will not attempt to authenticate using SASL (unknown error)
[11/09/19 14:30:13:544 CST] main-SendThread(172.20.202.21:2186) INFO zookeeper.ClientCnxn: Socket connection established, initiating session, client: /172.20.202.43:7368, server: 172.20.202.21/172.20.202.21:2186
[11/09/19 14:30:13:577 CST] main-SendThread(172.20.202.21:2186) INFO zookeeper.ClientCnxn: Session establishment complete on server 172.20.202.21/172.20.202.21:2186, sessionid = 0x100000851450003, negotiated timeout = 40000
[11/09/19 14:30:13:585 CST] main-EventThread INFO state.ConnectionStateManager: State change: CONNECTED
[11/09/19 14:30:13:605 CST] main-EventThread INFO imps.EnsembleTracker: New config event received: {}
[11/09/19 14:30:13:629 CST] main WARN config.ConfigurationUtils: [DUBBO] You specified the config centre, but there's not even one single config item in it., dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 14:30:13:629 CST] main WARN config.ConfigurationUtils: [DUBBO] You specified the config centre, but there's not even one single config item in it., dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 14:30:13:712 CST] main INFO config.AbstractConfig: [DUBBO] Export dubbo service com.zsx.service.UserService to local registry url : injvm://127.0.0.1/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=4220&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568183413665, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 14:30:13:712 CST] main INFO config.AbstractConfig: [DUBBO] Export dubbo service com.zsx.service.UserService to url dubbo://192.168.56.1:20880/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=4220&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568183413665, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 14:30:13:713 CST] main INFO config.AbstractConfig: [DUBBO] There's no valid monitor config found, if you want to open monitor statistics for Dubbo, please make sure your monitor is configured properly., dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 14:30:13:713 CST] main INFO config.AbstractConfig: [DUBBO] Register dubbo service com.zsx.service.UserService url dubbo://192.168.56.1:20880/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=4220&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568183413665 to registry registry://172.20.202.21:2186/org.apache.dubbo.registry.RegistryService?application=user-service&dubbo=2.0.2&pid=4220&qos.port=22222®istry=zookeeper&release=2.7.3&simplified=true×tamp=1568183413653, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 14:30:13:890 CST] main INFO server.Server: [DUBBO] qos-server bind localhost:22222, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 14:30:13:897 CST] main ERROR common.Version: [DUBBO] Duplicate class org/apache/dubbo/remoting/exchange/Exchangers.class in 2 jar [file:/D:/repository/org/apache/dubbo/dubbo-remoting-api/2.7.3/dubbo-remoting-api-2.7.3.jar!/org/apache/dubbo/remoting/exchange/Exchangers.class, file:/D:/repository/org/apache/dubbo/dubbo/2.7.3/dubbo-2.7.3.jar!/org/apache/dubbo/remoting/exchange/Exchangers.class], dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 14:30:13:903 CST] main ERROR common.Version: [DUBBO] Duplicate class org/apache/dubbo/remoting/Transporters.class in 2 jar [file:/D:/repository/org/apache/dubbo/dubbo-remoting-api/2.7.3/dubbo-remoting-api-2.7.3.jar!/org/apache/dubbo/remoting/Transporters.class, file:/D:/repository/org/apache/dubbo/dubbo/2.7.3/dubbo-2.7.3.jar!/org/apache/dubbo/remoting/Transporters.class], dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 14:30:13:903 CST] main ERROR common.Version: [DUBBO] Duplicate class org/apache/dubbo/remoting/RemotingException.class in 2 jar [file:/D:/repository/org/apache/dubbo/dubbo/2.7.3/dubbo-2.7.3.jar!/org/apache/dubbo/remoting/RemotingException.class, file:/D:/repository/org/apache/dubbo/dubbo-remoting-api/2.7.3/dubbo-remoting-api-2.7.3.jar!/org/apache/dubbo/remoting/RemotingException.class], dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 14:30:13:946 CST] main INFO transport.AbstractServer: [DUBBO] Start NettyServer bind /0.0.0.0:20880, export /192.168.56.1:20880, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 14:30:13:949 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Load registry cache file C:\Users\zhang\.dubbo\dubbo-registry-user-service-172.20.202.21:2186.cache, data: {com.zsx.service.UserService=empty://192.168.56.1:20880/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=7636&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568182934052}, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 14:30:13:950 CST] main INFO zookeeper.ZookeeperTransporter: [DUBBO] find valid zookeeper client from the cache for address: zookeeper://172.20.202.21:2186/org.apache.dubbo.registry.RegistryService?application=user-service&dubbo=2.0.2&interface=org.apache.dubbo.registry.RegistryService&pid=4220&qos.port=22222&release=2.7.3&simplified=true×tamp=1568183413653, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 14:30:13:952 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Register: dubbo://192.168.56.1:20880/com.zsx.service.UserService?application=user-service&deprecated=false&dubbo=2.0.2&release=2.7.3×tamp=1568183413665, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 14:30:13:964 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Subscribe: provider://192.168.56.1:20880/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=4220&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568183413665, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 14:30:13:968 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Notify urls for subscribe url provider://192.168.56.1:20880/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=4220&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568183413665, urls: [empty://192.168.56.1:20880/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=4220&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568183413665], dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 14:30:14:179 CST] DubboSaveMetadataReport-thread-1 INFO redis.RedisMetadataReport: [DUBBO] store provider metadata. Identifier : org.apache.dubbo.metadata.identifier.MetadataIdentifier@67757370; definition: FullServiceDefinition{parameters={side=provider, release=2.7.3, methods=get, deprecated=false, qos.port=22222, dubbo=2.0.2, interface=com.zsx.service.UserService, generic=false, application=user-service, dynamic=true, register=true, bean.name=com.zsx.service.UserService, anyhost=true}} ServiceDefinition [canonicalName=com.zsx.service.UserService, codeSource=file:/F:/IdeaProjects/dubbo/dubbo-interface/target/classes/, methods=[MethodDefinition [name=get, parameterTypes=[java.lang.String], returnType=java.lang.String]]], dubbo version: 2.7.3, current host: 192.168.56.1
2. 异常背景:启动dobbo服务提供者时,控制台显示异常
3. 异常原因:连接远程zookeeper(标记一下,后续再查找详情)
3. 解决方法:将远程zookeeper服务替换为本地zookeeper服务,启动运行正常
C:\software\jdk-11.0.3\bin\java.exe "-javaagent:C:\software\JetBrains\IntelliJ IDEA 2019.1.3\lib\idea_rt.jar=9636:C:\software\JetBrains\IntelliJ IDEA 2019.1.3\bin" -Dfile.encoding=UTF-8 -classpath F:\IdeaProjects\dubbo\dubbo-provider\target\classes;F:\IdeaProjects\dubbo\dubbo-interface\target\classes;D:\repository\org\apache\zookeeper\zookeeper\3.5.5\zookeeper-3.5.5.jar;D:\repository\org\apache\zookeeper\zookeeper-jute\3.5.5\zookeeper-jute-3.5.5.jar;D:\repository\org\apache\yetus\audience-annotations\0.5.0\audience-annotations-0.5.0.jar;D:\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\repository\org\slf4j\slf4j-log4j12\1.7.25\slf4j-log4j12-1.7.25.jar;D:\repository\log4j\log4j\1.2.16\log4j-1.2.16.jar;D:\repository\org\apache\curator\curator-framework\4.2.0\curator-framework-4.2.0.jar;D:\repository\org\apache\curator\curator-recipes\4.2.0\curator-recipes-4.2.0.jar;D:\repository\org\apache\curator\curator-client\4.2.0\curator-client-4.2.0.jar;D:\repository\com\google\guava\guava\27.0.1-jre\guava-27.0.1-jre.jar;D:\repository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;D:\repository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;D:\repository\org\checkerframework\checker-qual\2.5.2\checker-qual-2.5.2.jar;D:\repository\com\google\errorprone\error_prone_annotations\2.2.0\error_prone_annotations-2.2.0.jar;D:\repository\com\google\j2objc\j2objc-annotations\1.1\j2objc-annotations-1.1.jar;D:\repository\org\codehaus\mojo\animal-sniffer-annotations\1.17\animal-sniffer-annotations-1.17.jar;D:\repository\org\apache\dubbo\dubbo-registry-redis\2.7.3\dubbo-registry-redis-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-registry-api\2.7.3\dubbo-registry-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-cluster\2.7.3\dubbo-cluster-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-rpc-api\2.7.3\dubbo-rpc-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-serialization-api\2.7.3\dubbo-serialization-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-remoting-api\2.7.3\dubbo-remoting-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-configcenter-api\2.7.3\dubbo-configcenter-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-common\2.7.3\dubbo-common-2.7.3.jar;D:\repository\com\alibaba\hessian-lite\3.2.5\hessian-lite-3.2.5.jar;D:\repository\com\alibaba\fastjson\1.2.46\fastjson-1.2.46.jar;D:\repository\com\esotericsoftware\kryo\4.0.1\kryo-4.0.1.jar;D:\repository\com\esotericsoftware\reflectasm\1.11.3\reflectasm-1.11.3.jar;D:\repository\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;D:\repository\com\esotericsoftware\minlog\1.3.0\minlog-1.3.0.jar;D:\repository\org\objenesis\objenesis\2.5.1\objenesis-2.5.1.jar;D:\repository\de\javakaffee\kryo-serializers\0.42\kryo-serializers-0.42.jar;D:\repository\de\ruedigermoeller\fst\2.48-jdk-6\fst-2.48-jdk-6.jar;D:\repository\com\fasterxml\jackson\core\jackson-core\2.8.6\jackson-core-2.8.6.jar;D:\repository\com\cedarsoftware\java-util\1.9.0\java-util-1.9.0.jar;D:\repository\com\cedarsoftware\json-io\2.5.1\json-io-2.5.1.jar;D:\repository\org\apache\dubbo\dubbo-container-api\2.7.3\dubbo-container-api-2.7.3.jar;D:\repository\redis\clients\jedis\2.9.0\jedis-2.9.0.jar;D:\repository\org\apache\commons\commons-pool2\2.4.2\commons-pool2-2.4.2.jar;D:\repository\org\apache\dubbo\dubbo\2.7.3\dubbo-2.7.3.jar;D:\repository\org\springframework\spring-context\4.3.16.RELEASE\spring-context-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-aop\4.3.16.RELEASE\spring-aop-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-beans\4.3.16.RELEASE\spring-beans-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-core\4.3.16.RELEASE\spring-core-4.3.16.RELEASE.jar;D:\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;D:\repository\org\springframework\spring-expression\4.3.16.RELEASE\spring-expression-4.3.16.RELEASE.jar;D:\repository\org\javassist\javassist\3.20.0-GA\javassist-3.20.0-GA.jar;D:\repository\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar;D:\repository\org\yaml\snakeyaml\1.20\snakeyaml-1.20.jar;D:\repository\io\netty\netty-all\4.1.25.Final\netty-all-4.1.25.Final.jar com.zsx.ProviderApplication
[11/09/19 15:41:01:555 CST] main INFO support.ClassPathXmlApplicationContext: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@641147d0: startup date [Wed Sep 11 15:41:01 CST 2019]; root of context hierarchy
[11/09/19 15:41:01:608 CST] main INFO xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [com/zsx/provider.xml]
[11/09/19 15:41:01:733 CST] main INFO logger.LoggerFactory: using logger: org.apache.dubbo.common.logger.log4j.Log4jLoggerAdapter
[11/09/19 15:41:01:747 CST] main ERROR common.Version: [DUBBO] Duplicate class org/apache/dubbo/common/Version.class in 2 jar [file:/D:/repository/org/apache/dubbo/dubbo-common/2.7.3/dubbo-common-2.7.3.jar!/org/apache/dubbo/common/Version.class, file:/D:/repository/org/apache/dubbo/dubbo/2.7.3/dubbo-2.7.3.jar!/org/apache/dubbo/common/Version.class], dubbo version: 2.7.3, current host: 192.168.56.1
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by javassist.ClassPool (file:/D:/repository/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of javassist.ClassPool
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[11/09/19 15:41:02:057 CST] main INFO config.AbstractConfig: [DUBBO] The service ready on spring started. service: com.zsx.service.UserService, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:41:11:137 CST] main INFO zookeeper.ZooKeeper: Client environment:zookeeper.version=3.5.5-390fe37ea45dee01bf87dc1c042b5e3dcce88653, built on 05/03/2019 12:07 GMT
[11/09/19 15:41:11:137 CST] main INFO zookeeper.ZooKeeper: Client environment:host.name=zsx
[11/09/19 15:41:11:138 CST] main INFO zookeeper.ZooKeeper: Client environment:java.version=11.0.3
[11/09/19 15:41:11:138 CST] main INFO zookeeper.ZooKeeper: Client environment:java.vendor=Oracle Corporation
[11/09/19 15:41:11:138 CST] main INFO zookeeper.ZooKeeper: Client environment:java.home=C:\software\jdk-11.0.3
[11/09/19 15:41:11:138 CST] main INFO zookeeper.ZooKeeper: Client environment:java.class.path=F:\IdeaProjects\dubbo\dubbo-provider\target\classes;F:\IdeaProjects\dubbo\dubbo-interface\target\classes;D:\repository\org\apache\zookeeper\zookeeper\3.5.5\zookeeper-3.5.5.jar;D:\repository\org\apache\zookeeper\zookeeper-jute\3.5.5\zookeeper-jute-3.5.5.jar;D:\repository\org\apache\yetus\audience-annotations\0.5.0\audience-annotations-0.5.0.jar;D:\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\repository\org\slf4j\slf4j-log4j12\1.7.25\slf4j-log4j12-1.7.25.jar;D:\repository\log4j\log4j\1.2.16\log4j-1.2.16.jar;D:\repository\org\apache\curator\curator-framework\4.2.0\curator-framework-4.2.0.jar;D:\repository\org\apache\curator\curator-recipes\4.2.0\curator-recipes-4.2.0.jar;D:\repository\org\apache\curator\curator-client\4.2.0\curator-client-4.2.0.jar;D:\repository\com\google\guava\guava\27.0.1-jre\guava-27.0.1-jre.jar;D:\repository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;D:\repository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;D:\repository\org\checkerframework\checker-qual\2.5.2\checker-qual-2.5.2.jar;D:\repository\com\google\errorprone\error_prone_annotations\2.2.0\error_prone_annotations-2.2.0.jar;D:\repository\com\google\j2objc\j2objc-annotations\1.1\j2objc-annotations-1.1.jar;D:\repository\org\codehaus\mojo\animal-sniffer-annotations\1.17\animal-sniffer-annotations-1.17.jar;D:\repository\org\apache\dubbo\dubbo-registry-redis\2.7.3\dubbo-registry-redis-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-registry-api\2.7.3\dubbo-registry-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-cluster\2.7.3\dubbo-cluster-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-rpc-api\2.7.3\dubbo-rpc-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-serialization-api\2.7.3\dubbo-serialization-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-remoting-api\2.7.3\dubbo-remoting-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-configcenter-api\2.7.3\dubbo-configcenter-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-common\2.7.3\dubbo-common-2.7.3.jar;D:\repository\com\alibaba\hessian-lite\3.2.5\hessian-lite-3.2.5.jar;D:\repository\com\alibaba\fastjson\1.2.46\fastjson-1.2.46.jar;D:\repository\com\esotericsoftware\kryo\4.0.1\kryo-4.0.1.jar;D:\repository\com\esotericsoftware\reflectasm\1.11.3\reflectasm-1.11.3.jar;D:\repository\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;D:\repository\com\esotericsoftware\minlog\1.3.0\minlog-1.3.0.jar;D:\repository\org\objenesis\objenesis\2.5.1\objenesis-2.5.1.jar;D:\repository\de\javakaffee\kryo-serializers\0.42\kryo-serializers-0.42.jar;D:\repository\de\ruedigermoeller\fst\2.48-jdk-6\fst-2.48-jdk-6.jar;D:\repository\com\fasterxml\jackson\core\jackson-core\2.8.6\jackson-core-2.8.6.jar;D:\repository\com\cedarsoftware\java-util\1.9.0\java-util-1.9.0.jar;D:\repository\com\cedarsoftware\json-io\2.5.1\json-io-2.5.1.jar;D:\repository\org\apache\dubbo\dubbo-container-api\2.7.3\dubbo-container-api-2.7.3.jar;D:\repository\redis\clients\jedis\2.9.0\jedis-2.9.0.jar;D:\repository\org\apache\commons\commons-pool2\2.4.2\commons-pool2-2.4.2.jar;D:\repository\org\apache\dubbo\dubbo\2.7.3\dubbo-2.7.3.jar;D:\repository\org\springframework\spring-context\4.3.16.RELEASE\spring-context-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-aop\4.3.16.RELEASE\spring-aop-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-beans\4.3.16.RELEASE\spring-beans-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-core\4.3.16.RELEASE\spring-core-4.3.16.RELEASE.jar;D:\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;D:\repository\org\springframework\spring-expression\4.3.16.RELEASE\spring-expression-4.3.16.RELEASE.jar;D:\repository\org\javassist\javassist\3.20.0-GA\javassist-3.20.0-GA.jar;D:\repository\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar;D:\repository\org\yaml\snakeyaml\1.20\snakeyaml-1.20.jar;D:\repository\io\netty\netty-all\4.1.25.Final\netty-all-4.1.25.Final.jar
[11/09/19 15:41:11:138 CST] main INFO zookeeper.ZooKeeper: Client environment:java.library.path=C:\software\jdk-11.0.3\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\software\jdk-11.0.3\bin;C:\software\apache-maven-3.6.1\bin;C:\strawberry\c\bin;C:\strawberry\perl\bin;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\software\TortoiseSVN\bin;C:\software\MongoDB\bin;C:\software\Git\cmd;C:\software\TortoiseGit\bin;D:\software\OpenSSL-Win64\bin;D:\software\curl-7.65.1-win64-mingw\bin;C:\software\node-v12.6.0-win-x64;C:\software\swagger-editor-master;C:\Users\zhang\AppData\Local\Microsoft\WindowsApps;;.
[11/09/19 15:41:11:139 CST] main INFO zookeeper.ZooKeeper: Client environment:java.io.tmpdir=C:\Users\zhang\AppData\Local\Temp\
[11/09/19 15:41:11:139 CST] main INFO zookeeper.ZooKeeper: Client environment:java.compiler=
[11/09/19 15:41:11:139 CST] main INFO zookeeper.ZooKeeper: Client environment:os.name=Windows 10
[11/09/19 15:41:11:139 CST] main INFO zookeeper.ZooKeeper: Client environment:os.arch=amd64
[11/09/19 15:41:11:139 CST] main INFO zookeeper.ZooKeeper: Client environment:os.version=10.0
[11/09/19 15:41:11:139 CST] main INFO zookeeper.ZooKeeper: Client environment:user.name=zhang
[11/09/19 15:41:11:140 CST] main INFO zookeeper.ZooKeeper: Client environment:user.home=C:\Users\zhang
[11/09/19 15:41:11:140 CST] main INFO zookeeper.ZooKeeper: Client environment:user.dir=F:\IdeaProjects\dubbo
[11/09/19 15:41:11:140 CST] main INFO zookeeper.ZooKeeper: Client environment:os.memory.free=245MB
[11/09/19 15:41:11:140 CST] main INFO zookeeper.ZooKeeper: Client environment:os.memory.max=4064MB
[11/09/19 15:41:11:140 CST] main INFO zookeeper.ZooKeeper: Client environment:os.memory.total=254MB
[11/09/19 15:41:11:142 CST] main INFO utils.Compatibility: Using emulated InjectSessionExpiration
[11/09/19 15:41:11:201 CST] main INFO imps.CuratorFrameworkImpl: Starting
[11/09/19 15:41:11:205 CST] main INFO zookeeper.ZooKeeper: Initiating client connection, connectString=127.0.0.1:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@7a791b66
[11/09/19 15:41:11:212 CST] main INFO common.X509Util: Setting -D jdk.tls.rejectClientInitiatedRenegotiation=true to disable client-initiated TLS renegotiation
[11/09/19 15:41:11:284 CST] main INFO zookeeper.ClientCnxnSocket: jute.maxbuffer value is 4194304 Bytes
[11/09/19 15:41:11:288 CST] main INFO zookeeper.ClientCnxn: zookeeper.request.timeout value is 0. feature enabled=
[11/09/19 15:41:11:299 CST] main INFO imps.CuratorFrameworkImpl: Default schema
[11/09/19 15:41:11:299 CST] main INFO zookeeper.ZookeeperTransporter: [DUBBO] No valid zookeeper client found from cache, therefore create a new client for url. zookeeper://127.0.0.1:2181/ConfigCenterConfig?config.check=true&config.config-file=dubbo.properties&config.group=dubbo&config.highest-priority=true&config.namespace=dubbo&config.timeout=3000&include.spring.env=false, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:41:11:300 CST] main-SendThread(127.0.0.1:2181) INFO zookeeper.ClientCnxn: Opening socket connection to server activate.navicat.com/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
[11/09/19 15:41:11:302 CST] main-SendThread(127.0.0.1:2181) INFO zookeeper.ClientCnxn: Socket connection established, initiating session, client: /127.0.0.1:9644, server: activate.navicat.com/127.0.0.1:2181
[11/09/19 15:41:11:369 CST] main-SendThread(127.0.0.1:2181) INFO zookeeper.ClientCnxn: Session establishment complete on server activate.navicat.com/127.0.0.1:2181, sessionid = 0x10024d894920000, negotiated timeout = 40000
[11/09/19 15:41:11:377 CST] main-EventThread INFO state.ConnectionStateManager: State change: CONNECTED
[11/09/19 15:41:11:402 CST] main-EventThread INFO imps.EnsembleTracker: New config event received: {}
[11/09/19 15:41:11:402 CST] main-EventThread INFO imps.EnsembleTracker: New config event received: {}
[11/09/19 15:41:11:427 CST] main WARN config.ConfigurationUtils: [DUBBO] You specified the config centre, but there's not even one single config item in it., dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:41:11:427 CST] main WARN config.ConfigurationUtils: [DUBBO] You specified the config centre, but there's not even one single config item in it., dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:41:11:514 CST] main INFO config.AbstractConfig: [DUBBO] Export dubbo service com.zsx.service.UserService to local registry url : injvm://127.0.0.1/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=6652&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568187671465, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:41:11:515 CST] main INFO config.AbstractConfig: [DUBBO] Export dubbo service com.zsx.service.UserService to url dubbo://192.168.56.1:20880/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=6652&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568187671465, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:41:11:516 CST] main INFO config.AbstractConfig: [DUBBO] There's no valid monitor config found, if you want to open monitor statistics for Dubbo, please make sure your monitor is configured properly., dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:41:11:516 CST] main INFO config.AbstractConfig: [DUBBO] Register dubbo service com.zsx.service.UserService url dubbo://192.168.56.1:20880/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=6652&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568187671465 to registry registry://127.0.0.1:2181/org.apache.dubbo.registry.RegistryService?application=user-service&dubbo=2.0.2&pid=6652&qos.port=22222®istry=zookeeper&release=2.7.3&simplified=true×tamp=1568187671449, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:41:11:691 CST] main INFO server.Server: [DUBBO] qos-server bind localhost:22222, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:41:11:700 CST] main ERROR common.Version: [DUBBO] Duplicate class org/apache/dubbo/remoting/exchange/Exchangers.class in 2 jar [file:/D:/repository/org/apache/dubbo/dubbo-remoting-api/2.7.3/dubbo-remoting-api-2.7.3.jar!/org/apache/dubbo/remoting/exchange/Exchangers.class, file:/D:/repository/org/apache/dubbo/dubbo/2.7.3/dubbo-2.7.3.jar!/org/apache/dubbo/remoting/exchange/Exchangers.class], dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:41:11:705 CST] main ERROR common.Version: [DUBBO] Duplicate class org/apache/dubbo/remoting/Transporters.class in 2 jar [file:/D:/repository/org/apache/dubbo/dubbo-remoting-api/2.7.3/dubbo-remoting-api-2.7.3.jar!/org/apache/dubbo/remoting/Transporters.class, file:/D:/repository/org/apache/dubbo/dubbo/2.7.3/dubbo-2.7.3.jar!/org/apache/dubbo/remoting/Transporters.class], dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:41:11:706 CST] main ERROR common.Version: [DUBBO] Duplicate class org/apache/dubbo/remoting/RemotingException.class in 2 jar [file:/D:/repository/org/apache/dubbo/dubbo/2.7.3/dubbo-2.7.3.jar!/org/apache/dubbo/remoting/RemotingException.class, file:/D:/repository/org/apache/dubbo/dubbo-remoting-api/2.7.3/dubbo-remoting-api-2.7.3.jar!/org/apache/dubbo/remoting/RemotingException.class], dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:41:11:750 CST] main INFO transport.AbstractServer: [DUBBO] Start NettyServer bind /0.0.0.0:20880, export /192.168.56.1:20880, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:41:11:753 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Load registry cache file C:\Users\zhang\.dubbo\dubbo-registry-user-service-127.0.0.1:2181.cache, data: {com.zsx.service.UserService=empty://192.168.56.1:20880/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=11664&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568184389980}, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:41:11:753 CST] main INFO zookeeper.ZookeeperTransporter: [DUBBO] find valid zookeeper client from the cache for address: zookeeper://127.0.0.1:2181/org.apache.dubbo.registry.RegistryService?application=user-service&dubbo=2.0.2&interface=org.apache.dubbo.registry.RegistryService&pid=6652&qos.port=22222&release=2.7.3&simplified=true×tamp=1568187671449, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:41:11:754 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Register: dubbo://192.168.56.1:20880/com.zsx.service.UserService?application=user-service&deprecated=false&dubbo=2.0.2&release=2.7.3×tamp=1568187671465, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:41:11:873 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Subscribe: provider://192.168.56.1:20880/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=6652&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568187671465, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:41:11:910 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Notify urls for subscribe url provider://192.168.56.1:20880/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=6652&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568187671465, urls: [empty://192.168.56.1:20880/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=6652&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568187671465], dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:41:12:048 CST] DubboSaveMetadataReport-thread-1 INFO redis.RedisMetadataReport: [DUBBO] store provider metadata. Identifier : org.apache.dubbo.metadata.identifier.MetadataIdentifier@585f26d2; definition: FullServiceDefinition{parameters={side=provider, release=2.7.3, methods=get, deprecated=false, qos.port=22222, dubbo=2.0.2, interface=com.zsx.service.UserService, generic=false, application=user-service, dynamic=true, register=true, bean.name=com.zsx.service.UserService, anyhost=true}} ServiceDefinition [canonicalName=com.zsx.service.UserService, codeSource=file:/F:/IdeaProjects/dubbo/dubbo-interface/target/classes/, methods=[MethodDefinition [name=get, parameterTypes=[java.lang.String], returnType=java.lang.String]]], dubbo version: 2.7.3, current host: 192.168.56.1
1. 异常详情
C:\software\jdk-11.0.3\bin\java.exe "-javaagent:C:\software\JetBrains\IntelliJ IDEA 2019.1.3\lib\idea_rt.jar=9770:C:\software\JetBrains\IntelliJ IDEA 2019.1.3\bin" -Dfile.encoding=UTF-8 -classpath F:\IdeaProjects\dubbo\dubbo-provider\target\classes;F:\IdeaProjects\dubbo\dubbo-interface\target\classes;D:\repository\org\apache\zookeeper\zookeeper\3.5.5\zookeeper-3.5.5.jar;D:\repository\org\apache\zookeeper\zookeeper-jute\3.5.5\zookeeper-jute-3.5.5.jar;D:\repository\org\apache\yetus\audience-annotations\0.5.0\audience-annotations-0.5.0.jar;D:\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\repository\org\slf4j\slf4j-log4j12\1.7.25\slf4j-log4j12-1.7.25.jar;D:\repository\log4j\log4j\1.2.16\log4j-1.2.16.jar;D:\repository\org\apache\curator\curator-framework\4.2.0\curator-framework-4.2.0.jar;D:\repository\org\apache\curator\curator-recipes\4.2.0\curator-recipes-4.2.0.jar;D:\repository\org\apache\curator\curator-client\4.2.0\curator-client-4.2.0.jar;D:\repository\com\google\guava\guava\27.0.1-jre\guava-27.0.1-jre.jar;D:\repository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;D:\repository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;D:\repository\org\checkerframework\checker-qual\2.5.2\checker-qual-2.5.2.jar;D:\repository\com\google\errorprone\error_prone_annotations\2.2.0\error_prone_annotations-2.2.0.jar;D:\repository\com\google\j2objc\j2objc-annotations\1.1\j2objc-annotations-1.1.jar;D:\repository\org\codehaus\mojo\animal-sniffer-annotations\1.17\animal-sniffer-annotations-1.17.jar;D:\repository\org\apache\dubbo\dubbo\2.7.3\dubbo-2.7.3.jar;D:\repository\org\springframework\spring-context\4.3.16.RELEASE\spring-context-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-aop\4.3.16.RELEASE\spring-aop-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-beans\4.3.16.RELEASE\spring-beans-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-core\4.3.16.RELEASE\spring-core-4.3.16.RELEASE.jar;D:\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;D:\repository\org\springframework\spring-expression\4.3.16.RELEASE\spring-expression-4.3.16.RELEASE.jar;D:\repository\org\javassist\javassist\3.20.0-GA\javassist-3.20.0-GA.jar;D:\repository\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar;D:\repository\org\yaml\snakeyaml\1.20\snakeyaml-1.20.jar;D:\repository\io\netty\netty-all\4.1.25.Final\netty-all-4.1.25.Final.jar com.zsx.ProviderApplication
[11/09/19 15:45:06:385 CST] main INFO support.ClassPathXmlApplicationContext: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@1ee807c6: startup date [Wed Sep 11 15:45:06 CST 2019]; root of context hierarchy
[11/09/19 15:45:06:433 CST] main INFO xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [com/zsx/provider.xml]
[11/09/19 15:45:06:584 CST] main INFO logger.LoggerFactory: using logger: org.apache.dubbo.common.logger.log4j.Log4jLoggerAdapter
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by javassist.ClassPool (file:/D:/repository/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of javassist.ClassPool
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[11/09/19 15:45:06:886 CST] main INFO config.AbstractConfig: [DUBBO] The service ready on spring started. service: com.zsx.service.UserService, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:15:988 CST] main INFO zookeeper.ZooKeeper: Client environment:zookeeper.version=3.5.5-390fe37ea45dee01bf87dc1c042b5e3dcce88653, built on 05/03/2019 12:07 GMT
[11/09/19 15:45:15:989 CST] main INFO zookeeper.ZooKeeper: Client environment:host.name=zsx
[11/09/19 15:45:15:989 CST] main INFO zookeeper.ZooKeeper: Client environment:java.version=11.0.3
[11/09/19 15:45:15:989 CST] main INFO zookeeper.ZooKeeper: Client environment:java.vendor=Oracle Corporation
[11/09/19 15:45:15:989 CST] main INFO zookeeper.ZooKeeper: Client environment:java.home=C:\software\jdk-11.0.3
[11/09/19 15:45:15:990 CST] main INFO zookeeper.ZooKeeper: Client environment:java.class.path=F:\IdeaProjects\dubbo\dubbo-provider\target\classes;F:\IdeaProjects\dubbo\dubbo-interface\target\classes;D:\repository\org\apache\zookeeper\zookeeper\3.5.5\zookeeper-3.5.5.jar;D:\repository\org\apache\zookeeper\zookeeper-jute\3.5.5\zookeeper-jute-3.5.5.jar;D:\repository\org\apache\yetus\audience-annotations\0.5.0\audience-annotations-0.5.0.jar;D:\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\repository\org\slf4j\slf4j-log4j12\1.7.25\slf4j-log4j12-1.7.25.jar;D:\repository\log4j\log4j\1.2.16\log4j-1.2.16.jar;D:\repository\org\apache\curator\curator-framework\4.2.0\curator-framework-4.2.0.jar;D:\repository\org\apache\curator\curator-recipes\4.2.0\curator-recipes-4.2.0.jar;D:\repository\org\apache\curator\curator-client\4.2.0\curator-client-4.2.0.jar;D:\repository\com\google\guava\guava\27.0.1-jre\guava-27.0.1-jre.jar;D:\repository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;D:\repository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;D:\repository\org\checkerframework\checker-qual\2.5.2\checker-qual-2.5.2.jar;D:\repository\com\google\errorprone\error_prone_annotations\2.2.0\error_prone_annotations-2.2.0.jar;D:\repository\com\google\j2objc\j2objc-annotations\1.1\j2objc-annotations-1.1.jar;D:\repository\org\codehaus\mojo\animal-sniffer-annotations\1.17\animal-sniffer-annotations-1.17.jar;D:\repository\org\apache\dubbo\dubbo\2.7.3\dubbo-2.7.3.jar;D:\repository\org\springframework\spring-context\4.3.16.RELEASE\spring-context-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-aop\4.3.16.RELEASE\spring-aop-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-beans\4.3.16.RELEASE\spring-beans-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-core\4.3.16.RELEASE\spring-core-4.3.16.RELEASE.jar;D:\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;D:\repository\org\springframework\spring-expression\4.3.16.RELEASE\spring-expression-4.3.16.RELEASE.jar;D:\repository\org\javassist\javassist\3.20.0-GA\javassist-3.20.0-GA.jar;D:\repository\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar;D:\repository\org\yaml\snakeyaml\1.20\snakeyaml-1.20.jar;D:\repository\io\netty\netty-all\4.1.25.Final\netty-all-4.1.25.Final.jar
[11/09/19 15:45:15:990 CST] main INFO zookeeper.ZooKeeper: Client environment:java.library.path=C:\software\jdk-11.0.3\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\software\jdk-11.0.3\bin;C:\software\apache-maven-3.6.1\bin;C:\strawberry\c\bin;C:\strawberry\perl\bin;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\software\TortoiseSVN\bin;C:\software\MongoDB\bin;C:\software\Git\cmd;C:\software\TortoiseGit\bin;D:\software\OpenSSL-Win64\bin;D:\software\curl-7.65.1-win64-mingw\bin;C:\software\node-v12.6.0-win-x64;C:\software\swagger-editor-master;C:\Users\zhang\AppData\Local\Microsoft\WindowsApps;;.
[11/09/19 15:45:15:990 CST] main INFO zookeeper.ZooKeeper: Client environment:java.io.tmpdir=C:\Users\zhang\AppData\Local\Temp\
[11/09/19 15:45:15:990 CST] main INFO zookeeper.ZooKeeper: Client environment:java.compiler=
[11/09/19 15:45:15:991 CST] main INFO zookeeper.ZooKeeper: Client environment:os.name=Windows 10
[11/09/19 15:45:15:991 CST] main INFO zookeeper.ZooKeeper: Client environment:os.arch=amd64
[11/09/19 15:45:15:991 CST] main INFO zookeeper.ZooKeeper: Client environment:os.version=10.0
[11/09/19 15:45:15:991 CST] main INFO zookeeper.ZooKeeper: Client environment:user.name=zhang
[11/09/19 15:45:15:992 CST] main INFO zookeeper.ZooKeeper: Client environment:user.home=C:\Users\zhang
[11/09/19 15:45:15:992 CST] main INFO zookeeper.ZooKeeper: Client environment:user.dir=F:\IdeaProjects\dubbo
[11/09/19 15:45:15:992 CST] main INFO zookeeper.ZooKeeper: Client environment:os.memory.free=246MB
[11/09/19 15:45:15:992 CST] main INFO zookeeper.ZooKeeper: Client environment:os.memory.max=4064MB
[11/09/19 15:45:15:992 CST] main INFO zookeeper.ZooKeeper: Client environment:os.memory.total=254MB
[11/09/19 15:45:15:994 CST] main INFO utils.Compatibility: Using emulated InjectSessionExpiration
[11/09/19 15:45:16:052 CST] main INFO imps.CuratorFrameworkImpl: Starting
[11/09/19 15:45:16:055 CST] main INFO zookeeper.ZooKeeper: Initiating client connection, connectString=127.0.0.1:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@2262b621
[11/09/19 15:45:16:058 CST] main INFO common.X509Util: Setting -D jdk.tls.rejectClientInitiatedRenegotiation=true to disable client-initiated TLS renegotiation
[11/09/19 15:45:16:123 CST] main INFO zookeeper.ClientCnxnSocket: jute.maxbuffer value is 4194304 Bytes
[11/09/19 15:45:16:126 CST] main INFO zookeeper.ClientCnxn: zookeeper.request.timeout value is 0. feature enabled=
[11/09/19 15:45:16:133 CST] main INFO imps.CuratorFrameworkImpl: Default schema
[11/09/19 15:45:16:133 CST] main INFO zookeeper.ZookeeperTransporter: [DUBBO] No valid zookeeper client found from cache, therefore create a new client for url. zookeeper://127.0.0.1:2181/ConfigCenterConfig?config.check=true&config.config-file=dubbo.properties&config.group=dubbo&config.highest-priority=true&config.namespace=dubbo&config.timeout=3000&include.spring.env=false, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:133 CST] main-SendThread(127.0.0.1:2181) INFO zookeeper.ClientCnxn: Opening socket connection to server activate.navicat.com/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
[11/09/19 15:45:16:135 CST] main-SendThread(127.0.0.1:2181) INFO zookeeper.ClientCnxn: Socket connection established, initiating session, client: /127.0.0.1:9778, server: activate.navicat.com/127.0.0.1:2181
[11/09/19 15:45:16:177 CST] main-SendThread(127.0.0.1:2181) INFO zookeeper.ClientCnxn: Session establishment complete on server activate.navicat.com/127.0.0.1:2181, sessionid = 0x10024d894920001, negotiated timeout = 40000
[11/09/19 15:45:16:182 CST] main-EventThread INFO state.ConnectionStateManager: State change: CONNECTED
[11/09/19 15:45:16:187 CST] main-EventThread INFO imps.EnsembleTracker: New config event received: {}
[11/09/19 15:45:16:187 CST] main-EventThread INFO imps.EnsembleTracker: New config event received: {}
[11/09/19 15:45:16:199 CST] main WARN config.ConfigurationUtils: [DUBBO] You specified the config centre, but there's not even one single config item in it., dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:199 CST] main WARN config.ConfigurationUtils: [DUBBO] You specified the config centre, but there's not even one single config item in it., dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:279 CST] main INFO config.AbstractConfig: [DUBBO] Export dubbo service com.zsx.service.UserService to local registry url : injvm://127.0.0.1/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=13684&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568187916229, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:279 CST] main INFO config.AbstractConfig: [DUBBO] Export dubbo service com.zsx.service.UserService to url dubbo://192.168.56.1:20880/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=13684&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568187916229, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:280 CST] main INFO config.AbstractConfig: [DUBBO] There's no valid monitor config found, if you want to open monitor statistics for Dubbo, please make sure your monitor is configured properly., dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:281 CST] main INFO config.AbstractConfig: [DUBBO] Register dubbo service com.zsx.service.UserService url dubbo://192.168.56.1:20880/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=13684&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568187916229 to registry registry://127.0.0.1:2181/org.apache.dubbo.registry.RegistryService?application=user-service&dubbo=2.0.2&pid=13684&qos.port=22222®istry=zookeeper&release=2.7.3&simplified=true×tamp=1568187916214, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:457 CST] main INFO server.Server: [DUBBO] qos-server bind localhost:22222, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:506 CST] main INFO transport.AbstractServer: [DUBBO] Start NettyServer bind /0.0.0.0:20880, export /192.168.56.1:20880, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:510 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Load registry cache file C:\Users\zhang\.dubbo\dubbo-registry-user-service-127.0.0.1:2181.cache, data: {com.zsx.service.UserService=empty://192.168.56.1:20880/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=6652&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568187671465}, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:510 CST] main INFO zookeeper.ZookeeperTransporter: [DUBBO] find valid zookeeper client from the cache for address: zookeeper://127.0.0.1:2181/org.apache.dubbo.registry.RegistryService?application=user-service&dubbo=2.0.2&interface=org.apache.dubbo.registry.RegistryService&pid=13684&qos.port=22222&release=2.7.3&simplified=true×tamp=1568187916214, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:511 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Register: dubbo://192.168.56.1:20880/com.zsx.service.UserService?application=user-service&deprecated=false&dubbo=2.0.2&release=2.7.3×tamp=1568187916229, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:545 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Subscribe: provider://192.168.56.1:20880/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=13684&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568187916229, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:548 CST] main INFO zookeeper.ZookeeperRegistry: [DUBBO] Notify urls for subscribe url provider://192.168.56.1:20880/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=13684&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568187916229, urls: [empty://192.168.56.1:20880/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=13684&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568187916229], dubbo version: 2.7.3, current host: 192.168.56.1
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/pool2/impl/GenericObjectPoolConfig
at org.apache.dubbo.metadata.store.redis.RedisMetadataReportFactory.createMetadataReport(RedisMetadataReportFactory.java:31)
at org.apache.dubbo.metadata.support.AbstractMetadataReportFactory.getMetadataReport(AbstractMetadataReportFactory.java:49)
at org.apache.dubbo.metadata.store.MetadataReportFactory$Adaptive.getMetadataReport(MetadataReportFactory$Adaptive.java)
at org.apache.dubbo.metadata.integration.MetadataReportService.(MetadataReportService.java:69)
at org.apache.dubbo.metadata.integration.MetadataReportService.instance(MetadataReportService.java:82)
at org.apache.dubbo.config.AbstractInterfaceConfig.getMetadataReportService(AbstractInterfaceConfig.java:433)
at org.apache.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:622)
at org.apache.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:457)
at org.apache.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:415)
at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:378)
at org.apache.dubbo.config.spring.ServiceBean.export(ServiceBean.java:336)
at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:114)
at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:60)
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.finishRefresh(AbstractApplicationContext.java:883)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93)
at com.zsx.ProviderApplication.main(ProviderApplication.java:10)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.pool2.impl.GenericObjectPoolConfig
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 23 more
[11/09/19 15:45:16:565 CST] Thread-0 INFO support.ClassPathXmlApplicationContext: Closing org.springframework.context.support.ClassPathXmlApplicationContext@1ee807c6: startup date [Wed Sep 11 15:45:06 CST 2019]; root of context hierarchy
[11/09/19 15:45:16:567 CST] Thread-0 INFO support.AbstractRegistryFactory: [DUBBO] Close all registries [zookeeper://127.0.0.1:2181/org.apache.dubbo.registry.RegistryService?application=user-service&dubbo=2.0.2&interface=org.apache.dubbo.registry.RegistryService&pid=13684&qos.port=22222&release=2.7.3&simplified=true×tamp=1568187916214], dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:567 CST] Thread-0 INFO zookeeper.ZookeeperRegistry: [DUBBO] Destroy registry:zookeeper://127.0.0.1:2181/org.apache.dubbo.registry.RegistryService?application=user-service&dubbo=2.0.2&interface=org.apache.dubbo.registry.RegistryService&pid=13684&qos.port=22222&release=2.7.3&simplified=true×tamp=1568187916214, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:567 CST] Thread-0 INFO zookeeper.ZookeeperRegistry: [DUBBO] Unregister: dubbo://192.168.56.1:20880/com.zsx.service.UserService?application=user-service&deprecated=false&dubbo=2.0.2&release=2.7.3×tamp=1568187916229, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:619 CST] Thread-0 INFO zookeeper.ZookeeperRegistry: [DUBBO] Destroy unregister url dubbo://192.168.56.1:20880/com.zsx.service.UserService?application=user-service&deprecated=false&dubbo=2.0.2&release=2.7.3×tamp=1568187916229, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:620 CST] Thread-0 INFO zookeeper.ZookeeperRegistry: [DUBBO] Unsubscribe: provider://192.168.56.1:20880/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=13684&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568187916229, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:620 CST] Thread-0 INFO zookeeper.ZookeeperRegistry: [DUBBO] Destroy unsubscribe url provider://192.168.56.1:20880/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=13684&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568187916229, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:620 CST] Curator-Framework-0 INFO imps.CuratorFrameworkImpl: backgroundOperationsLoop exiting
[11/09/19 15:45:16:746 CST] Thread-0 INFO zookeeper.ZooKeeper: Session: 0x10024d894920001 closed
[11/09/19 15:45:16:746 CST] main-EventThread INFO zookeeper.ClientCnxn: EventThread shut down for session: 0x10024d894920001
[11/09/19 15:45:16:746 CST] Thread-0 INFO dubbo.DubboProtocol: [DUBBO] Close dubbo server: /192.168.56.1:20880, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:747 CST] Thread-0 INFO transport.AbstractServer: [DUBBO] Close NettyServer bind /0.0.0.0:20880, export /192.168.56.1:20880, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:749 CST] Thread-0 INFO dubbo.DubboProtocol: [DUBBO] Unexport service: dubbo://192.168.56.1:20880/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=13684&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568187916229, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:749 CST] Thread-0 INFO server.Server: [DUBBO] qos-server stopped., dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:752 CST] Thread-0 INFO injvm.InjvmProtocol: [DUBBO] Unexport service: injvm://127.0.0.1/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=13684&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568187916229, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:753 CST] Thread-0 INFO zookeeper.ZookeeperRegistry: [DUBBO] Load registry cache file C:\Users\zhang\.dubbo\dubbo-registry-user-service-127.0.0.1:2181.cache, data: {com.zsx.service.UserService=empty://192.168.56.1:20880/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=13684&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568187916229}, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:754 CST] Thread-0 INFO imps.CuratorFrameworkImpl: Starting
[11/09/19 15:45:16:754 CST] Thread-0 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=127.0.0.1:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@471690ea
[11/09/19 15:45:16:755 CST] Thread-0 INFO zookeeper.ClientCnxnSocket: jute.maxbuffer value is 4194304 Bytes
[11/09/19 15:45:16:755 CST] Thread-0 INFO zookeeper.ClientCnxn: zookeeper.request.timeout value is 0. feature enabled=
[11/09/19 15:45:16:757 CST] Thread-0 INFO imps.CuratorFrameworkImpl: Default schema
[11/09/19 15:45:16:758 CST] Thread-0 INFO zookeeper.ZookeeperTransporter: [DUBBO] No valid zookeeper client found from cache, therefore create a new client for url. zookeeper://127.0.0.1:2181/org.apache.dubbo.registry.RegistryService?application=user-service&dubbo=2.0.2&interface=org.apache.dubbo.registry.RegistryService&pid=13684&qos.port=22222&release=2.7.3&simplified=true×tamp=1568187916214, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:758 CST] Thread-0 INFO zookeeper.ZookeeperRegistry: [DUBBO] Unregister: dubbo://192.168.56.1:20880/com.zsx.service.UserService?application=user-service&deprecated=false&dubbo=2.0.2&release=2.7.3×tamp=1568187916229, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:758 CST] Thread-0-SendThread(127.0.0.1:2181) INFO zookeeper.ClientCnxn: Opening socket connection to server activate.navicat.com/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
[11/09/19 15:45:16:758 CST] Thread-0-SendThread(127.0.0.1:2181) INFO zookeeper.ClientCnxn: Socket connection established, initiating session, client: /127.0.0.1:9835, server: activate.navicat.com/127.0.0.1:2181
[11/09/19 15:45:16:786 CST] Thread-0-SendThread(127.0.0.1:2181) INFO zookeeper.ClientCnxn: Session establishment complete on server activate.navicat.com/127.0.0.1:2181, sessionid = 0x10024d894920002, negotiated timeout = 40000
[11/09/19 15:45:16:787 CST] Thread-0-EventThread INFO state.ConnectionStateManager: State change: CONNECTED
[11/09/19 15:45:16:788 CST] Thread-0-EventThread INFO imps.EnsembleTracker: New config event received: {}
[11/09/19 15:45:16:788 CST] Thread-0-EventThread INFO imps.EnsembleTracker: New config event received: {}
[11/09/19 15:45:16:811 CST] Thread-0 INFO zookeeper.ZookeeperRegistry: [DUBBO] Unsubscribe: provider://192.168.56.1:20880/com.zsx.service.UserService?anyhost=true&application=user-service&bean.name=com.zsx.service.UserService&bind.ip=192.168.56.1&bind.port=20880&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.zsx.service.UserService&methods=get&pid=13684&qos.port=22222®ister=true&release=2.7.3&side=provider×tamp=1568187916229, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:45:16:813 CST] Exporter-Unexport-thread-1 INFO integration.RegistryProtocol: [DUBBO] Waiting 10000ms for registry to notify all consumers before unexport. Usually, this is called when you use dubbo API, dubbo version: 2.7.3, current host: 192.168.56.1
Process finished with exit code 1
2. 异常背景:启动dobbo服务提供者时,控制台显示异常
3. 异常原因:配置redis作为dubbo元数据中心,没有引入相应的jar包
4. 解决方法:引入redis相关依赖
org.apache.dubbo
dubbo-registry-redis
2.7.3
1. 异常详情
C:\software\jdk-11.0.3\bin\java.exe "-javaagent:C:\software\JetBrains\IntelliJ IDEA 2019.1.3\lib\idea_rt.jar=10257:C:\software\JetBrains\IntelliJ IDEA 2019.1.3\bin" -Dfile.encoding=UTF-8 -classpath F:\IdeaProjects\dubbo\dubbo-provider\target\classes;F:\IdeaProjects\dubbo\dubbo-interface\target\classes;D:\repository\org\apache\zookeeper\zookeeper\3.5.5\zookeeper-3.5.5.jar;D:\repository\org\apache\zookeeper\zookeeper-jute\3.5.5\zookeeper-jute-3.5.5.jar;D:\repository\org\apache\yetus\audience-annotations\0.5.0\audience-annotations-0.5.0.jar;D:\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\repository\org\slf4j\slf4j-log4j12\1.7.25\slf4j-log4j12-1.7.25.jar;D:\repository\log4j\log4j\1.2.16\log4j-1.2.16.jar;D:\repository\org\apache\curator\curator-framework\4.2.0\curator-framework-4.2.0.jar;D:\repository\org\apache\curator\curator-client\4.2.0\curator-client-4.2.0.jar;D:\repository\com\google\guava\guava\27.0.1-jre\guava-27.0.1-jre.jar;D:\repository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;D:\repository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;D:\repository\org\checkerframework\checker-qual\2.5.2\checker-qual-2.5.2.jar;D:\repository\com\google\errorprone\error_prone_annotations\2.2.0\error_prone_annotations-2.2.0.jar;D:\repository\com\google\j2objc\j2objc-annotations\1.1\j2objc-annotations-1.1.jar;D:\repository\org\codehaus\mojo\animal-sniffer-annotations\1.17\animal-sniffer-annotations-1.17.jar;D:\repository\org\apache\dubbo\dubbo-registry-redis\2.7.3\dubbo-registry-redis-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-registry-api\2.7.3\dubbo-registry-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-cluster\2.7.3\dubbo-cluster-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-rpc-api\2.7.3\dubbo-rpc-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-serialization-api\2.7.3\dubbo-serialization-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-remoting-api\2.7.3\dubbo-remoting-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-configcenter-api\2.7.3\dubbo-configcenter-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-common\2.7.3\dubbo-common-2.7.3.jar;D:\repository\com\alibaba\hessian-lite\3.2.5\hessian-lite-3.2.5.jar;D:\repository\com\alibaba\fastjson\1.2.46\fastjson-1.2.46.jar;D:\repository\com\esotericsoftware\kryo\4.0.1\kryo-4.0.1.jar;D:\repository\com\esotericsoftware\reflectasm\1.11.3\reflectasm-1.11.3.jar;D:\repository\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;D:\repository\com\esotericsoftware\minlog\1.3.0\minlog-1.3.0.jar;D:\repository\org\objenesis\objenesis\2.5.1\objenesis-2.5.1.jar;D:\repository\de\javakaffee\kryo-serializers\0.42\kryo-serializers-0.42.jar;D:\repository\de\ruedigermoeller\fst\2.48-jdk-6\fst-2.48-jdk-6.jar;D:\repository\com\fasterxml\jackson\core\jackson-core\2.8.6\jackson-core-2.8.6.jar;D:\repository\com\cedarsoftware\java-util\1.9.0\java-util-1.9.0.jar;D:\repository\com\cedarsoftware\json-io\2.5.1\json-io-2.5.1.jar;D:\repository\org\apache\dubbo\dubbo-container-api\2.7.3\dubbo-container-api-2.7.3.jar;D:\repository\redis\clients\jedis\2.9.0\jedis-2.9.0.jar;D:\repository\org\apache\commons\commons-pool2\2.4.2\commons-pool2-2.4.2.jar;D:\repository\org\apache\dubbo\dubbo\2.7.3\dubbo-2.7.3.jar;D:\repository\org\springframework\spring-context\4.3.16.RELEASE\spring-context-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-aop\4.3.16.RELEASE\spring-aop-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-beans\4.3.16.RELEASE\spring-beans-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-core\4.3.16.RELEASE\spring-core-4.3.16.RELEASE.jar;D:\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;D:\repository\org\springframework\spring-expression\4.3.16.RELEASE\spring-expression-4.3.16.RELEASE.jar;D:\repository\org\javassist\javassist\3.20.0-GA\javassist-3.20.0-GA.jar;D:\repository\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar;D:\repository\org\yaml\snakeyaml\1.20\snakeyaml-1.20.jar;D:\repository\io\netty\netty-all\4.1.25.Final\netty-all-4.1.25.Final.jar com.zsx.ProviderApplication
[11/09/19 15:57:56:462 CST] main INFO support.ClassPathXmlApplicationContext: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@6b0c2d26: startup date [Wed Sep 11 15:57:56 CST 2019]; root of context hierarchy
[11/09/19 15:57:56:504 CST] main INFO xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [com/zsx/provider.xml]
[11/09/19 15:57:56:630 CST] main INFO logger.LoggerFactory: using logger: org.apache.dubbo.common.logger.log4j.Log4jLoggerAdapter
[11/09/19 15:57:56:641 CST] main ERROR common.Version: [DUBBO] Duplicate class org/apache/dubbo/common/Version.class in 2 jar [file:/D:/repository/org/apache/dubbo/dubbo-common/2.7.3/dubbo-common-2.7.3.jar!/org/apache/dubbo/common/Version.class, file:/D:/repository/org/apache/dubbo/dubbo/2.7.3/dubbo-2.7.3.jar!/org/apache/dubbo/common/Version.class], dubbo version: 2.7.3, current host: 192.168.56.1
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by javassist.ClassPool (file:/D:/repository/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of javassist.ClassPool
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[11/09/19 15:57:56:929 CST] main INFO config.AbstractConfig: [DUBBO] The service ready on spring started. service: com.zsx.service.UserService, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:58:06:011 CST] main INFO zookeeper.ZooKeeper: Client environment:zookeeper.version=3.5.5-390fe37ea45dee01bf87dc1c042b5e3dcce88653, built on 05/03/2019 12:07 GMT
[11/09/19 15:58:06:011 CST] main INFO zookeeper.ZooKeeper: Client environment:host.name=zsx
[11/09/19 15:58:06:011 CST] main INFO zookeeper.ZooKeeper: Client environment:java.version=11.0.3
[11/09/19 15:58:06:011 CST] main INFO zookeeper.ZooKeeper: Client environment:java.vendor=Oracle Corporation
[11/09/19 15:58:06:011 CST] main INFO zookeeper.ZooKeeper: Client environment:java.home=C:\software\jdk-11.0.3
[11/09/19 15:58:06:012 CST] main INFO zookeeper.ZooKeeper: Client environment:java.class.path=F:\IdeaProjects\dubbo\dubbo-provider\target\classes;F:\IdeaProjects\dubbo\dubbo-interface\target\classes;D:\repository\org\apache\zookeeper\zookeeper\3.5.5\zookeeper-3.5.5.jar;D:\repository\org\apache\zookeeper\zookeeper-jute\3.5.5\zookeeper-jute-3.5.5.jar;D:\repository\org\apache\yetus\audience-annotations\0.5.0\audience-annotations-0.5.0.jar;D:\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\repository\org\slf4j\slf4j-log4j12\1.7.25\slf4j-log4j12-1.7.25.jar;D:\repository\log4j\log4j\1.2.16\log4j-1.2.16.jar;D:\repository\org\apache\curator\curator-framework\4.2.0\curator-framework-4.2.0.jar;D:\repository\org\apache\curator\curator-client\4.2.0\curator-client-4.2.0.jar;D:\repository\com\google\guava\guava\27.0.1-jre\guava-27.0.1-jre.jar;D:\repository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;D:\repository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;D:\repository\org\checkerframework\checker-qual\2.5.2\checker-qual-2.5.2.jar;D:\repository\com\google\errorprone\error_prone_annotations\2.2.0\error_prone_annotations-2.2.0.jar;D:\repository\com\google\j2objc\j2objc-annotations\1.1\j2objc-annotations-1.1.jar;D:\repository\org\codehaus\mojo\animal-sniffer-annotations\1.17\animal-sniffer-annotations-1.17.jar;D:\repository\org\apache\dubbo\dubbo-registry-redis\2.7.3\dubbo-registry-redis-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-registry-api\2.7.3\dubbo-registry-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-cluster\2.7.3\dubbo-cluster-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-rpc-api\2.7.3\dubbo-rpc-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-serialization-api\2.7.3\dubbo-serialization-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-remoting-api\2.7.3\dubbo-remoting-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-configcenter-api\2.7.3\dubbo-configcenter-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-common\2.7.3\dubbo-common-2.7.3.jar;D:\repository\com\alibaba\hessian-lite\3.2.5\hessian-lite-3.2.5.jar;D:\repository\com\alibaba\fastjson\1.2.46\fastjson-1.2.46.jar;D:\repository\com\esotericsoftware\kryo\4.0.1\kryo-4.0.1.jar;D:\repository\com\esotericsoftware\reflectasm\1.11.3\reflectasm-1.11.3.jar;D:\repository\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;D:\repository\com\esotericsoftware\minlog\1.3.0\minlog-1.3.0.jar;D:\repository\org\objenesis\objenesis\2.5.1\objenesis-2.5.1.jar;D:\repository\de\javakaffee\kryo-serializers\0.42\kryo-serializers-0.42.jar;D:\repository\de\ruedigermoeller\fst\2.48-jdk-6\fst-2.48-jdk-6.jar;D:\repository\com\fasterxml\jackson\core\jackson-core\2.8.6\jackson-core-2.8.6.jar;D:\repository\com\cedarsoftware\java-util\1.9.0\java-util-1.9.0.jar;D:\repository\com\cedarsoftware\json-io\2.5.1\json-io-2.5.1.jar;D:\repository\org\apache\dubbo\dubbo-container-api\2.7.3\dubbo-container-api-2.7.3.jar;D:\repository\redis\clients\jedis\2.9.0\jedis-2.9.0.jar;D:\repository\org\apache\commons\commons-pool2\2.4.2\commons-pool2-2.4.2.jar;D:\repository\org\apache\dubbo\dubbo\2.7.3\dubbo-2.7.3.jar;D:\repository\org\springframework\spring-context\4.3.16.RELEASE\spring-context-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-aop\4.3.16.RELEASE\spring-aop-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-beans\4.3.16.RELEASE\spring-beans-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-core\4.3.16.RELEASE\spring-core-4.3.16.RELEASE.jar;D:\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;D:\repository\org\springframework\spring-expression\4.3.16.RELEASE\spring-expression-4.3.16.RELEASE.jar;D:\repository\org\javassist\javassist\3.20.0-GA\javassist-3.20.0-GA.jar;D:\repository\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar;D:\repository\org\yaml\snakeyaml\1.20\snakeyaml-1.20.jar;D:\repository\io\netty\netty-all\4.1.25.Final\netty-all-4.1.25.Final.jar
[11/09/19 15:58:06:012 CST] main INFO zookeeper.ZooKeeper: Client environment:java.library.path=C:\software\jdk-11.0.3\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\software\jdk-11.0.3\bin;C:\software\apache-maven-3.6.1\bin;C:\strawberry\c\bin;C:\strawberry\perl\bin;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\software\TortoiseSVN\bin;C:\software\MongoDB\bin;C:\software\Git\cmd;C:\software\TortoiseGit\bin;D:\software\OpenSSL-Win64\bin;D:\software\curl-7.65.1-win64-mingw\bin;C:\software\node-v12.6.0-win-x64;C:\software\swagger-editor-master;C:\Users\zhang\AppData\Local\Microsoft\WindowsApps;;.
[11/09/19 15:58:06:012 CST] main INFO zookeeper.ZooKeeper: Client environment:java.io.tmpdir=C:\Users\zhang\AppData\Local\Temp\
[11/09/19 15:58:06:013 CST] main INFO zookeeper.ZooKeeper: Client environment:java.compiler=
[11/09/19 15:58:06:013 CST] main INFO zookeeper.ZooKeeper: Client environment:os.name=Windows 10
[11/09/19 15:58:06:013 CST] main INFO zookeeper.ZooKeeper: Client environment:os.arch=amd64
[11/09/19 15:58:06:013 CST] main INFO zookeeper.ZooKeeper: Client environment:os.version=10.0
[11/09/19 15:58:06:013 CST] main INFO zookeeper.ZooKeeper: Client environment:user.name=zhang
[11/09/19 15:58:06:014 CST] main INFO zookeeper.ZooKeeper: Client environment:user.home=C:\Users\zhang
[11/09/19 15:58:06:014 CST] main INFO zookeeper.ZooKeeper: Client environment:user.dir=F:\IdeaProjects\dubbo
[11/09/19 15:58:06:014 CST] main INFO zookeeper.ZooKeeper: Client environment:os.memory.free=246MB
[11/09/19 15:58:06:014 CST] main INFO zookeeper.ZooKeeper: Client environment:os.memory.max=4064MB
[11/09/19 15:58:06:014 CST] main INFO zookeeper.ZooKeeper: Client environment:os.memory.total=254MB
[11/09/19 15:58:06:016 CST] main INFO utils.Compatibility: Using emulated InjectSessionExpiration
[11/09/19 15:58:06:079 CST] main INFO imps.CuratorFrameworkImpl: Starting
[11/09/19 15:58:06:083 CST] main INFO zookeeper.ZooKeeper: Initiating client connection, connectString=127.0.0.1:2181 sessionTimeout=60000 watcher=org.apache.curator.ConnectionState@6d304f9d
[11/09/19 15:58:06:089 CST] main INFO common.X509Util: Setting -D jdk.tls.rejectClientInitiatedRenegotiation=true to disable client-initiated TLS renegotiation
[11/09/19 15:58:06:152 CST] main INFO zookeeper.ClientCnxnSocket: jute.maxbuffer value is 4194304 Bytes
[11/09/19 15:58:06:156 CST] main INFO zookeeper.ClientCnxn: zookeeper.request.timeout value is 0. feature enabled=
[11/09/19 15:58:06:163 CST] main INFO imps.CuratorFrameworkImpl: Default schema
[11/09/19 15:58:06:163 CST] main INFO zookeeper.ZookeeperTransporter: [DUBBO] No valid zookeeper client found from cache, therefore create a new client for url. zookeeper://127.0.0.1:2181/ConfigCenterConfig?config.check=true&config.config-file=dubbo.properties&config.group=dubbo&config.highest-priority=true&config.namespace=dubbo&config.timeout=3000&include.spring.env=false, dubbo version: 2.7.3, current host: 192.168.56.1
[11/09/19 15:58:06:163 CST] main-SendThread(127.0.0.1:2181) INFO zookeeper.ClientCnxn: Opening socket connection to server activate.navicat.com/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/curator/framework/recipes/cache/TreeCacheListener
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:802)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:700)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:623)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
[11/09/19 15:58:06:165 CST] main-SendThread(127.0.0.1:2181) INFO zookeeper.ClientCnxn: Socket connection established, initiating session, client: /127.0.0.1:10264, server: activate.navicat.com/127.0.0.1:2181
at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.createTargetDataListener(CuratorZookeeperClient.java:217)
at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.createTargetDataListener(CuratorZookeeperClient.java:52)
at org.apache.dubbo.remoting.zookeeper.support.AbstractZookeeperClient.addDataListener(AbstractZookeeperClient.java:118)
at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfiguration.(ZookeeperDynamicConfiguration.java:62)
at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfigurationFactory.createDynamicConfiguration(ZookeeperDynamicConfigurationFactory.java:38)
at org.apache.dubbo.configcenter.AbstractDynamicConfigurationFactory.getDynamicConfiguration(AbstractDynamicConfigurationFactory.java:33)
at org.apache.dubbo.config.AbstractInterfaceConfig.getDynamicConfiguration(AbstractInterfaceConfig.java:314)
at org.apache.dubbo.config.AbstractInterfaceConfig.prepareEnvironment(AbstractInterfaceConfig.java:289)
at org.apache.dubbo.config.AbstractInterfaceConfig.startConfigCenter(AbstractInterfaceConfig.java:279)
at org.apache.dubbo.config.ServiceConfig.checkAndUpdateSubConfigs(ServiceConfig.java:296)
at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:369)
at org.apache.dubbo.config.spring.ServiceBean.export(ServiceBean.java:336)
at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:114)
at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:60)
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.finishRefresh(AbstractApplicationContext.java:883)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93)
at com.zsx.ProviderApplication.main(ProviderApplication.java:10)
Caused by: java.lang.ClassNotFoundException: org.apache.curator.framework.recipes.cache.TreeCacheListener
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 33 more
[11/09/19 15:58:06:167 CST] Thread-0 INFO support.ClassPathXmlApplicationContext: Closing org.springframework.context.support.ClassPathXmlApplicationContext@6b0c2d26: startup date [Wed Sep 11 15:57:56 CST 2019]; root of context hierarchy
[11/09/19 15:58:06:170 CST] Thread-0 INFO support.AbstractRegistryFactory: [DUBBO] Close all registries [], dubbo version: 2.7.3, current host: 192.168.56.1
Process finished with exit code 1
2. 异常背景:启动dobbo服务提供者时,控制台显示异常
3. 异常原因:使用curator作为zookeeper客户端连接,缺少curator相关依赖
4. 解决方法:添加curator完整依赖
org.apache.curator
curator-framework
4.2.0
org.apache.curator
curator-recipes
4.2.0
1. 异常详情
C:\software\jdk-11.0.3\bin\java.exe -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-javaagent:C:\software\JetBrains\IntelliJ IDEA 2019.1.3\lib\idea_rt.jar=7786:C:\software\JetBrains\IntelliJ IDEA 2019.1.3\bin" -Dfile.encoding=UTF-8 -classpath F:\IdeaProjects\dubbo\springboot-dubbo-provider\target\classes;F:\IdeaProjects\dubbo\dubbo-interface\target\classes;D:\repository\org\apache\zookeeper\zookeeper\3.5.5\zookeeper-3.5.5.jar;D:\repository\org\apache\zookeeper\zookeeper-jute\3.5.5\zookeeper-jute-3.5.5.jar;D:\repository\org\apache\yetus\audience-annotations\0.5.0\audience-annotations-0.5.0.jar;D:\repository\io\netty\netty-all\4.1.25.Final\netty-all-4.1.25.Final.jar;D:\repository\org\slf4j\slf4j-api\1.7.26\slf4j-api-1.7.26.jar;D:\repository\org\slf4j\slf4j-log4j12\1.7.26\slf4j-log4j12-1.7.26.jar;D:\repository\log4j\log4j\1.2.16\log4j-1.2.16.jar;D:\repository\org\apache\curator\curator-framework\4.2.0\curator-framework-4.2.0.jar;D:\repository\org\apache\curator\curator-client\4.2.0\curator-client-4.2.0.jar;D:\repository\com\google\guava\guava\27.0.1-jre\guava-27.0.1-jre.jar;D:\repository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;D:\repository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;D:\repository\org\checkerframework\checker-qual\2.5.2\checker-qual-2.5.2.jar;D:\repository\com\google\errorprone\error_prone_annotations\2.2.0\error_prone_annotations-2.2.0.jar;D:\repository\com\google\j2objc\j2objc-annotations\1.1\j2objc-annotations-1.1.jar;D:\repository\org\codehaus\mojo\animal-sniffer-annotations\1.17\animal-sniffer-annotations-1.17.jar;D:\repository\org\apache\curator\curator-recipes\4.2.0\curator-recipes-4.2.0.jar;D:\repository\org\apache\dubbo\dubbo-registry-redis\2.7.3\dubbo-registry-redis-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-registry-api\2.7.3\dubbo-registry-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-cluster\2.7.3\dubbo-cluster-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-rpc-api\2.7.3\dubbo-rpc-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-serialization-api\2.7.3\dubbo-serialization-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-remoting-api\2.7.3\dubbo-remoting-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-configcenter-api\2.7.3\dubbo-configcenter-api-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-common\2.7.3\dubbo-common-2.7.3.jar;D:\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;D:\repository\com\alibaba\hessian-lite\3.2.5\hessian-lite-3.2.5.jar;D:\repository\com\alibaba\fastjson\1.2.46\fastjson-1.2.46.jar;D:\repository\com\esotericsoftware\kryo\4.0.1\kryo-4.0.1.jar;D:\repository\com\esotericsoftware\reflectasm\1.11.3\reflectasm-1.11.3.jar;D:\repository\com\esotericsoftware\minlog\1.3.0\minlog-1.3.0.jar;D:\repository\de\javakaffee\kryo-serializers\0.42\kryo-serializers-0.42.jar;D:\repository\de\ruedigermoeller\fst\2.48-jdk-6\fst-2.48-jdk-6.jar;D:\repository\com\cedarsoftware\java-util\1.9.0\java-util-1.9.0.jar;D:\repository\com\cedarsoftware\json-io\2.5.1\json-io-2.5.1.jar;D:\repository\org\apache\dubbo\dubbo-container-api\2.7.3\dubbo-container-api-2.7.3.jar;D:\repository\redis\clients\jedis\2.9.3\jedis-2.9.3.jar;D:\repository\org\apache\commons\commons-pool2\2.6.2\commons-pool2-2.6.2.jar;D:\repository\org\springframework\boot\spring-boot-starter-web\2.1.7.RELEASE\spring-boot-starter-web-2.1.7.RELEASE.jar;D:\repository\org\springframework\boot\spring-boot-starter\2.1.7.RELEASE\spring-boot-starter-2.1.7.RELEASE.jar;D:\repository\org\springframework\boot\spring-boot\2.1.7.RELEASE\spring-boot-2.1.7.RELEASE.jar;D:\repository\org\springframework\boot\spring-boot-autoconfigure\2.1.7.RELEASE\spring-boot-autoconfigure-2.1.7.RELEASE.jar;D:\repository\org\springframework\boot\spring-boot-starter-logging\2.1.7.RELEASE\spring-boot-starter-logging-2.1.7.RELEASE.jar;D:\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;D:\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\repository\org\apache\logging\log4j\log4j-to-slf4j\2.11.2\log4j-to-slf4j-2.11.2.jar;D:\repository\org\apache\logging\log4j\log4j-api\2.11.1\log4j-api-2.11.1.jar;D:\repository\org\slf4j\jul-to-slf4j\1.7.26\jul-to-slf4j-1.7.26.jar;D:\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;D:\repository\org\yaml\snakeyaml\1.23\snakeyaml-1.23.jar;D:\repository\org\springframework\boot\spring-boot-starter-json\2.1.7.RELEASE\spring-boot-starter-json-2.1.7.RELEASE.jar;D:\repository\com\fasterxml\jackson\core\jackson-databind\2.9.9\jackson-databind-2.9.9.jar;D:\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;D:\repository\com\fasterxml\jackson\core\jackson-core\2.9.9\jackson-core-2.9.9.jar;D:\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.9.9\jackson-datatype-jdk8-2.9.9.jar;D:\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.9.9\jackson-datatype-jsr310-2.9.9.jar;D:\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.9.9\jackson-module-parameter-names-2.9.9.jar;D:\repository\org\springframework\boot\spring-boot-starter-tomcat\2.1.7.RELEASE\spring-boot-starter-tomcat-2.1.7.RELEASE.jar;D:\repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.22\tomcat-embed-core-9.0.22.jar;D:\repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.22\tomcat-embed-el-9.0.22.jar;D:\repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.22\tomcat-embed-websocket-9.0.22.jar;D:\repository\org\hibernate\validator\hibernate-validator\6.0.17.Final\hibernate-validator-6.0.17.Final.jar;D:\repository\javax\validation\validation-api\2.0.1.Final\validation-api-2.0.1.Final.jar;D:\repository\org\jboss\logging\jboss-logging\3.3.2.Final\jboss-logging-3.3.2.Final.jar;D:\repository\com\fasterxml\classmate\1.4.0\classmate-1.4.0.jar;D:\repository\org\springframework\spring-web\4.3.16.RELEASE\spring-web-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-aop\4.3.16.RELEASE\spring-aop-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-beans\4.3.16.RELEASE\spring-beans-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-context\4.3.16.RELEASE\spring-context-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-webmvc\4.3.16.RELEASE\spring-webmvc-4.3.16.RELEASE.jar;D:\repository\org\springframework\spring-expression\4.3.16.RELEASE\spring-expression-4.3.16.RELEASE.jar;D:\repository\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;D:\repository\org\objenesis\objenesis\2.6\objenesis-2.6.jar;D:\repository\org\springframework\spring-core\5.1.9.RELEASE\spring-core-5.1.9.RELEASE.jar;D:\repository\org\springframework\spring-jcl\5.1.9.RELEASE\spring-jcl-5.1.9.RELEASE.jar;D:\repository\org\apache\dubbo\dubbo-spring-boot-starter\2.7.3\dubbo-spring-boot-starter-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-spring-boot-autoconfigure\2.7.3\dubbo-spring-boot-autoconfigure-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo-spring-boot-autoconfigure-compatible\2.7.3\dubbo-spring-boot-autoconfigure-compatible-2.7.3.jar;D:\repository\org\apache\dubbo\dubbo\2.7.3\dubbo-2.7.3.jar;D:\repository\org\javassist\javassist\3.20.0-GA\javassist-3.20.0-GA.jar;D:\repository\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar com.zsx.ProviderApplication
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/repository/org/slf4j/slf4j-log4j12/1.7.26/slf4j-log4j12-1.7.26.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
Exception in thread "main" java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.slf4j.impl.Log4jLoggerFactory loaded from file:/D:/repository/org/slf4j/slf4j-log4j12/1.7.26/slf4j-log4j12-1.7.26.jar). If you are using WebLogic you will need to add 'org.slf4j' to prefer-application-packages in WEB-INF/weblogic.xml: org.slf4j.impl.Log4jLoggerFactory
at org.springframework.util.Assert.instanceCheckFailed(Assert.java:655)
at org.springframework.util.Assert.isInstanceOf(Assert.java:555)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.getLoggerContext(LogbackLoggingSystem.java:280)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.beforeInitialize(LogbackLoggingSystem.java:104)
at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationStartingEvent(LoggingApplicationListener.java:219)
at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:200)
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.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:122)
at org.springframework.boot.context.event.EventPublishingRunListener.starting(EventPublishingRunListener.java:70)
at org.springframework.boot.SpringApplicationRunListeners.starting(SpringApplicationRunListeners.java:47)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:302)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1214)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1203)
at com.zsx.ProviderApplication.main(ProviderApplication.java:10)
Process finished with exit code 1
2. 异常背景:springboot整合dubbo,启动服务提供者报错
3. 异常原因:zookeeper中日志包与springboot中日志包冲突
4. 解决方法:移除zookeeper中日志相关依赖
org.apache.zookeeper
zookeeper
${zookeeper.version}
log4j
log4j
org.slf4j
slf4j-log4j12
org.slf4j
slf4j-api