java.lang.IllegalArgumentException: object is not an instance of declaring class
Searched on Google with the first line of a JAVA stack trace?
We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.
Recommended solutions based on your search
Samebug tips
Thrown to indicate that a method has been passed an illegal or inappropriate argument. Check that you don't have more than one method existing with the same name.
Solutions on the web
via hivmr.com by Unknown author, 1 year ago
via Oracle Community by 807546, 1 year ago
via Stack Overflow by Bebo
, 1 year agovia Stack Overflow by Bebo
, 1 year agovia Stack Overflow by Piu130
, 2 years agovia Stack Overflow by chris
, 7 months agojava.lang.IllegalArgumentException: object is not an instance of declaring class
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at test.com.prudential.xmlbeans.XMLInjectorImpl.cacheConfig(XMLInjectorImpl.java:49)
at test.com.prudential.bootstrapper.XSLTestBootStrapper.loadXmlBeans(XSLTestBootStrapper.java:17)
at root.Base.runCommands(Base.java:20)
at root.Base.main(Base.java:25)