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&timestamp=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&timestamp=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
在这里插入图片描述

问题解决~。启动成功!

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

杵意

谢谢金主打赏呀!!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值