当前位置:   article > 正文

protected Object doInvoke(Object... args) throws Exception_return this.getbridgedmethod().invoke(this.getbean

return this.getbridgedmethod().invoke(this.getbean(), args);

protected Object doInvoke(Object… args) throws Exception {
ReflectionUtils.makeAccessible(this.getBridgedMethod());

try {
    return this.getBridgedMethod().invoke(this.getBean(), args);
} catch (IllegalArgumentException var5) {
    this.assertTargetBean(this.getBridgedMethod(), this.getBean(), args);
    String message = var5.getMessage() != null ? var5.getMessage() : "Illegal argument";
    throw new IllegalStateException(this.getInvocationErrorMessage(message, args), var5);
} catch (InvocationTargetException var6) {
    Throwable targetException = var6.getTargetException();
    if (targetException instanceof RuntimeException) {
        throw (RuntimeException)targetException;
    } else if (targetException instanceof Error) {
        throw (Error)targetException;
    } else if (targetException instanceof Exception) {
        throw (Exception)targetException;
    } else {
        String msg = this.getInvocationErrorMessage("Failed to invoke controller method", args);
        throw new IllegalStateException(msg, targetException);
    }
}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19

}

相信大家不止一次遇到过这个异常吧,本人采用的jsonObject对象包是ali的,改为fastjson对应的包就解决了,你们呢?

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/130611
推荐阅读
相关标签
  

闽ICP备14008679号