犹大之窗

关注

java.lang.IllegalArgumentException: object is not an instance of declaring class

犹大之窗

关注

阅读 67

2023-04-24


java.lang.IllegalArgumentException: object is not an instance of declaring class

使用invoke报错,原因为第一个参数不正确。

Object result = m.invoke(testBean, new Object[] {}); 

解决方法:

testBean应该为这个方法所在的Object的实例。

相关推荐

晚安大世界

object is not an instance of declaring class

晚安大世界 107 0 0

向上的萝卜白菜

java.lang.IllegalArgumentException: MALFORMED

向上的萝卜白菜 65 0 0

西风白羽

java.lang.IllegalArgumentException: Unsupported class file major version 60

西风白羽 103 0 0

巧乐兹_d41f

报错:java.lang.IllegalArgumentException

巧乐兹_d41f 36 0 0

止止_8fc8

java.lang.IllegalArgumentException: Illegal URL:

止止_8fc8 80 0 0

就是耍帅

java.lang.IllegalArgumentException: Invalid chara

就是耍帅 181 0 0

草原小黄河

java.lang.IllegalArgumentException: When allowCredentials is true

草原小黄河 31 0 0

九月的栩

java.lang.IllegalArgumentException: adding a window to a container

九月的栩 58 0 0

Soy丶sauce

java.lang.IllegalArgumentException: There is no PasswordEncoder mapped for the id

Soy丶sauce 109 0 0

朱小落

java.lang.IllegalArgumentException 参数类型错误.

朱小落 101 0 0

精彩评论(0)

0 0 举报