问题描述
- InvocationTargetException
-
设断点调到这个方法
public InvocationTargetException(Throwable target) {
super((Throwable)null); // Disallow initCause
this.target = target;
}
后台没报错,只有设断点才出现。这是什么情况
解决方案
InvocationTargetException
只能看到是你反射方法调用或者线程调用的时候,目标函数丢出了异常,在你报错的这个地方,打开调用堆栈(call stack)窗口,看上一层你调用的方法。
时间: 2024-08-08 03:54:32