楼主你好,看了你的问题,据我所知出现"failed to update serviceName: localhost"错误信息通常是因为...
服务名是ace-admin spring: application: name: ace-admin 2019-11-09 15:59:16.290 ERROR [ace-admin,,,] 5196 --- [.naming.updater] com.alibaba.nacos.client.naming : [] [] [NA] failed to update serviceName: localhost java.lang.NullPointerException: null at java.base/java.util.concurrent....
Describe the bug ^[[1;31m[ ERROR ] [2020-11-10 10:27:48.856] [ LOGID: ] [,,,] [com.alibaba.nacos.client.naming.core.HostReactor.updateServiceNow(HostReactor.java:278)] [NA] failed to update serviceName: DEFAULT_GROUP@@data-archive ^[[m j...
serviceName, groupName, clusters);StringserviceNameWithGroup=NamingUtils.getGroupedName(serviceName, groupName);StringserviceKey=ServiceInfo.getKey(serviceNameWithGroup, clusters);//定时调度UpdateTaskserviceInfoUpdateService.scheduleUpdateIfAbsent(serviceName, groupName, clusters);//获取缓存中的serviceInfo对...
return serviceId -> { try { /** * 返回的是Mono,响应式 * @see NacosServiceDiscovery#getInstances(String) */ return Mono.justOrEmpty(serviceDiscovery.getInstances(serviceId)) .flatMapMany(instances -> { // 放入本地缓存 ServiceCache.setInstances(serviceId, instances); ...
failed to req API:http://127.0.0.1:8848/nacos/v1/ns/api/srvIPXT. code:404 msg: service not found#1076 Closed Contributor nkorangementioned this issueApr 29, 2019 nkorangechanged the titlejava.lang.IllegalStateException: failed to req API:/nacos/v1/ns/api/srvIPXT after all servers([nacos...
serviceId , 对应当前应用的application.name group,表示nacos上的分组配置 instance,表示服务实例信息 publicvoidregister(Registration registration) {if(StringUtils.isEmpty(registration.getServiceId())) { log.warn("No service to register for nacos client..."); ...
NAMING_LOGGER.error("[NA] failed to update serviceName: "+ serviceName, e); }finally{if(oldService !=null) {synchronized(oldService) { oldService.notifyAll(); } } } } 3、开启一个定时任务,每隔一秒从Nacos服务端获取最新的服务实例信息,更新到本地缓存seriveInfoMap中: ...
2021-11-1014:30:30.155WARN[com.alibaba.nacos.client.naming.updater][]com.alibaba.nacos.client.naming444:[NA]failed to update serviceName:test@@xxx-gateway com.alibaba.nacos.api.exception.NacosException:failed to reqAPI:/nacos/v1/ns/instance/list after allservers([xxx:8848])tried:ErrCode:503...
error("[NA] failed to update serviceName: " + serviceName, e); } } UpdateTask实现了Runnable接口,其run方法首先从serviceInfoMap获取serviceObj,获取不到则执行updateServiceNow,然后再次延时调度UpdateTask;可以从serviceInfoMap获取serviceObj的话则判断serviceObj.getLastRefTime()是否小于等于lastRefTime,...