BUG集-汇总

这篇博客汇总了在Java后端开发中遇到的多种异常,包括Spring框架的HttpServerErrorException、IllegalArgumentException、NacosException、ConnectException等,并详细分析了问题原因,提供了解决方案。异常涉及的服务包括Nacos、Feign、Sentinel、Redis和Springcloud Netflix等。
摘要由CSDN通过智能技术生成

BUG集合:

一、异常:rg.springframework.web.client.HttpServerErrorException$InternalServerErro

项目场景:

nacos


问题描述:

具体报错如下:

rg.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : 
[{
   "timestamp":"2021-10-23T06:57:41.913+00:00","status":500,"error":"Internal Server 
Error","message":"","path":"/provider/echo/sca-consumer"}]
   at 
org.springframework.web.client.HttpServerErrorException.create(HttpServerErrorException.java:1
00) ~[spring-web-5.2.8.RELEASE.jar:5.2.8.RELEASE]
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is 
org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : 
[{
   "timestamp":"2021-10-23T06:57:41.913+00:00","status":500,"error":"Internal Server 
Error","message":"","path":"/provider/echo/sca-consumer"}]] with root cause
org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : 
[{
   "timestamp":"2021-10-23T06:57:41.913+00:00","status":500,"error":"Internal Server 
Error","message":"","path":"/provider/echo/sca-consumer"}]

原因分析:

Allow parallerl run 服务端和消费端都开并行,服务要并行,消费端不用多个 ,关闭消费端即可


解决方案:

关闭消费端即可


二、异常:java.lang.IllegalArgumentException:

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值