stackoverflow中有这样一句话: The reflection layer wraps any exception in an InvocationTargetException, which lets you tell the difference between an exception actually caused by a failure in the reflection call (maybe your argument list wasn't valid, for example) and a failure within the method called

翻译一下就是: 反射层将所有的异常都包装在一个InvocationTargetException 中,能使你区分异常的实际上是反射层的引起的一个调用失败(例如参数列表无效)和调用方法内部的错误

大概意思就是这样,嗯*~*

所以,我查看了invoke参数和调用的方法的参数是否一致,发现一致后,再检查调用方法内部,有个空指针异常(比较低级的错误。。)

问题解决。bingo~

 
 

相关文章:

  • 2022-12-23
  • 2021-09-17
  • 2022-01-04
  • 2021-08-16
  • 2021-06-24
  • 2021-12-11
  • 2021-07-10
  • 2022-12-23
猜你喜欢
  • 2021-12-05
  • 2021-11-16
  • 2022-12-23
  • 2021-10-24
  • 2022-12-23
  • 2021-12-11
  • 2021-09-26
相关资源
相似解决方案