debug info: In theNacosDiscoveryProperties.javacode, theservicefield is incorrectly set(null). I guess the high probability of the bug is caused by the startup sequence of Nacos. ERROR:namingService subscribe failed java.lang.IllegalArgumentException: Param 'serviceName' is illegal, serviceName is...
serviceChanged方法会往changedServices添加serviceInfo;之后Notifier异步线程可用拉取信息执行listener.onEvent回调 小结 NacosNamingService的subscribe方法执行eventDispatcher.addListener;unsubscribe方法执行eventDispatcher.removeListener doc NacosNamingService 原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。 如...
代码虽然顺利跑了起来,但是却出现报错,大意为 Nacos 连接出现了异常,具体报错如下: ERROR 19068 --- [ main] c.a.cloud.nacos.discovery.NacosWatch : namingService subscribe failed, properties:NacosDiscoveryProperties{serverAddr='localhost:8848', endpoint='', namespace='', watchDelay=30000, logName=''...
at com.alibaba.nacos.client.naming.NacosNamingService.subscribe(NacosNamingService.java:393) ~[nacos-client-2.1.0.jar:na] at com.alibaba.cloud.nacos.discovery.NacosWatch.start(NacosWatch.java:133) ~[spring-cloud-starter-alibaba-nacos-discovery-2.2.9.RELEASE.jar:2.2.9.RELEASE] at org.springfram...
c.a.cloud.nacos.discovery.NacosWatch : [TRACEID:] namingService subscribe failed, properties...
remote.NamingClientProxyDelegate.subscribe(NamingClientProxyDelegate.java:147) ~[nacos-client-2.1.0.jar:na] at com.alibaba.nacos.client.naming.NacosNamingService.subscribe(NacosNamingService.java:393) ~[nacos-client-2.1.0.jar:na] at com.alibaba.cloud.nacos.discovery.NacosWatch.start(NacosWatch....
at com.alibaba.nacos.client.naming.NacosNamingService.subscribe(NacosNamingService.java:393) ~[nacos-client-2.1.0.jar:na] at com.alibaba.cloud.nacos.discovery.NacosWatch.start(NacosWatch.java:133) ~[spring-cloud-starter-alibaba-nacos-discovery-2.2.9.RELEASE.jar:2.2.9.RELEASE] ...
*/privateStringnamespace;privateString endpoint;privateString serverList;privateString cacheDir;privateString logName;privateHostReactor hostReactor;privateBeatReactor beatReactor;privateEventDispatcher eventDispatcher;privateNamingProxy serverProxy;//...@Overridepublicvoidsubscribe(String serviceName,EventListener listen...
NacosNamingService的subscribe方法执行eventDispatcher.addListener;unsubscribe方法执行eventDispatcher.removeListener 感谢各位的阅读,以上就是“NacosNamingService中subscribe及unsubscribe的原理和使用方法”的内容了,经过本文的学习后,相信大家对NacosNamingService中subscribe及unsubscribe的原理和使用方法这一问题有了更深刻的体会...
at com.alibaba.nacos.client.naming.NacosNamingService.subscribe(NacosNamingService.java:393) ~[nacos-client-2.0.3.jar:na] 原因分析 版本不一致 代码没有改动,测试环境没问题,但是生产环境有问题呢?首先看一下两者不同的地方,大多数都是环境配置的问题。