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对应的包就解决了,你们呢?