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也已经启动,没有什么问题,就是在注册服务的时候会失败。
f4da270118f44b2296eb4af5b7a57462.jpeg
找了一会也没找到原因,于是换了一个nacos版本试试:
原来的:
在这里插入图片描述
改成2
在这里插入图片描述

问题解决~。启动成功!

猜你喜欢

转载自blog.csdn.net/qq_43985303/article/details/132029369