Closed startjava closed 3 years ago
找了一个网址: https://github.com/apache/dubbo/issues/1724
什么情况下是注册失败呢??可以举一个例子吗?
@carryxyh 可以解释一下什么情况下是注册失败呢?官文文档解释是:注册中心不存在时,是否报错
使用Dubbo3.0.1 和 Nacos2.0.3版本的。 发现不管check=true还是check=false,启动tomcat时都会报错。
at org.apache.dubbo.registry.integration.RegistryProtocol.doRefer(RegistryProtocol.java:467) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.integration.RegistryProtocol.refer(RegistryProtocol.java:452) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:74) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.rpc.cluster.filter.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:68) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.qos.protocol.QosProtocolWrapper.refer(QosProtocolWrapper.java:73) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.rpc.Protocol$Adaptive.refer(Protocol$Adaptive.java) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:392) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:328) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:205) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.utils.ReferenceConfigCache.lambda$get$3(ReferenceConfigCache.java:114) ~[dubbo-3.0.1.jar:3.0.1] at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) ~[na:na] at org.apache.dubbo.config.utils.ReferenceConfigCache.get(ReferenceConfigCache.java:113) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.bootstrap.DubboBootstrap.lambda$referServices$8(DubboBootstrap.java:1348) ~[dubbo-3.0.1.jar:3.0.1] at java.base/java.util.LinkedHashMap$LinkedValues.forEach(LinkedHashMap.java:647) ~[na:na] at org.apache.dubbo.config.bootstrap.DubboBootstrap.referServices(DubboBootstrap.java:1327) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.bootstrap.DubboBootstrap.start(DubboBootstrap.java:1106) ~[dubbo-3.0.1.jar:3.0.1]
It seems that the references have bean init, so visiting the registry center. May be need add another config to disable init references:
dubbo.consumer.init=false
关闭了,文字太多。重新开一个。
dubbo: registry: address: nacos://${nacos.host}:${nacos.port}/?username=${nacos.username}&password=${nacos.password} check: false
-----------------------------------------异常信息如下------------------------------------------ C:\Users\Administrator.jdks\openjdk-14.0.1\bin\java.exe -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -javaagent:C:\ideaIU-2021.1.1.win\lib\idea_rt.jar=11664:C:\ideaIU-2021.1.1.win\bin -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -Dfile.encoding=UTF-8 -classpath C:\Users\Administrator\Desktop\Dubbo3_Demo\my-check5\target\classes;C:\mvn_repository\org\springframework\boot\spring-boot-starter\2.5.3\spring-boot-starter-2.5.3.jar;C:\mvn_repository\org\springframework\boot\spring-boot\2.5.3\spring-boot-2.5.3.jar;C:\mvn_repository\org\springframework\spring-context\5.3.9\spring-context-5.3.9.jar;C:\mvn_repository\org\springframework\boot\spring-boot-autoconfigure\2.5.3\spring-boot-autoconfigure-2.5.3.jar;C:\mvn_repository\org\springframework\boot\spring-boot-starter-logging\2.5.3\spring-boot-starter-logging-2.5.3.jar;C:\mvn_repository\ch\qos\logback\logback-classic\1.2.4\logback-classic-1.2.4.jar;C:\mvn_repository\ch\qos\logback\logback-core\1.2.4\logback-core-1.2.4.jar;C:\mvn_repository\org\slf4j\slf4j-api\1.7.32\slf4j-api-1.7.32.jar;C:\mvn_repository\org\apache\logging\log4j\log4j-to-slf4j\2.14.1\log4j-to-slf4j-2.14.1.jar;C:\mvn_repository\org\apache\logging\log4j\log4j-api\2.14.1\log4j-api-2.14.1.jar;C:\mvn_repository\org\slf4j\jul-to-slf4j\1.7.32\jul-to-slf4j-1.7.32.jar;C:\mvn_repository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;C:\mvn_repository\org\springframework\spring-core\5.3.9\spring-core-5.3.9.jar;C:\mvn_repository\org\springframework\spring-jcl\5.3.9\spring-jcl-5.3.9.jar;C:\mvn_repository\org\yaml\snakeyaml\1.28\snakeyaml-1.28.jar;C:\mvn_repository\org\springframework\boot\spring-boot-starter-web\2.5.3\spring-boot-starter-web-2.5.3.jar;C:\mvn_repository\org\springframework\boot\spring-boot-starter-json\2.5.3\spring-boot-starter-json-2.5.3.jar;C:\mvn_repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.12.4\jackson-datatype-jdk8-2.12.4.jar;C:\mvn_repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.12.4\jackson-datatype-jsr310-2.12.4.jar;C:\mvn_repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.12.4\jackson-module-parameter-names-2.12.4.jar;C:\mvn_repository\org\springframework\boot\spring-boot-starter-tomcat\2.5.3\spring-boot-starter-tomcat-2.5.3.jar;C:\mvn_repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.50\tomcat-embed-core-9.0.50.jar;C:\mvn_repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.50\tomcat-embed-el-9.0.50.jar;C:\mvn_repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.50\tomcat-embed-websocket-9.0.50.jar;C:\mvn_repository\org\springframework\spring-web\5.3.9\spring-web-5.3.9.jar;C:\mvn_repository\org\springframework\spring-beans\5.3.9\spring-beans-5.3.9.jar;C:\mvn_repository\org\springframework\spring-webmvc\5.3.9\spring-webmvc-5.3.9.jar;C:\mvn_repository\org\springframework\spring-aop\5.3.9\spring-aop-5.3.9.jar;C:\mvn_repository\org\springframework\spring-expression\5.3.9\spring-expression-5.3.9.jar;C:\mvn_repository\org\apache\dubbo\dubbo-spring-boot-starter\3.0.1\dubbo-spring-boot-starter-3.0.1.jar;C:\mvn_repository\org\apache\dubbo\dubbo-spring-boot-autoconfigure\3.0.1\dubbo-spring-boot-autoconfigure-3.0.1.jar;C:\mvn_repository\org\apache\dubbo\dubbo-spring-boot-autoconfigure-compatible\3.0.1\dubbo-spring-boot-autoconfigure-compatible-3.0.1.jar;C:\mvn_repository\org\apache\dubbo\dubbo\3.0.1\dubbo-3.0.1.jar;C:\mvn_repository\com\alibaba\spring\spring-context-support\1.0.8\spring-context-support-1.0.8.jar;C:\mvn_repository\org\eclipse\collections\eclipse-collections\10.4.0\eclipse-collections-10.4.0.jar;C:\mvn_repository\org\eclipse\collections\eclipse-collections-api\10.4.0\eclipse-collections-api-10.4.0.jar;C:\mvn_repository\io\netty\netty-all\4.1.66.Final\netty-all-4.1.66.Final.jar;C:\mvn_repository\com\google\code\gson\gson\2.8.7\gson-2.8.7.jar;C:\mvn_repository\com\alibaba\fastjson\1.2.70\fastjson-1.2.70.jar;C:\mvn_repository\org\roaringbitmap\RoaringBitmap\0.9.0\RoaringBitmap-0.9.0.jar;C:\mvn_repository\org\roaringbitmap\shims\0.9.0\shims-0.9.0.jar;C:\mvn_repository\com\alibaba\nacos\nacos-client\2.0.3\nacos-client-2.0.3.jar;C:\mvn_repository\commons-codec\commons-codec\1.15\commons-codec-1.15.jar;C:\mvn_repository\com\fasterxml\jackson\core\jackson-core\2.12.4\jackson-core-2.12.4.jar;C:\mvn_repository\com\fasterxml\jackson\core\jackson-databind\2.12.4\jackson-databind-2.12.4.jar;C:\mvn_repository\com\fasterxml\jackson\core\jackson-annotations\2.12.4\jackson-annotations-2.12.4.jar;C:\mvn_repository\org\apache\httpcomponents\httpasyncclient\4.1.4\httpasyncclient-4.1.4.jar;C:\mvn_repository\org\apache\httpcomponents\httpcore\4.4.14\httpcore-4.4.14.jar;C:\mvn_repository\org\apache\httpcomponents\httpcore-nio\4.4.14\httpcore-nio-4.4.14.jar;C:\mvn_repository\org\apache\httpcomponents\httpclient\4.5.13\httpclient-4.5.13.jar;C:\mvn_repository\org\reflections\reflections\0.9.11\reflections-0.9.11.jar;C:\mvn_repository\com\google\guava\guava\20.0\guava-20.0.jar;C:\mvn_repository\org\javassist\javassist\3.23.1-GA\javassist-3.23.1-GA.jar;C:\mvn_repository\io\prometheus\simpleclient\0.10.0\simpleclient-0.10.0.jar;C:\Users\Administrator\Desktop\Dubbo3_Demo\my-api\target\classes com.ghy.www.Application OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release. 2021-08-02 15:48:29.838 INFO 18752 --- [ main] d.s.b.c.e.WelcomeLogoApplicationListener :
:: Dubbo Spring Boot (v3.0.1) : https://github.com/apache/dubbo-spring-boot-project :: Dubbo (v3.0.1) : https://github.com/apache/dubbo :: Discuss group : dev@dubbo.apache.org
. _ _ /\ / '_ () \ \ \ \ ( ( )\ | ' | '| | ' \/ ` | \ \ \ \ \/ _)| |)| | | | | || (| | ) ) ) ) ' |__| .|| ||| |\, | / / / / =========|_|==============|__/=//// :: Spring Boot :: (v2.5.3)
2021-08-02 15:48:29.926 INFO 18752 --- [ main] com.ghy.www.Application : Starting Application using Java 14.0.1 on gaohongyan with PID 18752 (C:\Users\Administrator\Desktop\Dubbo3_Demo\my-check5\target\classes started by Administrator in C:\Users\Administrator\Desktop\Dubbo3_Demo) 2021-08-02 15:48:29.926 INFO 18752 --- [ main] com.ghy.www.Application : No active profile set, falling back to default profiles: default 2021-08-02 15:48:31.030 INFO 18752 --- [ main] o.a.dubbo.config.context.ConfigManager : [DUBBO] Unique config types: [ModuleConfig, MetricsConfig, SslConfig, ApplicationConfig, MonitorConfig], dubbo version: 3.0.1, current host: 192.168.56.1 2021-08-02 15:48:31.039 INFO 18752 --- [ main] o.a.dubbo.config.context.ConfigManager : [DUBBO] Dubbo config mode: STRICT, dubbo version: 3.0.1, current host: 192.168.56.1 2021-08-02 15:48:31.045 INFO 18752 --- [ main] o.s.c.a.ConfigurationClassPostProcessor : Cannot enhance @Configuration bean definition 'org.apache.dubbo.spring.boot.autoconfigure.DubboAutoConfiguration' since its singleton instance has been created too early. The typical cause is a non-static @Bean method with a BeanDefinitionRegistryPostProcessor return type: Consider declaring such methods as 'static'. 2021-08-02 15:48:31.126 INFO 18752 --- [ main] f.a.ReferenceAnnotationBeanPostProcessor : Register dubbo reference bean: service1 = ReferenceBean:com.ghy.www.api.IService1(check=false) at private com.ghy.www.api.IService1 com.ghy.www.controller.TestCcontroller.service1 2021-08-02 15:48:31.252 WARN 18752 --- [ main] o.s.b.c.p.PropertySourcesDeducer : Multiple PropertySourcesPlaceholderConfigurer beans registered [propertySourcesPlaceholderConfigurer, org.springframework.context.support.PropertySourcesPlaceholderConfigurer], falling back to Environment 2021-08-02 15:48:31.465 INFO 18752 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8085 (http) 2021-08-02 15:48:31.472 INFO 18752 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2021-08-02 15:48:31.472 INFO 18752 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.50] 2021-08-02 15:48:31.632 INFO 18752 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2021-08-02 15:48:31.632 INFO 18752 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1654 ms 2021-08-02 15:48:31.881 INFO 18752 --- [ main] o.a.d.c.s.reference.ReferenceCreator : The configBean[type:ReferenceConfig] has been built. 2021-08-02 15:48:32.369 INFO 18752 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8085 (http) with context path '' 2021-08-02 15:48:32.373 INFO 18752 --- [ main] o.a.dubbo.config.context.ConfigManager : [DUBBO] Dubbo config mode: STRICT, dubbo version: 3.0.1, current host: 192.168.56.1 2021-08-02 15:48:32.386 INFO 18752 --- [ main] o.a.d.config.bootstrap.DubboBootstrap : [DUBBO] No value is configured in the registry, the DynamicConfigurationFactory extension[name : nacos] supports as the config center, dubbo version: 3.0.1, current host: 192.168.56.1 2021-08-02 15:48:32.388 INFO 18752 --- [ main] o.a.d.config.bootstrap.DubboBootstrap : [DUBBO] The registry[ ] will be used as the config center, dubbo version: 3.0.1, current host: 192.168.56.1
2021-08-02 15:48:32.390 INFO 18752 --- [ main] o.a.d.config.bootstrap.DubboBootstrap : [DUBBO] use registry as config-center: [ ], dubbo version: 3.0.1, current host: 192.168.56.1
2021-08-02 15:48:33.591 INFO 18752 --- [ main] org.reflections.Reflections : Reflections took 16 ms to scan 1 urls, producing 3 keys and 6 values
2021-08-02 15:48:33.618 INFO 18752 --- [ main] org.reflections.Reflections : Reflections took 11 ms to scan 1 urls, producing 4 keys and 9 values
2021-08-02 15:48:33.629 INFO 18752 --- [ main] org.reflections.Reflections : Reflections took 9 ms to scan 1 urls, producing 3 keys and 10 values
2021-08-02 15:48:33.633 WARN 18752 --- [ main] org.reflections.Reflections : given scan urls are empty. set urls in the configuration
2021-08-02 15:48:33.644 INFO 18752 --- [ main] org.reflections.Reflections : Reflections took 10 ms to scan 1 urls, producing 1 keys and 5 values
2021-08-02 15:48:33.656 INFO 18752 --- [ main] org.reflections.Reflections : Reflections took 10 ms to scan 1 urls, producing 1 keys and 7 values
2021-08-02 15:48:33.667 INFO 18752 --- [ main] org.reflections.Reflections : Reflections took 9 ms to scan 1 urls, producing 2 keys and 8 values
2021-08-02 15:48:33.669 WARN 18752 --- [ main] org.reflections.Reflections : given scan urls are empty. set urls in the configuration
2021-08-02 15:48:41.004 WARN 18752 --- [ main] o.a.d.common.config.ConfigurationUtils : [DUBBO] You specified the config center, but there's not even one single config item in it., dubbo version: 3.0.1, current host: 192.168.56.1
2021-08-02 15:48:41.004 WARN 18752 --- [ main] o.a.d.common.config.ConfigurationUtils : [DUBBO] You specified the config center, but there's not even one single config item in it., dubbo version: 3.0.1, current host: 192.168.56.1
2021-08-02 15:48:41.030 INFO 18752 --- [ main] o.a.d.config.bootstrap.DubboBootstrap : [DUBBO] No value is configured in the registry, the MetadataReportFactory extension[name : nacos] supports as the metadata center, dubbo version: 3.0.1, current host: 192.168.56.1
2021-08-02 15:48:41.030 INFO 18752 --- [ main] o.a.d.config.bootstrap.DubboBootstrap : [DUBBO] The registry[ ] will be used as the metadata center, dubbo version: 3.0.1, current host: 192.168.56.1
2021-08-02 15:48:41.030 INFO 18752 --- [ main] o.a.d.config.bootstrap.DubboBootstrap : [DUBBO] use registry as metadata-center: [ ], dubbo version: 3.0.1, current host: 192.168.56.1
2021-08-02 15:48:42.047 INFO 18752 --- [ main] o.a.d.config.bootstrap.DubboBootstrap : [DUBBO] DubboBootstrap has been initialized!, dubbo version: 3.0.1, current host: 192.168.56.1
2021-08-02 15:48:42.047 INFO 18752 --- [ main] o.a.d.config.bootstrap.DubboBootstrap : [DUBBO] DubboBootstrap is starting..., dubbo version: 3.0.1, current host: 192.168.56.1
2021-08-02 15:48:42.393 INFO 18752 --- [ main] o.a.d.qos.protocol.QosProtocolWrapper : [DUBBO] qos won't be started because it is disabled. Please check dubbo.application.qos.enable is configured either in system property, dubbo.properties or XML/spring-boot configuration., dubbo version: 3.0.1, current host: 192.168.56.1
2021-08-02 15:48:50.489 INFO 18752 --- [ main] o.a.dubbo.registry.nacos.NacosRegistry : [DUBBO] Loaded registry cache file C:\Users\Administrator.dubbo\dubbo-registry-my-nacos-consumer-127.0.0.1-8848.cache, dubbo version: 3.0.1, current host: 192.168.56.1
2021-08-02 15:48:50.494 INFO 18752 --- [ main] o.a.d.r.c.m.MigrationRuleListener : [DUBBO] Listening for migration rules on dataId my-nacos-consumer.migration, group DUBBO_SERVICEDISCOVERY_MIGRATION, dubbo version: 3.0.1, current host: 192.168.56.1
2021-08-02 15:48:51.728 ERROR 18752 --- [ main] o.a.dubbo.registry.nacos.NacosRegistry : [DUBBO] Request nacos server failed: , dubbo version: 3.0.1, current host: 192.168.56.1
com.alibaba.nacos.api.exception.NacosException: Request nacos server failed: at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:279) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.doRegisterService(NamingGrpcClientProxy.java:129) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.registerService(NamingGrpcClientProxy.java:115) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate.registerService(NamingClientProxyDelegate.java:95) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:145) ~[nacos-client-2.0.3.jar:na] at org.apache.dubbo.registry.nacos.NacosNamingServiceWrapper.registerInstance(NacosNamingServiceWrapper.java:57) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.nacos.NacosRegistry.lambda$doRegister$1(NacosRegistry.java:164) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.nacos.NacosRegistry.execute(NacosRegistry.java:567) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.nacos.NacosRegistry.doRegister(NacosRegistry.java:164) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.support.FailbackRegistry.register(FailbackRegistry.java:205) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.ListenerRegistryWrapper.register(ListenerRegistryWrapper.java:58) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.integration.RegistryProtocol.doCreateInvoker(RegistryProtocol.java:511) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.integration.InterfaceCompatibleRegistryProtocol.getInvoker(InterfaceCompatibleRegistryProtocol.java:58) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.client.migration.MigrationInvoker.refreshInterfaceInvoker(MigrationInvoker.java:448) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.client.migration.MigrationInvoker.migrateToApplicationFirstInvoker(MigrationInvoker.java:239) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.client.migration.MigrationRuleHandler.refreshInvoker(MigrationRuleHandler.java:73) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.client.migration.MigrationRuleHandler.doMigrate(MigrationRuleHandler.java:57) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.client.migration.MigrationRuleListener.onRefer(MigrationRuleListener.java:208) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.integration.RegistryProtocol.interceptInvoker(RegistryProtocol.java:485) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.integration.RegistryProtocol.doRefer(RegistryProtocol.java:467) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.integration.RegistryProtocol.refer(RegistryProtocol.java:452) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:74) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.rpc.cluster.filter.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:68) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.qos.protocol.QosProtocolWrapper.refer(QosProtocolWrapper.java:73) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.rpc.Protocol$Adaptive.refer(Protocol$Adaptive.java) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:392) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:328) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:205) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.utils.ReferenceConfigCache.lambda$get$3(ReferenceConfigCache.java:114) ~[dubbo-3.0.1.jar:3.0.1] at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) ~[na:na] at org.apache.dubbo.config.utils.ReferenceConfigCache.get(ReferenceConfigCache.java:113) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.bootstrap.DubboBootstrap.lambda$referServices$8(DubboBootstrap.java:1348) ~[dubbo-3.0.1.jar:3.0.1] at java.base/java.util.LinkedHashMap$LinkedValues.forEach(LinkedHashMap.java:647) ~[na:na] at org.apache.dubbo.config.bootstrap.DubboBootstrap.referServices(DubboBootstrap.java:1327) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.bootstrap.DubboBootstrap.start(DubboBootstrap.java:1106) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onContextRefreshedEvent(DubboBootstrapApplicationListener.java:80) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onApplicationContextEvent(DubboBootstrapApplicationListener.java:72) ~[dubbo-3.0.1.jar:3.0.1] at com.alibaba.spring.context.OnceApplicationContextEventListener.onApplicationEvent(OnceApplicationContextEventListener.java:52) ~[spring-context-support-1.0.8.jar:na] at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:938) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) ~[spring-boot-2.5.3.jar:2.5.3] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) ~[spring-boot-2.5.3.jar:2.5.3] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:434) ~[spring-boot-2.5.3.jar:2.5.3] at org.springframework.boot.SpringApplication.run(SpringApplication.java:338) ~[spring-boot-2.5.3.jar:2.5.3] at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:143) ~[spring-boot-2.5.3.jar:2.5.3] at com.ghy.www.Application.main(Application.java:12) ~[classes/:na] Caused by: com.alibaba.nacos.api.exception.NacosException: Client not connected,current status:STARTING at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:655) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:635) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:269) ~[nacos-client-2.0.3.jar:na] ... 50 common frames omitted
2021-08-02 15:48:52.651 INFO 18752 --- [ main] o.a.dubbo.registry.nacos.NacosRegistry : [DUBBO] Subscribe: dubbo://192.168.56.1/com.ghy.www.api.IService1?application=my-nacos-consumer&category=providers,configurators,routers&check=false&dubbo=2.0.2&interface=com.ghy.www.api.IService1&metadata-type=remote&methods=getHello&pid=18752&qos.enable=false&release=3.0.1&side=consumer&sticky=false×tamp=1627890522048, dubbo version: 3.0.1, current host: 192.168.56.1 2021-08-02 15:48:52.964 ERROR 18752 --- [ main] o.a.dubbo.registry.nacos.NacosRegistry : [DUBBO] Request nacos server failed: , dubbo version: 3.0.1, current host: 192.168.56.1
com.alibaba.nacos.api.exception.NacosException: Request nacos server failed: at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:279) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.doSubscribe(NamingGrpcClientProxy.java:227) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.subscribe(NamingGrpcClientProxy.java:212) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate.subscribe(NamingClientProxyDelegate.java:147) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.NacosNamingService.getAllInstances(NacosNamingService.java:229) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.NacosNamingService.getAllInstances(NacosNamingService.java:212) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.NacosNamingService.getAllInstances(NacosNamingService.java:190) ~[nacos-client-2.0.3.jar:na] at org.apache.dubbo.registry.nacos.NacosNamingServiceWrapper.getAllInstances(NacosNamingServiceWrapper.java:53) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.nacos.NacosRegistry.lambda$doSubscribe$3(NacosRegistry.java:209) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.nacos.NacosRegistry.execute(NacosRegistry.java:567) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.nacos.NacosRegistry.doSubscribe(NacosRegistry.java:195) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.nacos.NacosRegistry.doSubscribe(NacosRegistry.java:191) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.support.FailbackRegistry.subscribe(FailbackRegistry.java:298) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.ListenerRegistryWrapper.subscribe(ListenerRegistryWrapper.java:106) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.integration.RegistryDirectory.subscribe(RegistryDirectory.java:107) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.integration.RegistryProtocol.doCreateInvoker(RegistryProtocol.java:514) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.integration.InterfaceCompatibleRegistryProtocol.getInvoker(InterfaceCompatibleRegistryProtocol.java:58) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.client.migration.MigrationInvoker.refreshInterfaceInvoker(MigrationInvoker.java:448) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.client.migration.MigrationInvoker.migrateToApplicationFirstInvoker(MigrationInvoker.java:239) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.client.migration.MigrationRuleHandler.refreshInvoker(MigrationRuleHandler.java:73) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.client.migration.MigrationRuleHandler.doMigrate(MigrationRuleHandler.java:57) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.client.migration.MigrationRuleListener.onRefer(MigrationRuleListener.java:208) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.integration.RegistryProtocol.interceptInvoker(RegistryProtocol.java:485) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.integration.RegistryProtocol.doRefer(RegistryProtocol.java:467) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.integration.RegistryProtocol.refer(RegistryProtocol.java:452) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:74) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.rpc.cluster.filter.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:68) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.qos.protocol.QosProtocolWrapper.refer(QosProtocolWrapper.java:73) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.rpc.Protocol$Adaptive.refer(Protocol$Adaptive.java) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:392) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:328) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:205) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.utils.ReferenceConfigCache.lambda$get$3(ReferenceConfigCache.java:114) ~[dubbo-3.0.1.jar:3.0.1] at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) ~[na:na] at org.apache.dubbo.config.utils.ReferenceConfigCache.get(ReferenceConfigCache.java:113) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.bootstrap.DubboBootstrap.lambda$referServices$8(DubboBootstrap.java:1348) ~[dubbo-3.0.1.jar:3.0.1] at java.base/java.util.LinkedHashMap$LinkedValues.forEach(LinkedHashMap.java:647) ~[na:na] at org.apache.dubbo.config.bootstrap.DubboBootstrap.referServices(DubboBootstrap.java:1327) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.bootstrap.DubboBootstrap.start(DubboBootstrap.java:1106) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onContextRefreshedEvent(DubboBootstrapApplicationListener.java:80) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onApplicationContextEvent(DubboBootstrapApplicationListener.java:72) ~[dubbo-3.0.1.jar:3.0.1] at com.alibaba.spring.context.OnceApplicationContextEventListener.onApplicationEvent(OnceApplicationContextEventListener.java:52) ~[spring-context-support-1.0.8.jar:na] at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:938) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) ~[spring-boot-2.5.3.jar:2.5.3] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) ~[spring-boot-2.5.3.jar:2.5.3] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:434) ~[spring-boot-2.5.3.jar:2.5.3] at org.springframework.boot.SpringApplication.run(SpringApplication.java:338) ~[spring-boot-2.5.3.jar:2.5.3] at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:143) ~[spring-boot-2.5.3.jar:2.5.3] at com.ghy.www.Application.main(Application.java:12) ~[classes/:na] Caused by: com.alibaba.nacos.api.exception.NacosException: Client not connected,current status:STARTING at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:655) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:635) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:269) ~[nacos-client-2.0.3.jar:na] ... 54 common frames omitted
2021-08-02 15:49:07.383 INFO 18752 --- [ main] o.a.d.r.c.m.MetadataServiceNameMapping : [DUBBO] com.ghy.www.api.IService1 mapping to [my-nacos-provider] instructed by remote metadata center., dubbo version: 3.0.1, current host: 192.168.56.1 2021-08-02 15:49:07.719 INFO 18752 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2021-08-02 15:49:07.724 INFO 18752 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2021-08-02 15:49:07.737 ERROR 18752 --- [ main] o.s.boot.SpringApplication : Application run failed
java.lang.RuntimeException: ErrCode:500, ErrMsg:Request nacos server failed: at org.apache.dubbo.common.function.ThrowableFunction.execute(ThrowableFunction.java:54) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.common.function.ThrowableFunction.execute(ThrowableFunction.java:69) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.nacos.NacosServiceDiscovery.getInstances(NacosServiceDiscovery.java:105) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.client.ServiceDiscoveryRegistry.subscribeURLs(ServiceDiscoveryRegistry.java:307) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.client.ServiceDiscoveryRegistry.doSubscribe(ServiceDiscoveryRegistry.java:233) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.client.ServiceDiscoveryRegistry.subscribe(ServiceDiscoveryRegistry.java:210) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.ListenerRegistryWrapper.subscribe(ListenerRegistryWrapper.java:106) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.integration.DynamicDirectory.subscribe(DynamicDirectory.java:136) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.integration.RegistryProtocol.doCreateInvoker(RegistryProtocol.java:514) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.integration.InterfaceCompatibleRegistryProtocol.getServiceDiscoveryInvoker(InterfaceCompatibleRegistryProtocol.java:65) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.client.migration.MigrationInvoker.refreshServiceDiscoveryInvoker(MigrationInvoker.java:425) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.client.migration.MigrationInvoker.migrateToApplicationFirstInvoker(MigrationInvoker.java:240) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.client.migration.MigrationRuleHandler.refreshInvoker(MigrationRuleHandler.java:73) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.client.migration.MigrationRuleHandler.doMigrate(MigrationRuleHandler.java:57) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.client.migration.MigrationRuleListener.onRefer(MigrationRuleListener.java:208) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.integration.RegistryProtocol.interceptInvoker(RegistryProtocol.java:485) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.integration.RegistryProtocol.doRefer(RegistryProtocol.java:467) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.integration.RegistryProtocol.refer(RegistryProtocol.java:452) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:74) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.rpc.cluster.filter.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:68) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.qos.protocol.QosProtocolWrapper.refer(QosProtocolWrapper.java:73) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.rpc.Protocol$Adaptive.refer(Protocol$Adaptive.java) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:392) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:328) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:205) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.utils.ReferenceConfigCache.lambda$get$3(ReferenceConfigCache.java:114) ~[dubbo-3.0.1.jar:3.0.1] at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708) ~[na:na] at org.apache.dubbo.config.utils.ReferenceConfigCache.get(ReferenceConfigCache.java:113) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.bootstrap.DubboBootstrap.lambda$referServices$8(DubboBootstrap.java:1348) ~[dubbo-3.0.1.jar:3.0.1] at java.base/java.util.LinkedHashMap$LinkedValues.forEach(LinkedHashMap.java:647) ~[na:na] at org.apache.dubbo.config.bootstrap.DubboBootstrap.referServices(DubboBootstrap.java:1327) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.bootstrap.DubboBootstrap.start(DubboBootstrap.java:1106) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onContextRefreshedEvent(DubboBootstrapApplicationListener.java:80) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onApplicationContextEvent(DubboBootstrapApplicationListener.java:72) ~[dubbo-3.0.1.jar:3.0.1] at com.alibaba.spring.context.OnceApplicationContextEventListener.onApplicationEvent(OnceApplicationContextEventListener.java:52) ~[spring-context-support-1.0.8.jar:na] at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:938) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) ~[spring-boot-2.5.3.jar:2.5.3] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) ~[spring-boot-2.5.3.jar:2.5.3] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:434) ~[spring-boot-2.5.3.jar:2.5.3] at org.springframework.boot.SpringApplication.run(SpringApplication.java:338) ~[spring-boot-2.5.3.jar:2.5.3] at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:143) ~[spring-boot-2.5.3.jar:2.5.3] at com.ghy.www.Application.main(Application.java:12) ~[classes/:na] Caused by: com.alibaba.nacos.api.exception.NacosException: Request nacos server failed: at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:279) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.doSubscribe(NamingGrpcClientProxy.java:227) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.subscribe(NamingGrpcClientProxy.java:212) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate.subscribe(NamingClientProxyDelegate.java:147) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.NacosNamingService.selectInstances(NacosNamingService.java:290) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.NacosNamingService.selectInstances(NacosNamingService.java:278) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.NacosNamingService.selectInstances(NacosNamingService.java:266) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.NacosNamingService.selectInstances(NacosNamingService.java:243) ~[nacos-client-2.0.3.jar:na] at org.apache.dubbo.registry.nacos.NacosNamingServiceWrapper.selectInstances(NacosNamingServiceWrapper.java:74) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.nacos.NacosServiceDiscovery.lambda$getInstances$3(NacosServiceDiscovery.java:106) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.common.function.ThrowableFunction.execute(ThrowableFunction.java:52) ~[dubbo-3.0.1.jar:3.0.1] ... 47 common frames omitted Caused by: com.alibaba.nacos.api.exception.NacosException: Client not connected,current status:STARTING at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:655) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:635) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:269) ~[nacos-client-2.0.3.jar:na] ... 57 common frames omitted
2021-08-02 15:49:07.739 INFO 18752 --- [ main] o.apache.dubbo.config.DubboShutdownHook : [DUBBO] Run shutdown hook now., dubbo version: 3.0.1, current host: 192.168.56.1 2021-08-02 15:49:07.740 INFO 18752 --- [ main] o.a.d.r.support.AbstractRegistryFactory : [DUBBO] Close all registries [org.apache.dubbo.registry.client.ServiceDiscoveryRegistry@56f2c9e8, nacos://127.0.0.1:8848/org.apache.dubbo.registry.RegistryService?application=my-nacos-consumer&check=false&dubbo=2.0.2&interface=org.apache.dubbo.registry.RegistryService&password=nacos&pid=18752&qos.enable=false&release=3.0.1&username=nacos], dubbo version: 3.0.1, current host: 192.168.56.1 2021-08-02 15:49:08.051 ERROR 18752 --- [ main] o.a.d.r.support.AbstractRegistryFactory : [DUBBO] java.lang.NullPointerException, dubbo version: 3.0.1, current host: 192.168.56.1
java.lang.RuntimeException: java.lang.NullPointerException at org.apache.dubbo.common.function.ThrowableAction.execute(ThrowableAction.java:48) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.client.ServiceDiscoveryRegistry.destroy(ServiceDiscoveryRegistry.java:288) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.support.AbstractRegistryFactory.destroyAll(AbstractRegistryFactory.java:101) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.bootstrap.DubboBootstrap.destroyRegistries(DubboBootstrap.java:1497) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.bootstrap.DubboBootstrap.destroy(DubboBootstrap.java:1448) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.common.function.ThrowableAction.execute(ThrowableAction.java:46) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.common.lang.ShutdownHookCallbacks.lambda$callback$0(ShutdownHookCallbacks.java:70) ~[dubbo-3.0.1.jar:3.0.1] at java.base/java.lang.Iterable.forEach(Iterable.java:75) ~[na:na] at org.apache.dubbo.common.lang.ShutdownHookCallbacks.callback(ShutdownHookCallbacks.java:70) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.DubboShutdownHook.callback(DubboShutdownHook.java:77) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.DubboShutdownHook.run(DubboShutdownHook.java:64) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onContextClosedEvent(DubboBootstrapApplicationListener.java:86) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onApplicationContextEvent(DubboBootstrapApplicationListener.java:74) ~[dubbo-3.0.1.jar:3.0.1] at com.alibaba.spring.context.OnceApplicationContextEventListener.onApplicationEvent(OnceApplicationContextEventListener.java:52) ~[spring-context-support-1.0.8.jar:na] at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1058) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.doClose(ServletWebServerApplicationContext.java:172) ~[spring-boot-2.5.3.jar:2.5.3] at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1021) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:810) ~[spring-boot-2.5.3.jar:2.5.3] at org.springframework.boot.SpringApplication.run(SpringApplication.java:348) ~[spring-boot-2.5.3.jar:2.5.3] at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:143) ~[spring-boot-2.5.3.jar:2.5.3] at com.ghy.www.Application.main(Application.java:12) ~[classes/:na] Caused by: java.lang.NullPointerException: null at com.alibaba.nacos.common.remote.client.RpcClient.shutdown(RpcClient.java:465) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.common.remote.client.grpc.GrpcClient.shutdown(GrpcClient.java:81) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.shutdown(NamingGrpcClientProxy.java:286) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate.shutdown(NamingClientProxyDelegate.java:180) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.NacosNamingService.shutDown(NacosNamingService.java:456) ~[nacos-client-2.0.3.jar:na] at org.apache.dubbo.registry.nacos.NacosNamingServiceWrapper.shutdown(NacosNamingServiceWrapper.java:78) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.nacos.NacosServiceDiscovery.doDestroy(NacosServiceDiscovery.java:69) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.client.AbstractServiceDiscovery.destroy(AbstractServiceDiscovery.java:81) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.client.ServiceDiscoveryRegistry.lambda$destroy$1(ServiceDiscoveryRegistry.java:290) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.common.function.ThrowableAction.execute(ThrowableAction.java:46) ~[dubbo-3.0.1.jar:3.0.1] ... 25 common frames omitted
2021-08-02 15:49:08.052 INFO 18752 --- [ main] o.a.dubbo.registry.nacos.NacosRegistry : [DUBBO] Destroy registry:nacos://127.0.0.1:8848/org.apache.dubbo.registry.RegistryService?application=my-nacos-consumer&check=false&dubbo=2.0.2&interface=org.apache.dubbo.registry.RegistryService&password=nacos&pid=18752&qos.enable=false&release=3.0.1&username=nacos, dubbo version: 3.0.1, current host: 192.168.56.1 2021-08-02 15:49:08.357 ERROR 18752 --- [ main] o.a.dubbo.registry.nacos.NacosRegistry : [DUBBO] Request nacos server failed: , dubbo version: 3.0.1, current host: 192.168.56.1
com.alibaba.nacos.api.exception.NacosException: Request nacos server failed: at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:279) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.doDeregisterService(NamingGrpcClientProxy.java:153) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.deregisterService(NamingGrpcClientProxy.java:139) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate.deregisterService(NamingClientProxyDelegate.java:100) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.NacosNamingService.deregisterInstance(NacosNamingService.java:180) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.NacosNamingService.deregisterInstance(NacosNamingService.java:170) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.NacosNamingService.deregisterInstance(NacosNamingService.java:155) ~[nacos-client-2.0.3.jar:na] at org.apache.dubbo.registry.nacos.NacosNamingServiceWrapper.deregisterInstance(NacosNamingServiceWrapper.java:61) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.nacos.NacosRegistry.lambda$doUnregister$2(NacosRegistry.java:173) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.nacos.NacosRegistry.execute(NacosRegistry.java:567) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.nacos.NacosRegistry.doUnregister(NacosRegistry.java:170) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.support.FailbackRegistry.unregister(FailbackRegistry.java:254) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.support.AbstractRegistry.destroy(AbstractRegistry.java:482) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.support.FailbackRegistry.destroy(FailbackRegistry.java:408) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.registry.support.AbstractRegistryFactory.destroyAll(AbstractRegistryFactory.java:101) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.bootstrap.DubboBootstrap.destroyRegistries(DubboBootstrap.java:1497) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.bootstrap.DubboBootstrap.destroy(DubboBootstrap.java:1448) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.common.function.ThrowableAction.execute(ThrowableAction.java:46) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.common.lang.ShutdownHookCallbacks.lambda$callback$0(ShutdownHookCallbacks.java:70) ~[dubbo-3.0.1.jar:3.0.1] at java.base/java.lang.Iterable.forEach(Iterable.java:75) ~[na:na] at org.apache.dubbo.common.lang.ShutdownHookCallbacks.callback(ShutdownHookCallbacks.java:70) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.DubboShutdownHook.callback(DubboShutdownHook.java:77) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.DubboShutdownHook.run(DubboShutdownHook.java:64) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onContextClosedEvent(DubboBootstrapApplicationListener.java:86) ~[dubbo-3.0.1.jar:3.0.1] at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onApplicationContextEvent(DubboBootstrapApplicationListener.java:74) ~[dubbo-3.0.1.jar:3.0.1] at com.alibaba.spring.context.OnceApplicationContextEventListener.onApplicationEvent(OnceApplicationContextEventListener.java:52) ~[spring-context-support-1.0.8.jar:na] at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1058) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.doClose(ServletWebServerApplicationContext.java:172) ~[spring-boot-2.5.3.jar:2.5.3] at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1021) ~[spring-context-5.3.9.jar:5.3.9] at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:810) ~[spring-boot-2.5.3.jar:2.5.3] at org.springframework.boot.SpringApplication.run(SpringApplication.java:348) ~[spring-boot-2.5.3.jar:2.5.3] at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:143) ~[spring-boot-2.5.3.jar:2.5.3] at com.ghy.www.Application.main(Application.java:12) ~[classes/:na] Caused by: com.alibaba.nacos.api.exception.NacosException: Client not connected,current status:STARTING at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:655) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:635) ~[nacos-client-2.0.3.jar:na] at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:269) ~[nacos-client-2.0.3.jar:na] ... 37 common frames omitted
2021-08-02 15:49:08.357 INFO 18752 --- [ main] o.a.dubbo.registry.nacos.NacosRegistry : [DUBBO] Destroy unregister url dubbo://192.168.56.1/com.ghy.www.api.IService1?application=my-nacos-consumer&category=consumers&check=false&dubbo=2.0.2&interface=com.ghy.www.api.IService1&metadata-type=remote&methods=getHello&pid=18752&qos.enable=false&release=3.0.1&side=consumer&sticky=false×tamp=1627890522048, dubbo version: 3.0.1, current host: 192.168.56.1 2021-08-02 15:49:08.357 INFO 18752 --- [ main] o.a.dubbo.registry.nacos.NacosRegistry : [DUBBO] Unsubscribe: dubbo://192.168.56.1/com.ghy.www.api.IService1?application=my-nacos-consumer&category=providers,configurators,routers&check=false&dubbo=2.0.2&interface=com.ghy.www.api.IService1&metadata-type=remote&methods=getHello&pid=18752&qos.enable=false&release=3.0.1&side=consumer&sticky=false×tamp=1627890522048, dubbo version: 3.0.1, current host: 192.168.56.1 2021-08-02 15:49:08.357 INFO 18752 --- [ main] o.a.dubbo.registry.nacos.NacosRegistry : [DUBBO] Destroy unsubscribe url dubbo://192.168.56.1/com.ghy.www.api.IService1?application=my-nacos-consumer&category=providers,configurators,routers&check=false&dubbo=2.0.2&interface=com.ghy.www.api.IService1&metadata-type=remote&methods=getHello&pid=18752&qos.enable=false&release=3.0.1&side=consumer&sticky=false×tamp=1627890522048, dubbo version: 3.0.1, current host: 192.168.56.1 2021-08-02 15:49:08.359 INFO 18752 --- [ main] org.apache.dubbo.qos.server.Server : [DUBBO] qos-server stopped., dubbo version: 3.0.1, current host: 192.168.56.1 2021-08-02 15:49:08.360 INFO 18752 --- [ main] o.a.d.config.bootstrap.DubboBootstrap : [DUBBO] DubboBootstrap is about to shutdown..., dubbo version: 3.0.1, current host: 192.168.56.1 2021-08-02 15:49:08.463 INFO 18752 --- [ main] o.apache.dubbo.config.DubboShutdownHook : [DUBBO] Dubbo Service has been destroyed., dubbo version: 3.0.1, current host: 192.168.56.1 2021-08-02 15:49:08.465 INFO 18752 --- [ main] f.a.ReferenceAnnotationBeanPostProcessor : class org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor was destroying! 2021-08-02 15:49:08.466 WARN 18752 --- [ Thread-5] c.a.nacos.common.notify.NotifyCenter : [NotifyCenter] Start destroying Publisher 2021-08-02 15:49:08.466 WARN 18752 --- [ Thread-5] c.a.nacos.common.notify.NotifyCenter : [NotifyCenter] Destruction of the end 2021-08-02 15:49:08.466 WARN 18752 --- [ Thread-1] c.a.n.common.http.HttpClientBeanHolder : [HttpClientBeanHolder] Start destroying common HttpClient 2021-08-02 15:49:08.467 WARN 18752 --- [ Thread-1] c.a.n.common.http.HttpClientBeanHolder : [HttpClientBeanHolder] Destruction of the end
Process finished with exit code 1