开发者社区 > 云原生 > 微服务 > 正文

在Nacos中线上环境会偶尔出现这个问题 ,这个是为什么?

在Nacos中线上环境会偶尔出现这个问题 ,这个是为什么?{
code: 500,
data: null,
message: "Failed to handle request [GET http://test.tech/public/products/by-models]: Error creating bean with name 'ribbonServerList' defined in com.alibaba.cloud.nacos.ribbon.NacosRibbonClientConfiguration: Unsatisfied dependency expressed through method 'ribbonServerList' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'nacosProperties': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)"
}

展开
收起
花开富贵111 2024-05-25 15:45:47 56 0
1 条回答
写回答
取消 提交回答
  • 线上环境偶尔出现的500错误是因为在服务关闭或Bean销毁期间,不当尝试创建Ribbon负载均衡所需的Bean,导致Spring容器管理Bean时出现冲突,检查Bean生命周期管理和应用关闭逻辑。

    2024-05-25 16:05:47
    赞同 2 展开评论 打赏
问答分类:
问答标签:
问答地址:

为微服务建设降本增效,为微服务落地保驾护航。

相关电子书

更多
Nacos架构&原理 立即下载
workshop专场-微服务专场-开发者动手实践营-微服务-使用Nacos进行服务的动态发现和流量调度 立即下载
Nacos 启航,发布第一个版本, 云原生时代助力用户微服务平台建设 立即下载