-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Closed
Description
版本
v2.4
环境
本地/线上
复现步骤
- 新建若干菜单,然后修改用户信息,响应StackOverFlow错误信息。
问题描述
- 在
LogAspect.logAround()里执行LogServiceImpl.save()方法的jointPoint.getArgs()时,获取的方法参数内容过长(我打印了参数内容,非常多roles、menus和users之间的嵌套),导致getParameter里的JSONUtil.toJsonStr(argList)抛出爆栈错误。 - 同时因为
LogServiceImpl.save()抛出异常,而curTime在logAround()里已经被提前remove(),导致Log log = new Log("ERROR",System.currentTimeMillis() - currentTime.get());会有NPE异常。建议将remove()放在后面。
辛苦了
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels