feign.FeignException: status 500 reading
问题现象微服务A调用用户微服务的修改操作,前端提示“undefined”,服务A报错日志如下:feign.FeignException: status 500 reading IUserClient#modifyUser(String,List); content:{"timestamp":"2020-04-10T06:19:54.158+0000","status":500,"erro...
问题现象
微服务A调用用户微服务的修改操作,前端提示“undefined”,服务A报错日志如下:
feign.FeignException: status 500 reading IUserClient#modifyUser(String,List); content:
{"timestamp":"2020-04-10T06:19:54.158+0000","status":500,"error":"Internal Server Error","exception":"java.lang.NullPointerException","message":"No message available","path":"/user/modify"}
at feign.FeignException.errorStatus(FeignException.java:62)
at feign.codec.ErrorDecoder$Default.decode(ErrorDecoder.java:91)
at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:138)
at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:76)
at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:103)
at com.sun.proxy.$Proxy151.modifyUser(Unknown Source)
.......
解决方案
List列表中存储的是User对象,User对象缺少字段导致无法修改(我的是User的用户组对象没有)。
产生原因
参数缺失导致的空指针异常。
更多推荐
所有评论(0)