栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

dubbo向Nacos服务中心注册服务的时候报错:Failed to unregister dubbo://192.168.188.125:20880/com.youming.shuiku.asset

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

dubbo向Nacos服务中心注册服务的时候报错:Failed to unregister dubbo://192.168.188.125:20880/com.youming.shuiku.asset

dubbo向Nacos服务中心注册服务的时候报错:

java.lang.IllegalStateException: Failed to unregister dubbo://192.168.188.125:20880/com.youming.shuiku.assets.api.IMaintainRecordService?anyhost=true&application=provider-engineering&background=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.youming.shuiku.assets.api.IMaintainRecordService&metadata-type=remote&methods=removeById,lambdaQuery,ktQuery,removeByMap,listByIds,updateBatchById,create,saveOrUpdate,query,count,listObjs,list,getMap,getEntityClass,getById,getOne,page,ktUpdate,save,update,getObj,saveOrUpdateBatch,remove,getBaseMapper,removeByIds,get,lambdaUpdate,listMaps,saveBatch,updateById,pageMaps,listByMap&pid=20604&release=3.0.4&revision=1.0.0&service-name-mapping=true&side=provider×tamp=1657697028872&version=1.0.0 to registry 127.0.0.1:8848, cause: Failed to unregister dubbo://192.168.188.125:20880/com.youming.shuiku.assets.api.IMaintainRecordService?anyhost=true&application=provider-engineering&background=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.youming.shuiku.assets.api.IMaintainRecordService&metadata-type=remote&methods=removeById,lambdaQuery,ktQuery,removeByMap,listByIds,updateBatchById,create,saveOrUpdate,query,count,listObjs,list,getMap,getEntityClass,getById,getOne,page,ktUpdate,save,update,getObj,saveOrUpdateBatch,remove,getBaseMapper,removeByIds,get,lambdaUpdate,listMaps,saveBatch,updateById,pageMaps,listByMap&pid=20604&release=3.0.4&revision=1.0.0&service-name-mapping=true&side=provider×tamp=1657697028872&version=1.0.0 to nacos nacos://127.0.0.1:8848/org.apache.dubbo.registry.RegistryService?application=provider-engineering&dubbo=2.0.2&group=SHUIKU_GROUP&interface=org.apache.dubbo.registry.RegistryService&pid=20604&qos.enable=false&release=3.0.4, cause: Request nacos server failed: 
	at org.apache.dubbo.registry.support.FailbackRegistry.unregister(FailbackRegistry.java:267)
	at org.apache.dubbo.registry.support.AbstractRegistry.destroy(AbstractRegistry.java:488)
	at org.apache.dubbo.registry.support.FailbackRegistry.destroy(FailbackRegistry.java:408)
	at org.apache.dubbo.registry.support.RegistryManager.destroyAll(RegistryManager.java:105)
	at org.apache.dubbo.config.deploy.DefaultApplicationDeployer.destroyRegistries(DefaultApplicationDeployer.java:1034)
	at org.apache.dubbo.config.deploy.DefaultApplicationDeployer.postDestroy(DefaultApplicationDeployer.java:860)
	at org.apache.dubbo.rpc.model.ApplicationModel.onDestroy(ApplicationModel.java:262)
	at org.apache.dubbo.rpc.model.ScopeModel.destroy(ScopeModel.java:105)
	at org.apache.dubbo.rpc.model.ApplicationModel.tryDestroy(ApplicationModel.java:354)
	at org.apache.dubbo.rpc.model.ModuleModel.onDestroy(ModuleModel.java:107)
	at org.apache.dubbo.rpc.model.ScopeModel.destroy(ScopeModel.java:105)
	at org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onContextClosedEvent(DubboDeployApplicationListener.java:127)
	at org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:100)
	at org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:44)
	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:404)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:361)
	at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1013)
	at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:979)
	at org.springframework.boot.builder.ParentContextCloserApplicationListener$ContextCloserListener.onApplicationEvent(ParentContextCloserApplicationListener.java:94)
	at org.springframework.boot.builder.ParentContextCloserApplicationListener$ContextCloserListener.onApplicationEvent(ParentContextCloserApplicationListener.java:82)
	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:404)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:361)

我查看了Nacos也已经启动,没有什么问题,就是在注册服务的时候会失败。

找了一会也没找到原因,于是换了一个nacos版本试试:
原来的:

改成2

问题解决~。启动成功!

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/1014447.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号