public InvocationTargetException(Throwable target) {
super((Throwable)null); // Disallow initCause
this.target = target;
}
我测了许多数据,其中只有一条数据会调到这个异常代码处,然后报空指针,我去找报空指针的地方,并不是空的。其他数据执行的时候都没有问题。求大神。
public InvocationTargetException(Throwable target) {
super((Throwable)null); // Disallow initCause
this.target = target;
}
我测了许多数据,其中只有一条数据会调到这个异常代码处,然后报空指针,我去找报空指针的地方,并不是空的。其他数据执行的时候都没有问题。求大神。
InvocationTargetException是你反射调用一个方法的时候,参数或者函数名不对造成的。检查下你的函数名参数,如果是用的某个框架,检查配置文件