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 Atlassian JIRA by Andreas van Rienen (Scandio), 1 year ago
via Atlassian JIRA by Andreas van Rienen (Scandio), 1 year ago
via Atlassian JIRA by Steve Skrla, 1 year ago
via Atlassian JIRA by Steve Skrla, 1 year ago
via Atlassian JIRA by Joe Stepowski, 1 year ago
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:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1426)	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)	at groovy.lang.MetaBeanProperty.getProperty(MetaBeanProperty.java:62)	at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1245)	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1217)	at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:812)	at org.grails.validation.ConstrainedPropertyBuilder.doInvokeMethod(ConstrainedPropertyBuilder.java:74)	at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:67)	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeOnDelegationObjects(ClosureMetaClass.java:446)	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:369)	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)	at UserManage.User$__clinit__closure2.doCall(User.groovy:79)	at UserManage.User$__clinit__closure2.doCall(User.groovy)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1426)	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)	at groovy.lang.Closure.call(Closure.java:414)	at UserManage.User$__clinit__closure2.call(User.groovy)	at groovy.lang.Closure.call(Closure.java:408)	at UserManage.User$__clinit__closure2.call(User.groovy)	at org.grails.validation.DefaultConstraintEvaluator.evaluateConstraintsMap(DefaultConstraintEvaluator.java:240)	at org.grails.validation.DefaultConstraintEvaluator.evaluateConstraints(DefaultConstraintEvaluator.java:132)	at org.grails.validation.DefaultConstraintEvaluator.evaluateConstraints(DefaultConstraintEvaluator.java:119)	at org.grails.validation.DefaultConstraintEvaluator.evaluate(DefaultConstraintEvaluator.java:108)	at org.grails.core.DefaultGrailsDomainClass.initializeConstraints(DefaultGrailsDomainClass.java:755)	at org.grails.core.DefaultGrailsDomainClass.getConstrainedProperties(DefaultGrailsDomainClass.java:746)	at org.grails.validation.GrailsDomainClassValidator.validate(GrailsDomainClassValidator.java:76)	at org.grails.orm.hibernate.AbstractHibernateGormInstanceApi.save(AbstractHibernateGormInstanceApi.groovy:122)	at org.grails.datastore.gorm.GormInstanceApi.save(GormInstanceApi.groovy:116)	at org.grails.datastore.gorm.GormEntity$Trait$Helper.save(GormEntity.groovy:98)	at org.grails.datastore.gorm.GormEntity$Trait$Helper$save$5.call(Unknown Source)	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)	at UserManage.User.save(User.groovy)	at UserManage.User.save(User.groovy)	at org.grails.datastore.gorm.GormEntity$save$0.call(Unknown Source)	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)	at groovy.Factories.UserFactory.Build(UserFactory.groovy:18)	at groovy.Factories.UserFactory$Build.call(Unknown Source)	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)	at agripedia.BootStrap$_closure1.doCall(BootStrap.groovy:24)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1426)	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1089)	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)	at groovy.lang.Closure.call(Closure.java:414)	at groovy.lang.Closure.call(Closure.java:408)	at grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.java:516)	at grails.util.Environment.executeForEnvironment(Environment.java:509)	at grails.util.Environment.executeForCurrentEnvironment(Environment.java:485)	at org.grails.web.servlet.boostrap.DefaultGrailsBootstrapClass.callInit(DefaultGrailsBootstrapClass.java:62)	at org.grails.web.servlet.context.GrailsConfigUtils.executeGrailsBootstraps(GrailsConfigUtils.java:65)	at org.grails.plugins.web.servlet.context.BootStrapClassRunner.onStartup(BootStrapClassRunner.groovy:53)	at grails.boot.config.GrailsApplicationPostProcessor.onApplicationEvent(GrailsApplicationPostProcessor.groovy:256)	at grails.boot.config.GrailsApplicationPostProcessor.onApplicationEvent(GrailsApplicationPostProcessor.groovy)	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166)	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:383)	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:337)	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:882)	at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:144)	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545)	at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371)	at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)	at grails.boot.GrailsApp.run(GrailsApp.groovy:83)	at grails.boot.GrailsApp.run(GrailsApp.groovy:387)	at grails.boot.GrailsApp.run(GrailsApp.groovy:374)	at grails.boot.GrailsApp$run.call(Unknown Source)	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)	at agripedia.Application.main(Application.groovy:8)