protected Object doInvoke(Object... args) throws Exception

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);
    }
}

}

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


版权声明:本文为weixin_42225721原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。