我是靠谱客的博主 负责自行车,最近开发中收集的这篇文章主要介绍dubbo2.7.3使用过程问题集合,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

一、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 exis

1.1 异常详情

C:softwarejdk-11.0.3binjava.exe "-javaagent:C:softwareJetBrainsIntelliJ IDEA 2019.1.3libidea_rt.jar=58803:C:softwareJetBrainsIntelliJ IDEA 2019.1.3bin" -Dfile.encoding=UTF-8 -classpath F:IdeaProjectsdobbodobbo-providertargetclasses;F:IdeaProjectsdobbodobbo-interfacetargetclasses;D:repositoryorgapachecuratorcurator-framework4.2.0curator-framework-4.2.0.jar;D:repositoryorgapachecuratorcurator-client4.2.0curator-client-4.2.0.jar;D:repositoryorgapachezookeeperzookeeper3.5.4-betazookeeper-3.5.4-beta.jar;D:repositorycommons-clicommons-cli1.2commons-cli-1.2.jar;D:repositorylog4jlog4j1.2.17log4j-1.2.17.jar;D:repositoryorgapacheyetusaudience-annotations.5.0audience-annotations-0.5.0.jar;D:repositoryionettynetty3.10.6.Finalnetty-3.10.6.Final.jar;D:repositorycomgoogleguavaguava27.0.1-jreguava-27.0.1-jre.jar;D:repositorycomgoogleguavafailureaccess1.0.1failureaccess-1.0.1.jar;D:repositorycomgoogleguavalistenablefuture9999.0-empty-to-avoid-conflict-with-guavalistenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:repositorycomgooglecodefindbugsjsr3053.0.2jsr305-3.0.2.jar;D:repositoryorgcheckerframeworkchecker-qual2.5.2checker-qual-2.5.2.jar;D:repositorycomgoogleerrorproneerror_prone_annotations2.2.0error_prone_annotations-2.2.0.jar;D:repositorycomgooglej2objcj2objc-annotations1.1j2objc-annotations-1.1.jar;D:repositoryorgcodehausmojoanimal-sniffer-annotations1.17animal-sniffer-annotations-1.17.jar;D:repositoryorgslf4jslf4j-api1.7.25slf4j-api-1.7.25.jar;D:repositoryorgapachedubbodubbo2.7.3dubbo-2.7.3.jar;D:repositoryorgspringframeworkspring-context4.3.16.RELEASEspring-context-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-aop4.3.16.RELEASEspring-aop-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-beans4.3.16.RELEASEspring-beans-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-core4.3.16.RELEASEspring-core-4.3.16.RELEASE.jar;D:repositorycommons-loggingcommons-logging1.2commons-logging-1.2.jar;D:repositoryorgspringframeworkspring-expression4.3.16.RELEASEspring-expression-4.3.16.RELEASE.jar;D:repositoryorgjavassistjavassist3.20.0-GAjavassist-3.20.0-GA.jar;D:repositoryionettynetty-all4.1.25.Finalnetty-all-4.1.25.Final.jar;D:repositorycomgooglecodegsongson2.8.5gson-2.8.5.jar;D:repositoryorgyamlsnakeyaml1.20snakeyaml-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.<init>(ClassPathXmlApplicationContext.java:139)
	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(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

二、Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/zookeeper/KeeperException$NoNodeException

1. 异常详情

C:softwarejdk-11.0.3binjava.exe "-javaagent:C:softwareJetBrainsIntelliJ IDEA 2019.1.3libidea_rt.jar=59085:C:softwareJetBrainsIntelliJ IDEA 2019.1.3bin" -Dfile.encoding=UTF-8 -classpath F:IdeaProjectsdobbodobbo-providertargetclasses;F:IdeaProjectsdobbodobbo-interfacetargetclasses;D:repositoryorgapachecuratorcurator-framework4.2.0curator-framework-4.2.0.jar;D:repositoryorgapachecuratorcurator-client4.2.0curator-client-4.2.0.jar;D:repositorycomgoogleguavaguava27.0.1-jreguava-27.0.1-jre.jar;D:repositorycomgoogleguavafailureaccess1.0.1failureaccess-1.0.1.jar;D:repositorycomgoogleguavalistenablefuture9999.0-empty-to-avoid-conflict-with-guavalistenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:repositorycomgooglecodefindbugsjsr3053.0.2jsr305-3.0.2.jar;D:repositoryorgcheckerframeworkchecker-qual2.5.2checker-qual-2.5.2.jar;D:repositorycomgoogleerrorproneerror_prone_annotations2.2.0error_prone_annotations-2.2.0.jar;D:repositorycomgooglej2objcj2objc-annotations1.1j2objc-annotations-1.1.jar;D:repositoryorgcodehausmojoanimal-sniffer-annotations1.17animal-sniffer-annotations-1.17.jar;D:repositoryorgslf4jslf4j-api1.7.25slf4j-api-1.7.25.jar;D:repositoryorgapachedubbodubbo2.7.3dubbo-2.7.3.jar;D:repositoryorgspringframeworkspring-context4.3.16.RELEASEspring-context-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-aop4.3.16.RELEASEspring-aop-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-beans4.3.16.RELEASEspring-beans-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-core4.3.16.RELEASEspring-core-4.3.16.RELEASE.jar;D:repositorycommons-loggingcommons-logging1.2commons-logging-1.2.jar;D:repositoryorgspringframeworkspring-expression4.3.16.RELEASEspring-expression-4.3.16.RELEASE.jar;D:repositoryorgjavassistjavassist3.20.0-GAjavassist-3.20.0-GA.jar;D:repositorycomgooglecodegsongson2.8.5gson-2.8.5.jar;D:repositoryorgyamlsnakeyaml1.20snakeyaml-1.20.jar;D:repositoryionettynetty-all4.1.25.Finalnetty-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.<init>(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.<init>(ClassPathXmlApplicationContext.java:139)
	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(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相关依赖

<dependency>
            <groupId>org.apache.zookeeper</groupId>
            <artifactId>zookeeper</artifactId>
            <version>3.5.5</version>
        </dependency>

三、org.apache.curator.CuratorConnectionLossException: KeeperErrorCode = ConnectionLoss

1. 异常详情

C:softwarejdk-11.0.3binjava.exe "-javaagent:C:softwareJetBrainsIntelliJ IDEA 2019.1.3libidea_rt.jar=7356:C:softwareJetBrainsIntelliJ IDEA 2019.1.3bin" -Dfile.encoding=UTF-8 -classpath F:IdeaProjectsdubbodubbo-providertargetclasses;F:IdeaProjectsdubbodubbo-interfacetargetclasses;D:repositoryorgapachezookeeperzookeeper3.5.5zookeeper-3.5.5.jar;D:repositoryorgapachezookeeperzookeeper-jute3.5.5zookeeper-jute-3.5.5.jar;D:repositoryorgapacheyetusaudience-annotations.5.0audience-annotations-0.5.0.jar;D:repositoryorgslf4jslf4j-api1.7.25slf4j-api-1.7.25.jar;D:repositoryorgslf4jslf4j-log4j121.7.25slf4j-log4j12-1.7.25.jar;D:repositorylog4jlog4j1.2.16log4j-1.2.16.jar;D:repositoryorgapachecuratorcurator-framework4.2.0curator-framework-4.2.0.jar;D:repositoryorgapachecuratorcurator-recipes4.2.0curator-recipes-4.2.0.jar;D:repositoryorgapachecuratorcurator-client4.2.0curator-client-4.2.0.jar;D:repositorycomgoogleguavaguava27.0.1-jreguava-27.0.1-jre.jar;D:repositorycomgoogleguavafailureaccess1.0.1failureaccess-1.0.1.jar;D:repositorycomgoogleguavalistenablefuture9999.0-empty-to-avoid-conflict-with-guavalistenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:repositorycomgooglecodefindbugsjsr3053.0.2jsr305-3.0.2.jar;D:repositoryorgcheckerframeworkchecker-qual2.5.2checker-qual-2.5.2.jar;D:repositorycomgoogleerrorproneerror_prone_annotations2.2.0error_prone_annotations-2.2.0.jar;D:repositorycomgooglej2objcj2objc-annotations1.1j2objc-annotations-1.1.jar;D:repositoryorgcodehausmojoanimal-sniffer-annotations1.17animal-sniffer-annotations-1.17.jar;D:repositoryorgapachedubbodubbo-registry-redis2.7.3dubbo-registry-redis-2.7.3.jar;D:repositoryorgapachedubbodubbo-registry-api2.7.3dubbo-registry-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-cluster2.7.3dubbo-cluster-2.7.3.jar;D:repositoryorgapachedubbodubbo-rpc-api2.7.3dubbo-rpc-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-serialization-api2.7.3dubbo-serialization-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-remoting-api2.7.3dubbo-remoting-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-configcenter-api2.7.3dubbo-configcenter-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-common2.7.3dubbo-common-2.7.3.jar;D:repositorycomalibabahessian-lite3.2.5hessian-lite-3.2.5.jar;D:repositorycomalibabafastjson1.2.46fastjson-1.2.46.jar;D:repositorycomesotericsoftwarekryo4.0.1kryo-4.0.1.jar;D:repositorycomesotericsoftwarereflectasm1.11.3reflectasm-1.11.3.jar;D:repositoryorgow2asmasm5.0.4asm-5.0.4.jar;D:repositorycomesotericsoftwareminlog1.3.0minlog-1.3.0.jar;D:repositoryorgobjenesisobjenesis2.5.1objenesis-2.5.1.jar;D:repositorydejavakaffeekryo-serializers.42kryo-serializers-0.42.jar;D:repositoryderuedigermoellerfst2.48-jdk-6fst-2.48-jdk-6.jar;D:repositorycomfasterxmljacksoncorejackson-core2.8.6jackson-core-2.8.6.jar;D:repositorycomcedarsoftwarejava-util1.9.0java-util-1.9.0.jar;D:repositorycomcedarsoftwarejson-io2.5.1json-io-2.5.1.jar;D:repositoryorgapachedubbodubbo-container-api2.7.3dubbo-container-api-2.7.3.jar;D:repositoryredisclientsjedis2.9.0jedis-2.9.0.jar;D:repositoryorgapachecommonscommons-pool22.4.2commons-pool2-2.4.2.jar;D:repositoryorgapachedubbodubbo2.7.3dubbo-2.7.3.jar;D:repositoryorgspringframeworkspring-context4.3.16.RELEASEspring-context-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-aop4.3.16.RELEASEspring-aop-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-beans4.3.16.RELEASEspring-beans-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-core4.3.16.RELEASEspring-core-4.3.16.RELEASE.jar;D:repositorycommons-loggingcommons-logging1.2commons-logging-1.2.jar;D:repositoryorgspringframeworkspring-expression4.3.16.RELEASEspring-expression-4.3.16.RELEASE.jar;D:repositoryorgjavassistjavassist3.20.0-GAjavassist-3.20.0-GA.jar;D:repositorycomgooglecodegsongson2.8.5gson-2.8.5.jar;D:repositoryorgyamlsnakeyaml1.20snakeyaml-1.20.jar;D:repositoryionettynetty-all4.1.25.Finalnetty-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:softwarejdk-11.0.3
[11/09/19 14:29:55:387 CST] main  INFO zookeeper.ZooKeeper: Client environment:java.class.path=F:IdeaProjectsdubbodubbo-providertargetclasses;F:IdeaProjectsdubbodubbo-interfacetargetclasses;D:repositoryorgapachezookeeperzookeeper3.5.5zookeeper-3.5.5.jar;D:repositoryorgapachezookeeperzookeeper-jute3.5.5zookeeper-jute-3.5.5.jar;D:repositoryorgapacheyetusaudience-annotations.5.0audience-annotations-0.5.0.jar;D:repositoryorgslf4jslf4j-api1.7.25slf4j-api-1.7.25.jar;D:repositoryorgslf4jslf4j-log4j121.7.25slf4j-log4j12-1.7.25.jar;D:repositorylog4jlog4j1.2.16log4j-1.2.16.jar;D:repositoryorgapachecuratorcurator-framework4.2.0curator-framework-4.2.0.jar;D:repositoryorgapachecuratorcurator-recipes4.2.0curator-recipes-4.2.0.jar;D:repositoryorgapachecuratorcurator-client4.2.0curator-client-4.2.0.jar;D:repositorycomgoogleguavaguava27.0.1-jreguava-27.0.1-jre.jar;D:repositorycomgoogleguavafailureaccess1.0.1failureaccess-1.0.1.jar;D:repositorycomgoogleguavalistenablefuture9999.0-empty-to-avoid-conflict-with-guavalistenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:repositorycomgooglecodefindbugsjsr3053.0.2jsr305-3.0.2.jar;D:repositoryorgcheckerframeworkchecker-qual2.5.2checker-qual-2.5.2.jar;D:repositorycomgoogleerrorproneerror_prone_annotations2.2.0error_prone_annotations-2.2.0.jar;D:repositorycomgooglej2objcj2objc-annotations1.1j2objc-annotations-1.1.jar;D:repositoryorgcodehausmojoanimal-sniffer-annotations1.17animal-sniffer-annotations-1.17.jar;D:repositoryorgapachedubbodubbo-registry-redis2.7.3dubbo-registry-redis-2.7.3.jar;D:repositoryorgapachedubbodubbo-registry-api2.7.3dubbo-registry-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-cluster2.7.3dubbo-cluster-2.7.3.jar;D:repositoryorgapachedubbodubbo-rpc-api2.7.3dubbo-rpc-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-serialization-api2.7.3dubbo-serialization-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-remoting-api2.7.3dubbo-remoting-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-configcenter-api2.7.3dubbo-configcenter-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-common2.7.3dubbo-common-2.7.3.jar;D:repositorycomalibabahessian-lite3.2.5hessian-lite-3.2.5.jar;D:repositorycomalibabafastjson1.2.46fastjson-1.2.46.jar;D:repositorycomesotericsoftwarekryo4.0.1kryo-4.0.1.jar;D:repositorycomesotericsoftwarereflectasm1.11.3reflectasm-1.11.3.jar;D:repositoryorgow2asmasm5.0.4asm-5.0.4.jar;D:repositorycomesotericsoftwareminlog1.3.0minlog-1.3.0.jar;D:repositoryorgobjenesisobjenesis2.5.1objenesis-2.5.1.jar;D:repositorydejavakaffeekryo-serializers.42kryo-serializers-0.42.jar;D:repositoryderuedigermoellerfst2.48-jdk-6fst-2.48-jdk-6.jar;D:repositorycomfasterxmljacksoncorejackson-core2.8.6jackson-core-2.8.6.jar;D:repositorycomcedarsoftwarejava-util1.9.0java-util-1.9.0.jar;D:repositorycomcedarsoftwarejson-io2.5.1json-io-2.5.1.jar;D:repositoryorgapachedubbodubbo-container-api2.7.3dubbo-container-api-2.7.3.jar;D:repositoryredisclientsjedis2.9.0jedis-2.9.0.jar;D:repositoryorgapachecommonscommons-pool22.4.2commons-pool2-2.4.2.jar;D:repositoryorgapachedubbodubbo2.7.3dubbo-2.7.3.jar;D:repositoryorgspringframeworkspring-context4.3.16.RELEASEspring-context-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-aop4.3.16.RELEASEspring-aop-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-beans4.3.16.RELEASEspring-beans-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-core4.3.16.RELEASEspring-core-4.3.16.RELEASE.jar;D:repositorycommons-loggingcommons-logging1.2commons-logging-1.2.jar;D:repositoryorgspringframeworkspring-expression4.3.16.RELEASEspring-expression-4.3.16.RELEASE.jar;D:repositoryorgjavassistjavassist3.20.0-GAjavassist-3.20.0-GA.jar;D:repositorycomgooglecodegsongson2.8.5gson-2.8.5.jar;D:repositoryorgyamlsnakeyaml1.20snakeyaml-1.20.jar;D:repositoryionettynetty-all4.1.25.Finalnetty-all-4.1.25.Final.jar
[11/09/19 14:29:55:387 CST] main  INFO zookeeper.ZooKeeper: Client environment:java.library.path=C:softwarejdk-11.0.3bin;C:WINDOWSSunJavabin;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:softwarejdk-11.0.3bin;C:softwareapache-maven-3.6.1bin;C:strawberrycbin;C:strawberryperlbin;C:WINDOWSSystem32OpenSSH;C:Program Filesdotnet;C:Program FilesMicrosoft SQL Server130ToolsBinn;C:softwareTortoiseSVNbin;C:softwareMongoDBbin;C:softwareGitcmd;C:softwareTortoiseGitbin;D:softwareOpenSSL-Win64bin;D:softwarecurl-7.65.1-win64-mingwbin;C:softwarenode-v12.6.0-win-x64;C:softwareswagger-editor-master;C:UserszhangAppDataLocalMicrosoftWindowsApps;;.
[11/09/19 14:29:55:387 CST] main  INFO zookeeper.ZooKeeper: Client environment:java.io.tmpdir=C:UserszhangAppDataLocalTemp
[11/09/19 14:29:55:388 CST] main  INFO zookeeper.ZooKeeper: Client environment:java.compiler=<NA>
[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:Userszhang
[11/09/19 14:29:55:389 CST] main  INFO zookeeper.ZooKeeper: Client environment:user.dir=F:IdeaProjectsdubbo
[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&register=true&release=2.7.3&side=provider&timestamp=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&register=true&release=2.7.3&side=provider&timestamp=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&register=true&release=2.7.3&side=provider&timestamp=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&registry=zookeeper&release=2.7.3&simplified=true&timestamp=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:Userszhang.dubbodubbo-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&register=true&release=2.7.3&side=provider&timestamp=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&timestamp=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&timestamp=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&register=true&release=2.7.3&side=provider&timestamp=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&register=true&release=2.7.3&side=provider&timestamp=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&register=true&release=2.7.3&side=provider&timestamp=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:softwarejdk-11.0.3binjava.exe "-javaagent:C:softwareJetBrainsIntelliJ IDEA 2019.1.3libidea_rt.jar=9636:C:softwareJetBrainsIntelliJ IDEA 2019.1.3bin" -Dfile.encoding=UTF-8 -classpath F:IdeaProjectsdubbodubbo-providertargetclasses;F:IdeaProjectsdubbodubbo-interfacetargetclasses;D:repositoryorgapachezookeeperzookeeper3.5.5zookeeper-3.5.5.jar;D:repositoryorgapachezookeeperzookeeper-jute3.5.5zookeeper-jute-3.5.5.jar;D:repositoryorgapacheyetusaudience-annotations.5.0audience-annotations-0.5.0.jar;D:repositoryorgslf4jslf4j-api1.7.25slf4j-api-1.7.25.jar;D:repositoryorgslf4jslf4j-log4j121.7.25slf4j-log4j12-1.7.25.jar;D:repositorylog4jlog4j1.2.16log4j-1.2.16.jar;D:repositoryorgapachecuratorcurator-framework4.2.0curator-framework-4.2.0.jar;D:repositoryorgapachecuratorcurator-recipes4.2.0curator-recipes-4.2.0.jar;D:repositoryorgapachecuratorcurator-client4.2.0curator-client-4.2.0.jar;D:repositorycomgoogleguavaguava27.0.1-jreguava-27.0.1-jre.jar;D:repositorycomgoogleguavafailureaccess1.0.1failureaccess-1.0.1.jar;D:repositorycomgoogleguavalistenablefuture9999.0-empty-to-avoid-conflict-with-guavalistenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:repositorycomgooglecodefindbugsjsr3053.0.2jsr305-3.0.2.jar;D:repositoryorgcheckerframeworkchecker-qual2.5.2checker-qual-2.5.2.jar;D:repositorycomgoogleerrorproneerror_prone_annotations2.2.0error_prone_annotations-2.2.0.jar;D:repositorycomgooglej2objcj2objc-annotations1.1j2objc-annotations-1.1.jar;D:repositoryorgcodehausmojoanimal-sniffer-annotations1.17animal-sniffer-annotations-1.17.jar;D:repositoryorgapachedubbodubbo-registry-redis2.7.3dubbo-registry-redis-2.7.3.jar;D:repositoryorgapachedubbodubbo-registry-api2.7.3dubbo-registry-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-cluster2.7.3dubbo-cluster-2.7.3.jar;D:repositoryorgapachedubbodubbo-rpc-api2.7.3dubbo-rpc-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-serialization-api2.7.3dubbo-serialization-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-remoting-api2.7.3dubbo-remoting-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-configcenter-api2.7.3dubbo-configcenter-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-common2.7.3dubbo-common-2.7.3.jar;D:repositorycomalibabahessian-lite3.2.5hessian-lite-3.2.5.jar;D:repositorycomalibabafastjson1.2.46fastjson-1.2.46.jar;D:repositorycomesotericsoftwarekryo4.0.1kryo-4.0.1.jar;D:repositorycomesotericsoftwarereflectasm1.11.3reflectasm-1.11.3.jar;D:repositoryorgow2asmasm5.0.4asm-5.0.4.jar;D:repositorycomesotericsoftwareminlog1.3.0minlog-1.3.0.jar;D:repositoryorgobjenesisobjenesis2.5.1objenesis-2.5.1.jar;D:repositorydejavakaffeekryo-serializers.42kryo-serializers-0.42.jar;D:repositoryderuedigermoellerfst2.48-jdk-6fst-2.48-jdk-6.jar;D:repositorycomfasterxmljacksoncorejackson-core2.8.6jackson-core-2.8.6.jar;D:repositorycomcedarsoftwarejava-util1.9.0java-util-1.9.0.jar;D:repositorycomcedarsoftwarejson-io2.5.1json-io-2.5.1.jar;D:repositoryorgapachedubbodubbo-container-api2.7.3dubbo-container-api-2.7.3.jar;D:repositoryredisclientsjedis2.9.0jedis-2.9.0.jar;D:repositoryorgapachecommonscommons-pool22.4.2commons-pool2-2.4.2.jar;D:repositoryorgapachedubbodubbo2.7.3dubbo-2.7.3.jar;D:repositoryorgspringframeworkspring-context4.3.16.RELEASEspring-context-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-aop4.3.16.RELEASEspring-aop-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-beans4.3.16.RELEASEspring-beans-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-core4.3.16.RELEASEspring-core-4.3.16.RELEASE.jar;D:repositorycommons-loggingcommons-logging1.2commons-logging-1.2.jar;D:repositoryorgspringframeworkspring-expression4.3.16.RELEASEspring-expression-4.3.16.RELEASE.jar;D:repositoryorgjavassistjavassist3.20.0-GAjavassist-3.20.0-GA.jar;D:repositorycomgooglecodegsongson2.8.5gson-2.8.5.jar;D:repositoryorgyamlsnakeyaml1.20snakeyaml-1.20.jar;D:repositoryionettynetty-all4.1.25.Finalnetty-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:softwarejdk-11.0.3
[11/09/19 15:41:11:138 CST] main  INFO zookeeper.ZooKeeper: Client environment:java.class.path=F:IdeaProjectsdubbodubbo-providertargetclasses;F:IdeaProjectsdubbodubbo-interfacetargetclasses;D:repositoryorgapachezookeeperzookeeper3.5.5zookeeper-3.5.5.jar;D:repositoryorgapachezookeeperzookeeper-jute3.5.5zookeeper-jute-3.5.5.jar;D:repositoryorgapacheyetusaudience-annotations.5.0audience-annotations-0.5.0.jar;D:repositoryorgslf4jslf4j-api1.7.25slf4j-api-1.7.25.jar;D:repositoryorgslf4jslf4j-log4j121.7.25slf4j-log4j12-1.7.25.jar;D:repositorylog4jlog4j1.2.16log4j-1.2.16.jar;D:repositoryorgapachecuratorcurator-framework4.2.0curator-framework-4.2.0.jar;D:repositoryorgapachecuratorcurator-recipes4.2.0curator-recipes-4.2.0.jar;D:repositoryorgapachecuratorcurator-client4.2.0curator-client-4.2.0.jar;D:repositorycomgoogleguavaguava27.0.1-jreguava-27.0.1-jre.jar;D:repositorycomgoogleguavafailureaccess1.0.1failureaccess-1.0.1.jar;D:repositorycomgoogleguavalistenablefuture9999.0-empty-to-avoid-conflict-with-guavalistenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:repositorycomgooglecodefindbugsjsr3053.0.2jsr305-3.0.2.jar;D:repositoryorgcheckerframeworkchecker-qual2.5.2checker-qual-2.5.2.jar;D:repositorycomgoogleerrorproneerror_prone_annotations2.2.0error_prone_annotations-2.2.0.jar;D:repositorycomgooglej2objcj2objc-annotations1.1j2objc-annotations-1.1.jar;D:repositoryorgcodehausmojoanimal-sniffer-annotations1.17animal-sniffer-annotations-1.17.jar;D:repositoryorgapachedubbodubbo-registry-redis2.7.3dubbo-registry-redis-2.7.3.jar;D:repositoryorgapachedubbodubbo-registry-api2.7.3dubbo-registry-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-cluster2.7.3dubbo-cluster-2.7.3.jar;D:repositoryorgapachedubbodubbo-rpc-api2.7.3dubbo-rpc-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-serialization-api2.7.3dubbo-serialization-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-remoting-api2.7.3dubbo-remoting-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-configcenter-api2.7.3dubbo-configcenter-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-common2.7.3dubbo-common-2.7.3.jar;D:repositorycomalibabahessian-lite3.2.5hessian-lite-3.2.5.jar;D:repositorycomalibabafastjson1.2.46fastjson-1.2.46.jar;D:repositorycomesotericsoftwarekryo4.0.1kryo-4.0.1.jar;D:repositorycomesotericsoftwarereflectasm1.11.3reflectasm-1.11.3.jar;D:repositoryorgow2asmasm5.0.4asm-5.0.4.jar;D:repositorycomesotericsoftwareminlog1.3.0minlog-1.3.0.jar;D:repositoryorgobjenesisobjenesis2.5.1objenesis-2.5.1.jar;D:repositorydejavakaffeekryo-serializers.42kryo-serializers-0.42.jar;D:repositoryderuedigermoellerfst2.48-jdk-6fst-2.48-jdk-6.jar;D:repositorycomfasterxmljacksoncorejackson-core2.8.6jackson-core-2.8.6.jar;D:repositorycomcedarsoftwarejava-util1.9.0java-util-1.9.0.jar;D:repositorycomcedarsoftwarejson-io2.5.1json-io-2.5.1.jar;D:repositoryorgapachedubbodubbo-container-api2.7.3dubbo-container-api-2.7.3.jar;D:repositoryredisclientsjedis2.9.0jedis-2.9.0.jar;D:repositoryorgapachecommonscommons-pool22.4.2commons-pool2-2.4.2.jar;D:repositoryorgapachedubbodubbo2.7.3dubbo-2.7.3.jar;D:repositoryorgspringframeworkspring-context4.3.16.RELEASEspring-context-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-aop4.3.16.RELEASEspring-aop-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-beans4.3.16.RELEASEspring-beans-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-core4.3.16.RELEASEspring-core-4.3.16.RELEASE.jar;D:repositorycommons-loggingcommons-logging1.2commons-logging-1.2.jar;D:repositoryorgspringframeworkspring-expression4.3.16.RELEASEspring-expression-4.3.16.RELEASE.jar;D:repositoryorgjavassistjavassist3.20.0-GAjavassist-3.20.0-GA.jar;D:repositorycomgooglecodegsongson2.8.5gson-2.8.5.jar;D:repositoryorgyamlsnakeyaml1.20snakeyaml-1.20.jar;D:repositoryionettynetty-all4.1.25.Finalnetty-all-4.1.25.Final.jar
[11/09/19 15:41:11:138 CST] main  INFO zookeeper.ZooKeeper: Client environment:java.library.path=C:softwarejdk-11.0.3bin;C:WINDOWSSunJavabin;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:softwarejdk-11.0.3bin;C:softwareapache-maven-3.6.1bin;C:strawberrycbin;C:strawberryperlbin;C:WINDOWSSystem32OpenSSH;C:Program Filesdotnet;C:Program FilesMicrosoft SQL Server130ToolsBinn;C:softwareTortoiseSVNbin;C:softwareMongoDBbin;C:softwareGitcmd;C:softwareTortoiseGitbin;D:softwareOpenSSL-Win64bin;D:softwarecurl-7.65.1-win64-mingwbin;C:softwarenode-v12.6.0-win-x64;C:softwareswagger-editor-master;C:UserszhangAppDataLocalMicrosoftWindowsApps;;.
[11/09/19 15:41:11:139 CST] main  INFO zookeeper.ZooKeeper: Client environment:java.io.tmpdir=C:UserszhangAppDataLocalTemp
[11/09/19 15:41:11:139 CST] main  INFO zookeeper.ZooKeeper: Client environment:java.compiler=<NA>
[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:Userszhang
[11/09/19 15:41:11:140 CST] main  INFO zookeeper.ZooKeeper: Client environment:user.dir=F:IdeaProjectsdubbo
[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&register=true&release=2.7.3&side=provider&timestamp=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&register=true&release=2.7.3&side=provider&timestamp=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&register=true&release=2.7.3&side=provider&timestamp=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&registry=zookeeper&release=2.7.3&simplified=true&timestamp=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:Userszhang.dubbodubbo-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&register=true&release=2.7.3&side=provider&timestamp=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&timestamp=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&timestamp=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&register=true&release=2.7.3&side=provider&timestamp=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&register=true&release=2.7.3&side=provider&timestamp=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&register=true&release=2.7.3&side=provider&timestamp=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

四、Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/pool2/impl/GenericObjectPoolConfig

1. 异常详情

C:softwarejdk-11.0.3binjava.exe "-javaagent:C:softwareJetBrainsIntelliJ IDEA 2019.1.3libidea_rt.jar=9770:C:softwareJetBrainsIntelliJ IDEA 2019.1.3bin" -Dfile.encoding=UTF-8 -classpath F:IdeaProjectsdubbodubbo-providertargetclasses;F:IdeaProjectsdubbodubbo-interfacetargetclasses;D:repositoryorgapachezookeeperzookeeper3.5.5zookeeper-3.5.5.jar;D:repositoryorgapachezookeeperzookeeper-jute3.5.5zookeeper-jute-3.5.5.jar;D:repositoryorgapacheyetusaudience-annotations.5.0audience-annotations-0.5.0.jar;D:repositoryorgslf4jslf4j-api1.7.25slf4j-api-1.7.25.jar;D:repositoryorgslf4jslf4j-log4j121.7.25slf4j-log4j12-1.7.25.jar;D:repositorylog4jlog4j1.2.16log4j-1.2.16.jar;D:repositoryorgapachecuratorcurator-framework4.2.0curator-framework-4.2.0.jar;D:repositoryorgapachecuratorcurator-recipes4.2.0curator-recipes-4.2.0.jar;D:repositoryorgapachecuratorcurator-client4.2.0curator-client-4.2.0.jar;D:repositorycomgoogleguavaguava27.0.1-jreguava-27.0.1-jre.jar;D:repositorycomgoogleguavafailureaccess1.0.1failureaccess-1.0.1.jar;D:repositorycomgoogleguavalistenablefuture9999.0-empty-to-avoid-conflict-with-guavalistenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:repositorycomgooglecodefindbugsjsr3053.0.2jsr305-3.0.2.jar;D:repositoryorgcheckerframeworkchecker-qual2.5.2checker-qual-2.5.2.jar;D:repositorycomgoogleerrorproneerror_prone_annotations2.2.0error_prone_annotations-2.2.0.jar;D:repositorycomgooglej2objcj2objc-annotations1.1j2objc-annotations-1.1.jar;D:repositoryorgcodehausmojoanimal-sniffer-annotations1.17animal-sniffer-annotations-1.17.jar;D:repositoryorgapachedubbodubbo2.7.3dubbo-2.7.3.jar;D:repositoryorgspringframeworkspring-context4.3.16.RELEASEspring-context-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-aop4.3.16.RELEASEspring-aop-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-beans4.3.16.RELEASEspring-beans-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-core4.3.16.RELEASEspring-core-4.3.16.RELEASE.jar;D:repositorycommons-loggingcommons-logging1.2commons-logging-1.2.jar;D:repositoryorgspringframeworkspring-expression4.3.16.RELEASEspring-expression-4.3.16.RELEASE.jar;D:repositoryorgjavassistjavassist3.20.0-GAjavassist-3.20.0-GA.jar;D:repositorycomgooglecodegsongson2.8.5gson-2.8.5.jar;D:repositoryorgyamlsnakeyaml1.20snakeyaml-1.20.jar;D:repositoryionettynetty-all4.1.25.Finalnetty-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:softwarejdk-11.0.3
[11/09/19 15:45:15:990 CST] main  INFO zookeeper.ZooKeeper: Client environment:java.class.path=F:IdeaProjectsdubbodubbo-providertargetclasses;F:IdeaProjectsdubbodubbo-interfacetargetclasses;D:repositoryorgapachezookeeperzookeeper3.5.5zookeeper-3.5.5.jar;D:repositoryorgapachezookeeperzookeeper-jute3.5.5zookeeper-jute-3.5.5.jar;D:repositoryorgapacheyetusaudience-annotations.5.0audience-annotations-0.5.0.jar;D:repositoryorgslf4jslf4j-api1.7.25slf4j-api-1.7.25.jar;D:repositoryorgslf4jslf4j-log4j121.7.25slf4j-log4j12-1.7.25.jar;D:repositorylog4jlog4j1.2.16log4j-1.2.16.jar;D:repositoryorgapachecuratorcurator-framework4.2.0curator-framework-4.2.0.jar;D:repositoryorgapachecuratorcurator-recipes4.2.0curator-recipes-4.2.0.jar;D:repositoryorgapachecuratorcurator-client4.2.0curator-client-4.2.0.jar;D:repositorycomgoogleguavaguava27.0.1-jreguava-27.0.1-jre.jar;D:repositorycomgoogleguavafailureaccess1.0.1failureaccess-1.0.1.jar;D:repositorycomgoogleguavalistenablefuture9999.0-empty-to-avoid-conflict-with-guavalistenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:repositorycomgooglecodefindbugsjsr3053.0.2jsr305-3.0.2.jar;D:repositoryorgcheckerframeworkchecker-qual2.5.2checker-qual-2.5.2.jar;D:repositorycomgoogleerrorproneerror_prone_annotations2.2.0error_prone_annotations-2.2.0.jar;D:repositorycomgooglej2objcj2objc-annotations1.1j2objc-annotations-1.1.jar;D:repositoryorgcodehausmojoanimal-sniffer-annotations1.17animal-sniffer-annotations-1.17.jar;D:repositoryorgapachedubbodubbo2.7.3dubbo-2.7.3.jar;D:repositoryorgspringframeworkspring-context4.3.16.RELEASEspring-context-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-aop4.3.16.RELEASEspring-aop-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-beans4.3.16.RELEASEspring-beans-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-core4.3.16.RELEASEspring-core-4.3.16.RELEASE.jar;D:repositorycommons-loggingcommons-logging1.2commons-logging-1.2.jar;D:repositoryorgspringframeworkspring-expression4.3.16.RELEASEspring-expression-4.3.16.RELEASE.jar;D:repositoryorgjavassistjavassist3.20.0-GAjavassist-3.20.0-GA.jar;D:repositorycomgooglecodegsongson2.8.5gson-2.8.5.jar;D:repositoryorgyamlsnakeyaml1.20snakeyaml-1.20.jar;D:repositoryionettynetty-all4.1.25.Finalnetty-all-4.1.25.Final.jar
[11/09/19 15:45:15:990 CST] main  INFO zookeeper.ZooKeeper: Client environment:java.library.path=C:softwarejdk-11.0.3bin;C:WINDOWSSunJavabin;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:softwarejdk-11.0.3bin;C:softwareapache-maven-3.6.1bin;C:strawberrycbin;C:strawberryperlbin;C:WINDOWSSystem32OpenSSH;C:Program Filesdotnet;C:Program FilesMicrosoft SQL Server130ToolsBinn;C:softwareTortoiseSVNbin;C:softwareMongoDBbin;C:softwareGitcmd;C:softwareTortoiseGitbin;D:softwareOpenSSL-Win64bin;D:softwarecurl-7.65.1-win64-mingwbin;C:softwarenode-v12.6.0-win-x64;C:softwareswagger-editor-master;C:UserszhangAppDataLocalMicrosoftWindowsApps;;.
[11/09/19 15:45:15:990 CST] main  INFO zookeeper.ZooKeeper: Client environment:java.io.tmpdir=C:UserszhangAppDataLocalTemp
[11/09/19 15:45:15:990 CST] main  INFO zookeeper.ZooKeeper: Client environment:java.compiler=<NA>
[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:Userszhang
[11/09/19 15:45:15:992 CST] main  INFO zookeeper.ZooKeeper: Client environment:user.dir=F:IdeaProjectsdubbo
[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&register=true&release=2.7.3&side=provider&timestamp=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&register=true&release=2.7.3&side=provider&timestamp=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&register=true&release=2.7.3&side=provider&timestamp=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&registry=zookeeper&release=2.7.3&simplified=true&timestamp=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:Userszhang.dubbodubbo-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&register=true&release=2.7.3&side=provider&timestamp=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&timestamp=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&timestamp=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&register=true&release=2.7.3&side=provider&timestamp=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&register=true&release=2.7.3&side=provider&timestamp=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&register=true&release=2.7.3&side=provider&timestamp=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.<init>(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.<init>(ClassPathXmlApplicationContext.java:139)
	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(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&timestamp=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&timestamp=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&timestamp=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&timestamp=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&register=true&release=2.7.3&side=provider&timestamp=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&register=true&release=2.7.3&side=provider&timestamp=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&register=true&release=2.7.3&side=provider&timestamp=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&register=true&release=2.7.3&side=provider&timestamp=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:Userszhang.dubbodubbo-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&register=true&release=2.7.3&side=provider&timestamp=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&timestamp=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&timestamp=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&register=true&release=2.7.3&side=provider&timestamp=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相关依赖

<dependency>
            <groupId>org.apache.dubbo</groupId>
            <artifactId>dubbo-registry-redis</artifactId>
            <version>2.7.3</version>
        </dependency>

五、Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/curator/framework/recipes/cache/TreeCacheListener

1. 异常详情

C:softwarejdk-11.0.3binjava.exe "-javaagent:C:softwareJetBrainsIntelliJ IDEA 2019.1.3libidea_rt.jar=10257:C:softwareJetBrainsIntelliJ IDEA 2019.1.3bin" -Dfile.encoding=UTF-8 -classpath F:IdeaProjectsdubbodubbo-providertargetclasses;F:IdeaProjectsdubbodubbo-interfacetargetclasses;D:repositoryorgapachezookeeperzookeeper3.5.5zookeeper-3.5.5.jar;D:repositoryorgapachezookeeperzookeeper-jute3.5.5zookeeper-jute-3.5.5.jar;D:repositoryorgapacheyetusaudience-annotations.5.0audience-annotations-0.5.0.jar;D:repositoryorgslf4jslf4j-api1.7.25slf4j-api-1.7.25.jar;D:repositoryorgslf4jslf4j-log4j121.7.25slf4j-log4j12-1.7.25.jar;D:repositorylog4jlog4j1.2.16log4j-1.2.16.jar;D:repositoryorgapachecuratorcurator-framework4.2.0curator-framework-4.2.0.jar;D:repositoryorgapachecuratorcurator-client4.2.0curator-client-4.2.0.jar;D:repositorycomgoogleguavaguava27.0.1-jreguava-27.0.1-jre.jar;D:repositorycomgoogleguavafailureaccess1.0.1failureaccess-1.0.1.jar;D:repositorycomgoogleguavalistenablefuture9999.0-empty-to-avoid-conflict-with-guavalistenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:repositorycomgooglecodefindbugsjsr3053.0.2jsr305-3.0.2.jar;D:repositoryorgcheckerframeworkchecker-qual2.5.2checker-qual-2.5.2.jar;D:repositorycomgoogleerrorproneerror_prone_annotations2.2.0error_prone_annotations-2.2.0.jar;D:repositorycomgooglej2objcj2objc-annotations1.1j2objc-annotations-1.1.jar;D:repositoryorgcodehausmojoanimal-sniffer-annotations1.17animal-sniffer-annotations-1.17.jar;D:repositoryorgapachedubbodubbo-registry-redis2.7.3dubbo-registry-redis-2.7.3.jar;D:repositoryorgapachedubbodubbo-registry-api2.7.3dubbo-registry-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-cluster2.7.3dubbo-cluster-2.7.3.jar;D:repositoryorgapachedubbodubbo-rpc-api2.7.3dubbo-rpc-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-serialization-api2.7.3dubbo-serialization-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-remoting-api2.7.3dubbo-remoting-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-configcenter-api2.7.3dubbo-configcenter-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-common2.7.3dubbo-common-2.7.3.jar;D:repositorycomalibabahessian-lite3.2.5hessian-lite-3.2.5.jar;D:repositorycomalibabafastjson1.2.46fastjson-1.2.46.jar;D:repositorycomesotericsoftwarekryo4.0.1kryo-4.0.1.jar;D:repositorycomesotericsoftwarereflectasm1.11.3reflectasm-1.11.3.jar;D:repositoryorgow2asmasm5.0.4asm-5.0.4.jar;D:repositorycomesotericsoftwareminlog1.3.0minlog-1.3.0.jar;D:repositoryorgobjenesisobjenesis2.5.1objenesis-2.5.1.jar;D:repositorydejavakaffeekryo-serializers.42kryo-serializers-0.42.jar;D:repositoryderuedigermoellerfst2.48-jdk-6fst-2.48-jdk-6.jar;D:repositorycomfasterxmljacksoncorejackson-core2.8.6jackson-core-2.8.6.jar;D:repositorycomcedarsoftwarejava-util1.9.0java-util-1.9.0.jar;D:repositorycomcedarsoftwarejson-io2.5.1json-io-2.5.1.jar;D:repositoryorgapachedubbodubbo-container-api2.7.3dubbo-container-api-2.7.3.jar;D:repositoryredisclientsjedis2.9.0jedis-2.9.0.jar;D:repositoryorgapachecommonscommons-pool22.4.2commons-pool2-2.4.2.jar;D:repositoryorgapachedubbodubbo2.7.3dubbo-2.7.3.jar;D:repositoryorgspringframeworkspring-context4.3.16.RELEASEspring-context-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-aop4.3.16.RELEASEspring-aop-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-beans4.3.16.RELEASEspring-beans-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-core4.3.16.RELEASEspring-core-4.3.16.RELEASE.jar;D:repositorycommons-loggingcommons-logging1.2commons-logging-1.2.jar;D:repositoryorgspringframeworkspring-expression4.3.16.RELEASEspring-expression-4.3.16.RELEASE.jar;D:repositoryorgjavassistjavassist3.20.0-GAjavassist-3.20.0-GA.jar;D:repositorycomgooglecodegsongson2.8.5gson-2.8.5.jar;D:repositoryorgyamlsnakeyaml1.20snakeyaml-1.20.jar;D:repositoryionettynetty-all4.1.25.Finalnetty-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:softwarejdk-11.0.3
[11/09/19 15:58:06:012 CST] main  INFO zookeeper.ZooKeeper: Client environment:java.class.path=F:IdeaProjectsdubbodubbo-providertargetclasses;F:IdeaProjectsdubbodubbo-interfacetargetclasses;D:repositoryorgapachezookeeperzookeeper3.5.5zookeeper-3.5.5.jar;D:repositoryorgapachezookeeperzookeeper-jute3.5.5zookeeper-jute-3.5.5.jar;D:repositoryorgapacheyetusaudience-annotations.5.0audience-annotations-0.5.0.jar;D:repositoryorgslf4jslf4j-api1.7.25slf4j-api-1.7.25.jar;D:repositoryorgslf4jslf4j-log4j121.7.25slf4j-log4j12-1.7.25.jar;D:repositorylog4jlog4j1.2.16log4j-1.2.16.jar;D:repositoryorgapachecuratorcurator-framework4.2.0curator-framework-4.2.0.jar;D:repositoryorgapachecuratorcurator-client4.2.0curator-client-4.2.0.jar;D:repositorycomgoogleguavaguava27.0.1-jreguava-27.0.1-jre.jar;D:repositorycomgoogleguavafailureaccess1.0.1failureaccess-1.0.1.jar;D:repositorycomgoogleguavalistenablefuture9999.0-empty-to-avoid-conflict-with-guavalistenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:repositorycomgooglecodefindbugsjsr3053.0.2jsr305-3.0.2.jar;D:repositoryorgcheckerframeworkchecker-qual2.5.2checker-qual-2.5.2.jar;D:repositorycomgoogleerrorproneerror_prone_annotations2.2.0error_prone_annotations-2.2.0.jar;D:repositorycomgooglej2objcj2objc-annotations1.1j2objc-annotations-1.1.jar;D:repositoryorgcodehausmojoanimal-sniffer-annotations1.17animal-sniffer-annotations-1.17.jar;D:repositoryorgapachedubbodubbo-registry-redis2.7.3dubbo-registry-redis-2.7.3.jar;D:repositoryorgapachedubbodubbo-registry-api2.7.3dubbo-registry-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-cluster2.7.3dubbo-cluster-2.7.3.jar;D:repositoryorgapachedubbodubbo-rpc-api2.7.3dubbo-rpc-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-serialization-api2.7.3dubbo-serialization-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-remoting-api2.7.3dubbo-remoting-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-configcenter-api2.7.3dubbo-configcenter-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-common2.7.3dubbo-common-2.7.3.jar;D:repositorycomalibabahessian-lite3.2.5hessian-lite-3.2.5.jar;D:repositorycomalibabafastjson1.2.46fastjson-1.2.46.jar;D:repositorycomesotericsoftwarekryo4.0.1kryo-4.0.1.jar;D:repositorycomesotericsoftwarereflectasm1.11.3reflectasm-1.11.3.jar;D:repositoryorgow2asmasm5.0.4asm-5.0.4.jar;D:repositorycomesotericsoftwareminlog1.3.0minlog-1.3.0.jar;D:repositoryorgobjenesisobjenesis2.5.1objenesis-2.5.1.jar;D:repositorydejavakaffeekryo-serializers.42kryo-serializers-0.42.jar;D:repositoryderuedigermoellerfst2.48-jdk-6fst-2.48-jdk-6.jar;D:repositorycomfasterxmljacksoncorejackson-core2.8.6jackson-core-2.8.6.jar;D:repositorycomcedarsoftwarejava-util1.9.0java-util-1.9.0.jar;D:repositorycomcedarsoftwarejson-io2.5.1json-io-2.5.1.jar;D:repositoryorgapachedubbodubbo-container-api2.7.3dubbo-container-api-2.7.3.jar;D:repositoryredisclientsjedis2.9.0jedis-2.9.0.jar;D:repositoryorgapachecommonscommons-pool22.4.2commons-pool2-2.4.2.jar;D:repositoryorgapachedubbodubbo2.7.3dubbo-2.7.3.jar;D:repositoryorgspringframeworkspring-context4.3.16.RELEASEspring-context-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-aop4.3.16.RELEASEspring-aop-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-beans4.3.16.RELEASEspring-beans-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-core4.3.16.RELEASEspring-core-4.3.16.RELEASE.jar;D:repositorycommons-loggingcommons-logging1.2commons-logging-1.2.jar;D:repositoryorgspringframeworkspring-expression4.3.16.RELEASEspring-expression-4.3.16.RELEASE.jar;D:repositoryorgjavassistjavassist3.20.0-GAjavassist-3.20.0-GA.jar;D:repositorycomgooglecodegsongson2.8.5gson-2.8.5.jar;D:repositoryorgyamlsnakeyaml1.20snakeyaml-1.20.jar;D:repositoryionettynetty-all4.1.25.Finalnetty-all-4.1.25.Final.jar
[11/09/19 15:58:06:012 CST] main  INFO zookeeper.ZooKeeper: Client environment:java.library.path=C:softwarejdk-11.0.3bin;C:WINDOWSSunJavabin;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:softwarejdk-11.0.3bin;C:softwareapache-maven-3.6.1bin;C:strawberrycbin;C:strawberryperlbin;C:WINDOWSSystem32OpenSSH;C:Program Filesdotnet;C:Program FilesMicrosoft SQL Server130ToolsBinn;C:softwareTortoiseSVNbin;C:softwareMongoDBbin;C:softwareGitcmd;C:softwareTortoiseGitbin;D:softwareOpenSSL-Win64bin;D:softwarecurl-7.65.1-win64-mingwbin;C:softwarenode-v12.6.0-win-x64;C:softwareswagger-editor-master;C:UserszhangAppDataLocalMicrosoftWindowsApps;;.
[11/09/19 15:58:06:012 CST] main  INFO zookeeper.ZooKeeper: Client environment:java.io.tmpdir=C:UserszhangAppDataLocalTemp
[11/09/19 15:58:06:013 CST] main  INFO zookeeper.ZooKeeper: Client environment:java.compiler=<NA>
[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:Userszhang
[11/09/19 15:58:06:014 CST] main  INFO zookeeper.ZooKeeper: Client environment:user.dir=F:IdeaProjectsdubbo
[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.<init>(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.<init>(ClassPathXmlApplicationContext.java:139)
	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(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完整依赖

<dependency>
            <groupId>org.apache.curator</groupId>
            <artifactId>curator-framework</artifactId>
            <version>4.2.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.curator</groupId>
            <artifactId>curator-recipes</artifactId>
            <version>4.2.0</version>
        </dependency>

六、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

1. 异常详情

C:softwarejdk-11.0.3binjava.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:softwareJetBrainsIntelliJ IDEA 2019.1.3libidea_rt.jar=7786:C:softwareJetBrainsIntelliJ IDEA 2019.1.3bin" -Dfile.encoding=UTF-8 -classpath F:IdeaProjectsdubbospringboot-dubbo-providertargetclasses;F:IdeaProjectsdubbodubbo-interfacetargetclasses;D:repositoryorgapachezookeeperzookeeper3.5.5zookeeper-3.5.5.jar;D:repositoryorgapachezookeeperzookeeper-jute3.5.5zookeeper-jute-3.5.5.jar;D:repositoryorgapacheyetusaudience-annotations.5.0audience-annotations-0.5.0.jar;D:repositoryionettynetty-all4.1.25.Finalnetty-all-4.1.25.Final.jar;D:repositoryorgslf4jslf4j-api1.7.26slf4j-api-1.7.26.jar;D:repositoryorgslf4jslf4j-log4j121.7.26slf4j-log4j12-1.7.26.jar;D:repositorylog4jlog4j1.2.16log4j-1.2.16.jar;D:repositoryorgapachecuratorcurator-framework4.2.0curator-framework-4.2.0.jar;D:repositoryorgapachecuratorcurator-client4.2.0curator-client-4.2.0.jar;D:repositorycomgoogleguavaguava27.0.1-jreguava-27.0.1-jre.jar;D:repositorycomgoogleguavafailureaccess1.0.1failureaccess-1.0.1.jar;D:repositorycomgoogleguavalistenablefuture9999.0-empty-to-avoid-conflict-with-guavalistenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:repositorycomgooglecodefindbugsjsr3053.0.2jsr305-3.0.2.jar;D:repositoryorgcheckerframeworkchecker-qual2.5.2checker-qual-2.5.2.jar;D:repositorycomgoogleerrorproneerror_prone_annotations2.2.0error_prone_annotations-2.2.0.jar;D:repositorycomgooglej2objcj2objc-annotations1.1j2objc-annotations-1.1.jar;D:repositoryorgcodehausmojoanimal-sniffer-annotations1.17animal-sniffer-annotations-1.17.jar;D:repositoryorgapachecuratorcurator-recipes4.2.0curator-recipes-4.2.0.jar;D:repositoryorgapachedubbodubbo-registry-redis2.7.3dubbo-registry-redis-2.7.3.jar;D:repositoryorgapachedubbodubbo-registry-api2.7.3dubbo-registry-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-cluster2.7.3dubbo-cluster-2.7.3.jar;D:repositoryorgapachedubbodubbo-rpc-api2.7.3dubbo-rpc-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-serialization-api2.7.3dubbo-serialization-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-remoting-api2.7.3dubbo-remoting-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-configcenter-api2.7.3dubbo-configcenter-api-2.7.3.jar;D:repositoryorgapachedubbodubbo-common2.7.3dubbo-common-2.7.3.jar;D:repositorycommons-loggingcommons-logging1.2commons-logging-1.2.jar;D:repositorycomalibabahessian-lite3.2.5hessian-lite-3.2.5.jar;D:repositorycomalibabafastjson1.2.46fastjson-1.2.46.jar;D:repositorycomesotericsoftwarekryo4.0.1kryo-4.0.1.jar;D:repositorycomesotericsoftwarereflectasm1.11.3reflectasm-1.11.3.jar;D:repositorycomesotericsoftwareminlog1.3.0minlog-1.3.0.jar;D:repositorydejavakaffeekryo-serializers.42kryo-serializers-0.42.jar;D:repositoryderuedigermoellerfst2.48-jdk-6fst-2.48-jdk-6.jar;D:repositorycomcedarsoftwarejava-util1.9.0java-util-1.9.0.jar;D:repositorycomcedarsoftwarejson-io2.5.1json-io-2.5.1.jar;D:repositoryorgapachedubbodubbo-container-api2.7.3dubbo-container-api-2.7.3.jar;D:repositoryredisclientsjedis2.9.3jedis-2.9.3.jar;D:repositoryorgapachecommonscommons-pool22.6.2commons-pool2-2.6.2.jar;D:repositoryorgspringframeworkbootspring-boot-starter-web2.1.7.RELEASEspring-boot-starter-web-2.1.7.RELEASE.jar;D:repositoryorgspringframeworkbootspring-boot-starter2.1.7.RELEASEspring-boot-starter-2.1.7.RELEASE.jar;D:repositoryorgspringframeworkbootspring-boot2.1.7.RELEASEspring-boot-2.1.7.RELEASE.jar;D:repositoryorgspringframeworkbootspring-boot-autoconfigure2.1.7.RELEASEspring-boot-autoconfigure-2.1.7.RELEASE.jar;D:repositoryorgspringframeworkbootspring-boot-starter-logging2.1.7.RELEASEspring-boot-starter-logging-2.1.7.RELEASE.jar;D:repositorychqoslogbacklogback-classic1.2.3logback-classic-1.2.3.jar;D:repositorychqoslogbacklogback-core1.2.3logback-core-1.2.3.jar;D:repositoryorgapachelogginglog4jlog4j-to-slf4j2.11.2log4j-to-slf4j-2.11.2.jar;D:repositoryorgapachelogginglog4jlog4j-api2.11.1log4j-api-2.11.1.jar;D:repositoryorgslf4jjul-to-slf4j1.7.26jul-to-slf4j-1.7.26.jar;D:repositoryjavaxannotationjavax.annotation-api1.3.2javax.annotation-api-1.3.2.jar;D:repositoryorgyamlsnakeyaml1.23snakeyaml-1.23.jar;D:repositoryorgspringframeworkbootspring-boot-starter-json2.1.7.RELEASEspring-boot-starter-json-2.1.7.RELEASE.jar;D:repositorycomfasterxmljacksoncorejackson-databind2.9.9jackson-databind-2.9.9.jar;D:repositorycomfasterxmljacksoncorejackson-annotations2.9.0jackson-annotations-2.9.0.jar;D:repositorycomfasterxmljacksoncorejackson-core2.9.9jackson-core-2.9.9.jar;D:repositorycomfasterxmljacksondatatypejackson-datatype-jdk82.9.9jackson-datatype-jdk8-2.9.9.jar;D:repositorycomfasterxmljacksondatatypejackson-datatype-jsr3102.9.9jackson-datatype-jsr310-2.9.9.jar;D:repositorycomfasterxmljacksonmodulejackson-module-parameter-names2.9.9jackson-module-parameter-names-2.9.9.jar;D:repositoryorgspringframeworkbootspring-boot-starter-tomcat2.1.7.RELEASEspring-boot-starter-tomcat-2.1.7.RELEASE.jar;D:repositoryorgapachetomcatembedtomcat-embed-core9.0.22tomcat-embed-core-9.0.22.jar;D:repositoryorgapachetomcatembedtomcat-embed-el9.0.22tomcat-embed-el-9.0.22.jar;D:repositoryorgapachetomcatembedtomcat-embed-websocket9.0.22tomcat-embed-websocket-9.0.22.jar;D:repositoryorghibernatevalidatorhibernate-validator6.0.17.Finalhibernate-validator-6.0.17.Final.jar;D:repositoryjavaxvalidationvalidation-api2.0.1.Finalvalidation-api-2.0.1.Final.jar;D:repositoryorgjbossloggingjboss-logging3.3.2.Finaljboss-logging-3.3.2.Final.jar;D:repositorycomfasterxmlclassmate1.4.0classmate-1.4.0.jar;D:repositoryorgspringframeworkspring-web4.3.16.RELEASEspring-web-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-aop4.3.16.RELEASEspring-aop-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-beans4.3.16.RELEASEspring-beans-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-context4.3.16.RELEASEspring-context-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-webmvc4.3.16.RELEASEspring-webmvc-4.3.16.RELEASE.jar;D:repositoryorgspringframeworkspring-expression4.3.16.RELEASEspring-expression-4.3.16.RELEASE.jar;D:repositoryorgow2asmasm5.0.4asm-5.0.4.jar;D:repositoryorgobjenesisobjenesis2.6objenesis-2.6.jar;D:repositoryorgspringframeworkspring-core5.1.9.RELEASEspring-core-5.1.9.RELEASE.jar;D:repositoryorgspringframeworkspring-jcl5.1.9.RELEASEspring-jcl-5.1.9.RELEASE.jar;D:repositoryorgapachedubbodubbo-spring-boot-starter2.7.3dubbo-spring-boot-starter-2.7.3.jar;D:repositoryorgapachedubbodubbo-spring-boot-autoconfigure2.7.3dubbo-spring-boot-autoconfigure-2.7.3.jar;D:repositoryorgapachedubbodubbo-spring-boot-autoconfigure-compatible2.7.3dubbo-spring-boot-autoconfigure-compatible-2.7.3.jar;D:repositoryorgapachedubbodubbo2.7.3dubbo-2.7.3.jar;D:repositoryorgjavassistjavassist3.20.0-GAjavassist-3.20.0-GA.jar;D:repositorycomgooglecodegsongson2.8.5gson-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中日志相关依赖

<dependency>
            <groupId>org.apache.zookeeper</groupId>
            <artifactId>zookeeper</artifactId>
            <version>${zookeeper.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>log4j</groupId>
                    <artifactId>log4j</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>slf4j-log4j12</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>slf4j-api</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

 

最后

以上就是负责自行车为你收集整理的dubbo2.7.3使用过程问题集合的全部内容,希望文章能够帮你解决dubbo2.7.3使用过程问题集合所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(41)

评论列表共有 0 条评论

立即
投稿
返回
顶部