dubbo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [dubbo] horizonzy commented on issue #8213: Dubbo 3.0.0中使用xml配置无效,只有在properties中配置才有效
Date Wed, 07 Jul 2021 00:47:29 GMT

horizonzy commented on issue #8213:
URL: https://github.com/apache/dubbo/issues/8213#issuecomment-875181621


   这个应该是zookeeper地址解析那块的问题。jdk14解析地址存在问题,导致连接zk失败
   
   
   
   发自我的iPhone
   
   
   ------------------ 原始邮件 ------------------
   发件人: gaohuanjie ***@***.***&gt;
   发送时间: 2021年7月7日 08:42
   收件人: apache/dubbo ***@***.***&gt;
   抄送: 赵延 ***@***.***&gt;, Comment ***@***.***&gt;
   主题: 回复:[apache/dubbo] Dubbo 3.0.0中使用xml配置无效,只有在properties中配置才有效
(#8213)
   
   
   
   
   
     
   已查明此问题是由于Java11之后缺少javax.annotation-api导致@PostConstruct注解没有生效,导致dubbo
xml配置的bean没有加入到ConfigManager中。
    // AbstractConfig.java 中的addIntoConfigManager() 方法没有被执行
        @PostConstruct     public void addIntoConfigManager() {         ApplicationModel.getConfigManager().addConfig(this);
    }
    
   解决办法:将下面的配置添加到pom.xml中,如果用Java11之后的版本则自动添加javax.annotation-api。
        <profiles&gt;         <!-- For jdk 11 above JavaEE annotation --&gt;
        <profile&gt;             <id&gt;javax.annotation</id&gt;    
        <activation&gt;                 <jdk&gt;[1.11,)</jdk&gt;    
        </activation&gt;             <dependencies&gt;                 <dependency&gt;
                    <groupId&gt;javax.annotation</groupId&gt;              
      <artifactId&gt;javax.annotation-api</artifactId&gt;                  
  <version&gt;1.3.2</version&gt;                 </dependency&gt;   
         </dependencies&gt;         </profile&gt;     </profiles&gt;
 
   后续版本将修改配置初始化过程,计划移除AbstractConfig.addIntoConfigManager(),不再依赖@PostConstruct注解,到时则不需要强制依赖javax.annotation-api。
     
   嗯,是这样的,但是又出现了一个新问题:
    依赖包如下:
    `
    
    org.slf4j
    slf4j-simple
    1.6.6
    
    
    
    javax.annotation
    javax.annotation-api
    1.3.2
    
    
    
    org.apache.dubbo
    dubbo
    3.0.0
    
    <dependency&gt;     <groupId&gt;org.apache.dubbo</groupId&gt;   
 <artifactId&gt;dubbo-dependencies-zookeeper</artifactId&gt;     <version&gt;3.0.0</version&gt;
    <type&gt;pom</type&gt;     <exclusions&gt;         <exclusion&gt;
            <groupId&gt;org.slf4j</groupId&gt;             <artifactId&gt;slf4j-log4j12</artifactId&gt;
        </exclusion&gt;     </exclusions&gt; </dependency&gt;  ` 将dubbo3.0.0依赖的ZooKeeper包设为默认版本,则JDK8下运行正常,JDK14运行则出现如下异常:
`D:\Program_Files\jdk-14.0.2\bin\java.exe "-javaagent:D:\Program_Files\JetBrains\IntelliJ
IDEA 2021.1\lib\idea_rt.jar=55005:D:\Program_Files\JetBrains\IntelliJ IDEA 2021.1\bin" -Dfile.encoding=UTF-8
-classpath D:\dubbo-issue-8213\target\classes;C:\Users\GaoHuanjie\.m2\repository\org\slf4j\slf4j-simple\1.6.6\slf4j-simple-1.6.6.jar;C:\Users\GaoHuanjie\.m2\repository\org\slf4j\slf4j-api\1.6.6\slf4j-api-1.6.6.jar;C:\Users\GaoHuanjie\.m2\repository\javax\annotation\javax.annotat
 ion-api\1.3.2\javax.annotation-api-1.3.2.jar;C:\Users\GaoHuanjie\.m2\repository\org\apache\dubbo\dubbo\3.0.0\dubbo-3.0.0.jar;C:\Users\GaoHuanjie\.m2\repository\org\springframework\spring-context\5.2.8.RELEASE\spring-context-5.2.8.RELEASE.jar;C:\Users\GaoHuanjie\.m2\repository\org\springframework\spring-aop\5.2.8.RELEASE\spring-aop-5.2.8.RELEASE.jar;C:\Users\GaoHuanjie\.m2\repository\org\springframework\spring-beans\5.2.8.RELEASE\spring-beans-5.2.8.RELEASE.jar;C:\Users\GaoHuanjie\.m2\repository\org\springframework\spring-core\5.2.8.RELEASE\spring-core-5.2.8.RELEASE.jar;C:\Users\GaoHuanjie\.m2\repository\org\springframework\spring-jcl\5.2.8.RELEASE\spring-jcl-5.2.8.RELEASE.jar;C:\Users\GaoHuanjie\.m2\repository\org\springframework\spring-expression\5.2.8.RELEASE\spring-expression-5.2.8.RELEASE.jar;C:\Users\GaoHuanjie\.m2\repository\com\alibaba\spring\spring-context-support\1.0.8\spring-context-support-1.0.8.jar;C:\Users\GaoHuanjie\.m2\repository\org\javassist\javassist\3.23.1-GA\javas
 sist-3.23.1-GA.jar;C:\Users\GaoHuanjie\.m2\repository\org\eclipse\collections\eclipse-collections\10.4.0\eclipse-collections-10.4.0.jar;C:\Users\GaoHuanjie\.m2\repository\org\eclipse\collections\eclipse-collections-api\10.4.0\eclipse-collections-api-10.4.0.jar;C:\Users\GaoHuanjie\.m2\repository\io\netty\netty-all\4.1.56.Final\netty-all-4.1.56.Final.jar;C:\Users\GaoHuanjie\.m2\repository\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar;C:\Users\GaoHuanjie\.m2\repository\org\yaml\snakeyaml\1.20\snakeyaml-1.20.jar;C:\Users\GaoHuanjie\.m2\repository\com\alibaba\fastjson\1.2.70\fastjson-1.2.70.jar;C:\Users\GaoHuanjie\.m2\repository\org\roaringbitmap\RoaringBitmap\0.9.0\RoaringBitmap-0.9.0.jar;C:\Users\GaoHuanjie\.m2\repository\org\roaringbitmap\shims\0.9.0\shims-0.9.0.jar;C:\Users\GaoHuanjie\.m2\repository\org\apache\curator\curator-x-discovery\4.0.1\curator-x-discovery-4.0.1.jar;C:\Users\GaoHuanjie\.m2\repository\org\apache\curator\curator-recipes\4.0.1\curator-recipes-4.0.1.jar;C:\Users\
 GaoHuanjie\.m2\repository\org\apache\curator\curator-framework\4.0.1\curator-framework-4.0.1.jar;C:\Users\GaoHuanjie\.m2\repository\org\apache\curator\curator-client\4.0.1\curator-client-4.0.1.jar;C:\Users\GaoHuanjie\.m2\repository\com\google\guava\guava\20.0\guava-20.0.jar;C:\Users\GaoHuanjie\.m2\repository\org\codehaus\jackson\jackson-mapper-asl\1.9.13\jackson-mapper-asl-1.9.13.jar;C:\Users\GaoHuanjie\.m2\repository\org\codehaus\jackson\jackson-core-asl\1.9.13\jackson-core-asl-1.9.13.jar;C:\Users\GaoHuanjie\.m2\repository\org\apache\zookeeper\zookeeper\3.4.13\zookeeper-3.4.13.jar;C:\Users\GaoHuanjie\.m2\repository\log4j\log4j\1.2.17\log4j-1.2.17.jar;C:\Users\GaoHuanjie\.m2\repository\jline\jline\0.9.94\jline-0.9.94.jar;C:\Users\GaoHuanjie\.m2\repository\org\apache\yetus\audience-annotations\0.5.0\audience-annotations-0.5.0.jar
com.jd.test.ServiceProvider [INFO ]-[2021-07-07 08:33:26] - -using logger: org.apache.dubbo.common.logger.log4j.Log4jLoggerAdapter
[INFO ]-[2021-07-07 08:33
 :27] -org.apache.dubbo.config.bootstrap.DubboBootstrap.isUsedRegistryAsCenter(DubboBootstrap.java:880)
- [DUBBO] No value is configured in the registry, the DynamicConfigurationFactory extension[name
: zookeeper] supports as the config center, dubbo version: 3.0.0, current host: 10.10.13.156
[INFO ]-[2021-07-07 08:33:27] -org.apache.dubbo.config.bootstrap.DubboBootstrap.isUsedRegistryAsCenter(DubboBootstrap.java:886)
- [DUBBO] The registry[] will be used as the config center, dubbo version: 3.0.0, current
host: 10.10.13.156 [INFO ]-[2021-07-07 08:33:27] -org.apache.dubbo.config.bootstrap.DubboBootstrap.useRegistryAsConfigCenterIfNecessary(DubboBootstrap.java:795)
- [DUBBO] use registry as config-center: [], dubbo version: 3.0.0, current host: 10.10.13.156
1922 [main] INFO org.apache.curator.utils.Compatibility - Running in ZooKeeper 3.4.x compatibility
mode 1953 [main] INFO org.apache.curator.framework.imps.CuratorFrameworkImpl - Starting 1961
[main] INFO org.apache.zookeeper.ZooKee
 per - Client environment:zookeeper.version=3.4.13-2d71af4dbe22557fda74f9a9b4309b15a7487f03,
built on 06/29/2018 00:39 GMT 1961 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:host.name=Timmy
1961 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.version=14.0.2 1961
[main] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.vendor=Oracle Corporation
1961 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.home=D:\Program_Files\jdk-14.0.2
1961 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.class.path=D:\dubbo-issue-8213\target\classes;C:\Users\GaoHuanjie\.m2\repository\org\slf4j\slf4j-simple\1.6.6\slf4j-simple-1.6.6.jar;C:\Users\GaoHuanjie\.m2\repository\org\slf4j\slf4j-api\1.6.6\slf4j-api-1.6.6.jar;C:\Users\GaoHuanjie\.m2\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;C:\Users\GaoHuanjie\.m2\repository\org\apache\dubbo\dubbo\3.0.0\dubbo-3.0.0.jar;C:\Users\GaoHuan
 jie\.m2\repository\org\springframework\spring-context\5.2.8.RELEASE\spring-context-5.2.8.RELEASE.jar;C:\Users\GaoHuanjie\.m2\repository\org\springframework\spring-aop\5.2.8.RELEASE\spring-aop-5.2.8.RELEASE.jar;C:\Users\GaoHuanjie\.m2\repository\org\springframework\spring-beans\5.2.8.RELEASE\spring-beans-5.2.8.RELEASE.jar;C:\Users\GaoHuanjie\.m2\repository\org\springframework\spring-core\5.2.8.RELEASE\spring-core-5.2.8.RELEASE.jar;C:\Users\GaoHuanjie\.m2\repository\org\springframework\spring-jcl\5.2.8.RELEASE\spring-jcl-5.2.8.RELEASE.jar;C:\Users\GaoHuanjie\.m2\repository\org\springframework\spring-expression\5.2.8.RELEASE\spring-expression-5.2.8.RELEASE.jar;C:\Users\GaoHuanjie\.m2\repository\com\alibaba\spring\spring-context-support\1.0.8\spring-context-support-1.0.8.jar;C:\Users\GaoHuanjie\.m2\repository\org\javassist\javassist\3.23.1-GA\javassist-3.23.1-GA.jar;C:\Users\GaoHuanjie\.m2\repository\org\eclipse\collections\eclipse-collections\10.4.0\eclipse-collections-10.4.0.jar;C:\Us
 ers\GaoHuanjie\.m2\repository\org\eclipse\collections\eclipse-collections-api\10.4.0\eclipse-collections-api-10.4.0.jar;C:\Users\GaoHuanjie\.m2\repository\io\netty\netty-all\4.1.56.Final\netty-all-4.1.56.Final.jar;C:\Users\GaoHuanjie\.m2\repository\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar;C:\Users\GaoHuanjie\.m2\repository\org\yaml\snakeyaml\1.20\snakeyaml-1.20.jar;C:\Users\GaoHuanjie\.m2\repository\com\alibaba\fastjson\1.2.70\fastjson-1.2.70.jar;C:\Users\GaoHuanjie\.m2\repository\org\roaringbitmap\RoaringBitmap\0.9.0\RoaringBitmap-0.9.0.jar;C:\Users\GaoHuanjie\.m2\repository\org\roaringbitmap\shims\0.9.0\shims-0.9.0.jar;C:\Users\GaoHuanjie\.m2\repository\org\apache\curator\curator-x-discovery\4.0.1\curator-x-discovery-4.0.1.jar;C:\Users\GaoHuanjie\.m2\repository\org\apache\curator\curator-recipes\4.0.1\curator-recipes-4.0.1.jar;C:\Users\GaoHuanjie\.m2\repository\org\apache\curator\curator-framework\4.0.1\curator-framework-4.0.1.jar;C:\Users\GaoHuanjie\.m2\repository\org\apach
 e\curator\curator-client\4.0.1\curator-client-4.0.1.jar;C:\Users\GaoHuanjie\.m2\repository\com\google\guava\guava\20.0\guava-20.0.jar;C:\Users\GaoHuanjie\.m2\repository\org\codehaus\jackson\jackson-mapper-asl\1.9.13\jackson-mapper-asl-1.9.13.jar;C:\Users\GaoHuanjie\.m2\repository\org\codehaus\jackson\jackson-core-asl\1.9.13\jackson-core-asl-1.9.13.jar;C:\Users\GaoHuanjie\.m2\repository\org\apache\zookeeper\zookeeper\3.4.13\zookeeper-3.4.13.jar;C:\Users\GaoHuanjie\.m2\repository\log4j\log4j\1.2.17\log4j-1.2.17.jar;C:\Users\GaoHuanjie\.m2\repository\jline\jline\0.9.94\jline-0.9.94.jar;C:\Users\GaoHuanjie\.m2\repository\org\apache\yetus\audience-annotations\0.5.0\audience-annotations-0.5.0.jar
1962 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.library.path=D:\Program_Files\jdk-14.0.2\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:\Program_Files\VMware\VMware
Workstation\bin\;D:\Program_Files\apache-maven-3.6.3\bin;D:\Program_Files\VanDyke Software\C
 lients\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files\Lenovo\Fingerprint Manager Pro\;D:\Program_Files\MySQL\MySQL Server 5.5\bin;D:\Program_Files\nginx-1.16.0;D:\Program_Files\nodejs;C:\Users\GaoHuanjie\AppData\Roaming\npm;C:\Users\GaoHuanjie\AppData\Roaming\npm\node_modules\vue-cli\bin;C:\Program
Files\TortoiseGit\bin;D:\Program_Files\curl-7.33.0;D:\Program_Files\erl-23.2\bin;D:\Program_Files\rabbitmq_server-3.8.9\sbin;D:\Program_Files\nacos-server-1.4.0\bin;D:\Program_Files\mysql-5.7.30-winx64\bin;D:\Program_Files\Git\bin;D:\Program_Files\gradle-6.8.1\bin;D:\Program_Files\jdk-14.0.2\bin;C:\Program
Files (x86)\Google\Chrome\Application\;D:\Program_Files\nodejs\npm_global;D:\Program_Files\nodejs\;C:\Users\GaoHuanjie\AppData\Roaming\npm;D:\Program_Files\Microsoft
VS Code\bin;. 1962 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.io.tmpdir=C:\Users\GAOHUA~1\AppData\Local\Temp\
1962 [main] INFO
  org.apache.zookeeper.ZooKeeper - Client environment:java.compiler= 1962 [main] INFO org.apache.zookeeper.ZooKeeper
- Client environment:os.name=Windows 8.1 1962 [main] INFO org.apache.zookeeper.ZooKeeper -
Client environment:os.arch=amd64 1962 [main] INFO org.apache.zookeeper.ZooKeeper - Client
environment:os.version=6.3 1962 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:user.name=GaoHuanjie
1962 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:user.home=C:\Users\GaoHuanjie
1962 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:user.dir=D:\dubbo-issue-8213
1963 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=127.0.0.1:2181
sessionTimeout=60000 ***@***.*** 2054 [main-SendThread(127.0.0.1:2181)] INFO org.apache.zookeeper.ClientCnxn
- Opening socket connection to server 127.0.0.1/:2181. Will not attempt to authenticate using
SASL (unknown error) 2056 [main] INFO org.apache.curator.framework.imps.Cu
 ratorFrameworkImpl - Default schema 2058 [main-SendThread(127.0.0.1:2181)] WARN org.apache.zookeeper.ClientCnxn
- Session 0x0 for server 127.0.0.1/:2181, unexpected error, closing socket connection and
attempting reconnect java.nio.channels.UnresolvedAddressException at java.base/sun.nio.ch.Net.checkAddress(Net.java:139)
at java.base/sun.nio.ch.SocketChannelImpl.checkRemote(SocketChannelImpl.java:727) at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:741)
at org.apache.zookeeper.ClientCnxnSocketNIO.registerAndConnect(ClientCnxnSocketNIO.java:277)
at org.apache.zookeeper.ClientCnxnSocketNIO.connect(ClientCnxnSocketNIO.java:287) at org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:1021)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1064) 3162 [main-SendThread(127.0.0.1:2181)]
INFO org.apache.zookeeper.ClientCnxn - Opening socket connection to server 127.0.0.1/:2181.
Will not attempt to authenticate using SASL (unknown er
 ror) 3162 [main-SendThread(127.0.0.1:2181)] WARN org.apache.zookeeper.ClientCnxn - Session
0x0 for server 127.0.0.1/:2181, unexpected error, closing socket connection and attempting
reconnect java.nio.channels.UnresolvedAddressException at java.base/sun.nio.ch.Net.checkAddress(Net.java:139)
at java.base/sun.nio.ch.SocketChannelImpl.checkRemote(SocketChannelImpl.java:727) at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:741)
at org.apache.zookeeper.ClientCnxnSocketNIO.registerAndConnect(ClientCnxnSocketNIO.java:277)
at org.apache.zookeeper.ClientCnxnSocketNIO.connect(ClientCnxnSocketNIO.java:287) at org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:1021)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1064) 4264 [main-SendThread(127.0.0.1:2181)]
INFO org.apache.zookeeper.ClientCnxn - Opening socket connection to server 127.0.0.1/:2181.
Will not attempt to authenticate using SASL (unknown error) 4264 [main-SendThread(127.
 0.0.1:2181)] WARN org.apache.zookeeper.ClientCnxn - Session 0x0 for server 127.0.0.1/:2181,
unexpected error, closing socket connection and attempting reconnect java.nio.channels.UnresolvedAddressException
at java.base/sun.nio.ch.Net.checkAddress(Net.java:139) at java.base/sun.nio.ch.SocketChannelImpl.checkRemote(SocketChannelImpl.java:727)
at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:741) at org.apache.zookeeper.ClientCnxnSocketNIO.registerAndConnect(ClientCnxnSocketNIO.java:277)
at org.apache.zookeeper.ClientCnxnSocketNIO.connect(ClientCnxnSocketNIO.java:287) at org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:1021)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1064) Exception in thread
"main" java.lang.IllegalStateException: zookeeper not connected at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.(CuratorZookeeperClient.java:87)
at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeep
 erTransporter.createZookeeperClient(CuratorZookeeperTransporter.java:26) at org.apache.dubbo.remoting.zookeeper.support.AbstractZookeeperTransporter.connect(AbstractZookeeperTransporter.java:71)
at org.apache.dubbo.remoting.zookeeper.ZookeeperTransporter$Adaptive.connect(ZookeeperTransporter$Adaptive.java)
at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfiguration.(ZookeeperDynamicConfiguration.java:68)
at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfigurationFactory.createDynamicConfiguration(ZookeeperDynamicConfigurationFactory.java:37)
at org.apache.dubbo.common.config.configcenter.AbstractDynamicConfigurationFactory.lambda$getDynamicConfiguration$0(AbstractDynamicConfigurationFactory.java:39)
at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
at org.apache.dubbo.common.config.configcenter.AbstractDynamicConfigurationFactory.getDynamicConfiguration(AbstractDynamicConfigurationFactory.java:3
 9) at org.apache.dubbo.common.config.configcenter.DynamicConfiguration.getDynamicConfiguration(DynamicConfiguration.java:248)
at org.apache.dubbo.config.bootstrap.DubboBootstrap.prepareEnvironment(DubboBootstrap.java:1238)
at org.apache.dubbo.config.bootstrap.DubboBootstrap.startConfigCenter(DubboBootstrap.java:736)
at org.apache.dubbo.config.bootstrap.DubboBootstrap.initialize(DubboBootstrap.java:552) at
org.apache.dubbo.config.bootstrap.DubboBootstrap.start(DubboBootstrap.java:1085) at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onContextRefreshedEvent(DubboBootstrapApplicationListener.java:70)
at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onApplicationContextEvent(DubboBootstrapApplicationListener.java:63)
at com.alibaba.spring.context.OnceApplicationContextEventListener.onApplicationEvent(OnceApplicationContextEventListener.java:52)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(S
 impleApplicationEventMulticaster.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:404)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:361)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:898)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:554)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:144)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:85)
at com.jd.t
 est.ServiceProvider.main(ServiceProvider.java:11) Caused by: java.lang.IllegalStateException:
zookeeper not connected at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient.(CuratorZookeeperClient.java:84)
... 26 more [INFO ]-[2021-07-07 08:33:30] -org.apache.dubbo.config.DubboShutdownHook.run(DubboShutdownHook.java:61)
- [DUBBO] Run shutdown hook now., dubbo version: 3.0.0, current host: 10.10.13.156 [INFO ]-[2021-07-07
08:33:30] -org.apache.dubbo.registry.support.AbstractRegistryFactory.destroyAll(AbstractRegistryFactory.java:94)
- [DUBBO] Close all registries [], dubbo version: 3.0.0, current host: 10.10.13.156 [INFO
]-[2021-07-07 08:33:30] -org.apache.dubbo.config.bootstrap.DubboBootstrap.lambda$release$16(DubboBootstrap.java:1550)
- [DUBBO] DubboBootstrap is about to shutdown..., dubbo version: 3.0.0, current host: 10.10.13.156

   Process finished with exit code -1`
    
   —
   You are receiving this because you commented.
   Reply to this email directly, view it on GitHub, or unsubscribe.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Mime
View raw message