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

  1. ,

    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 Stack Overflow by AIM
, 1 year ago
object is not an instance of declaring class
java.lang.IllegalArgumentException: object is not an instance of declaring class at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:325) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201) at com.sun.proxy.$Proxy7.createConnection(Unknown Source) at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:185) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:481) at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:566) at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:557) at com.java.geek.JmsMessageSender.send(JmsMessageSender.java:29) at com.java.geek.AppMain.main(AppMain.java:25)Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) at java.lang.reflect.Method.invoke(Method.java:619) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) ... 8 more