java.lang.IllegalArgumentException: object is not an instance of declaring class
2017-04-26 13:41
1106 查看
今天在使用反射的时候,出现了
第一个参数应该是调用该方法的对象,而我粗心直接把Class对象给过去了…..实际上第一个参数应该是Object
java.lang.IllegalArgumentException: object is not an instance of declaring class错误…具体是invoke()调用的时候
String returnFlag = (String) m.invoke(t, request, response);
第一个参数应该是调用该方法的对象,而我粗心直接把Class对象给过去了…..实际上第一个参数应该是Object
相关文章推荐
- java.lang.IllegalArgumentException: object is not an instance of declaring class
- nested exception is java.lang.IllegalArgumentException: object is not an instance of declaring class
- HIbernate 3.2 java.lang.IllegalArgumentException: object is not an instance of declaring class
- 异常笔记(2)--object is not an instance of declaring class while invoking public abstract java.lang.Long
- java反射错误:object is not an instance of declaring class
- java axis调用cxf 的坑object is not an instance of declaring class while invoking public
- object is not an instance of declaring class&argument type mismatch
- hibernate 4 object is not an instance of declaring class
- 项目启动后,访问报 object is not an instance of declaring class 错误
- object is not an instance of declaring class while invoking public abstract…的解决
- java.lang.IllegalArgumentException: interface UserMapper is not visible from class loader
- java.lang.IllegalArgumentException: The class class ** is not found in EntityFactory.
- spring的 object is not an instance of declaring class
- 报错:object is not an instance of declaring class
- java.lang.IllegalArgumentException: Not an entity: class
- Java反射:object is not an instance of declaring c...
- Xfile 错误记录 object is not an instance of declaring class
- java.lang.IllegalArgumentException: not found @HttpResponse from class java.lang.Object解决方法
- Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Not a mana
- object is not an instance of declaring class 反射异常