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

Stack Overflow | Abraham | 4 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Grails 3.2.4 refuses to save domain instance: java.lang.IllegalArgumentException: object is not an instance of declaring class

    Stack Overflow | 4 months ago | Abraham
    java.lang.IllegalArgumentException: object is not an instance of declaring class
  2. 0

    GWT Plugin 1.0-SNAPSHOT. Grails 2 -> 2.3+ compatibility

    Google Groups | 3 years ago | David Dawson
    groovy.lang.MissingPropertyException: No such property: absolutePath for class: java.lang.String
  3. 0

    java.lang.ClassNotFoundException: com.sun.enterprise.web.WebConnector on 2nd run

    GitHub | 4 years ago | robertoschwald
    java.lang.LinkageError: injection failed on class com.sun.enterprise.web.WebContainer from org.codehaus.groovy.grails.cli.support.GrailsRootLoader@424de67
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Having a constraint for an property called "attributes" fails

    GitHub | 10 months ago | mburak
    org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.grails.datastore.gorm.neo4j.Neo4jDatastore]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: object is not an instance of declaring class
  6. 0

    spring - JBoss AS 7.1 JNDI remote connection - Stack Overflow

    xluat.com | 2 years ago
    org.apache.catalina.LifecycleException: Failed to initialize component [StandardServer[-1]]

  1. johnxfly 2 times, last 2 months ago
  2. Pilleo 1 times, last 2 months ago
  3. musketyr 4 times, last 2 months ago
  4. Aria Pahlavan 16 times, last 5 months ago
  5. kjhdofjosvs 2 times, last 6 months ago
9 more registered users
72 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    object is not an instance of declaring class

    at sun.reflect.NativeMethodAccessorImpl.invoke0()
  2. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  3. Springloaded
    ReflectiveInterceptor.jlrMethodInvoke
    1. org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1426)
    1 frame
  4. Groovy
    MetaClassImpl.invokeMethod
    1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
    2. groovy.lang.MetaBeanProperty.getProperty(MetaBeanProperty.java:62)
    3. groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1245)
    4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1217)
    5. groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
    6. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
    7. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:812)
    7 frames
  5. Grails
    ConstrainedPropertyBuilder.doInvokeMethod
    1. org.grails.validation.ConstrainedPropertyBuilder.doInvokeMethod(ConstrainedPropertyBuilder.java:74)
    1 frame
  6. Groovy
    AbstractCallSite.callCurrent
    1. groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:67)
    2. org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeOnDelegationObjects(ClosureMetaClass.java:446)
    3. org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:369)
    4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
    5. org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
    6. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
    6 frames
  7. UserManage
    User$__clinit__closure2.doCall
    1. UserManage.User$__clinit__closure2.doCall(User.groovy:79)
    2. UserManage.User$__clinit__closure2.doCall(User.groovy)
    2 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  9. Springloaded
    ReflectiveInterceptor.jlrMethodInvoke
    1. org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1426)
    1 frame
  10. Groovy
    Closure.call
    1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
    2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
    3. org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
    4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
    5. groovy.lang.Closure.call(Closure.java:414)
    5 frames
  11. UserManage
    User$__clinit__closure2.call
    1. UserManage.User$__clinit__closure2.call(User.groovy)
    1 frame
  12. Groovy
    Closure.call
    1. groovy.lang.Closure.call(Closure.java:408)
    1 frame
  13. UserManage
    User$__clinit__closure2.call
    1. UserManage.User$__clinit__closure2.call(User.groovy)
    1 frame
  14. Grails
    GrailsDomainClassValidator.validate
    1. org.grails.validation.DefaultConstraintEvaluator.evaluateConstraintsMap(DefaultConstraintEvaluator.java:240)
    2. org.grails.validation.DefaultConstraintEvaluator.evaluateConstraints(DefaultConstraintEvaluator.java:132)
    3. org.grails.validation.DefaultConstraintEvaluator.evaluateConstraints(DefaultConstraintEvaluator.java:119)
    4. org.grails.validation.DefaultConstraintEvaluator.evaluate(DefaultConstraintEvaluator.java:108)
    5. org.grails.core.DefaultGrailsDomainClass.initializeConstraints(DefaultGrailsDomainClass.java:755)
    6. org.grails.core.DefaultGrailsDomainClass.getConstrainedProperties(DefaultGrailsDomainClass.java:746)
    7. org.grails.validation.GrailsDomainClassValidator.validate(GrailsDomainClassValidator.java:76)
    7 frames
  15. Grails GORM
    AbstractHibernateGormInstanceApi.save
    1. org.grails.orm.hibernate.AbstractHibernateGormInstanceApi.save(AbstractHibernateGormInstanceApi.groovy:122)
    1 frame
  16. Grails GORM
    GormEntity$Trait$Helper$save$5.call
    1. org.grails.datastore.gorm.GormInstanceApi.save(GormInstanceApi.groovy:116)
    2. org.grails.datastore.gorm.GormEntity$Trait$Helper.save(GormEntity.groovy:98)
    3. org.grails.datastore.gorm.GormEntity$Trait$Helper$save$5.call(Unknown Source)
    3 frames
  17. Groovy
    AbstractCallSite.call
    1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
    2. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
    3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
    3 frames
  18. UserManage
    User.save
    1. UserManage.User.save(User.groovy)
    2. UserManage.User.save(User.groovy)
    2 frames
  19. Grails GORM
    GormEntity$save$0.call
    1. org.grails.datastore.gorm.GormEntity$save$0.call(Unknown Source)
    1 frame
  20. Groovy
    AbstractCallSite.call
    1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
    2. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
    3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
    3 frames
  21. groovy.Factories
    UserFactory$Build.call
    1. groovy.Factories.UserFactory.Build(UserFactory.groovy:18)
    2. groovy.Factories.UserFactory$Build.call(Unknown Source)
    2 frames
  22. Groovy
    AbstractCallSite.call
    1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
    2. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
    3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
    3 frames
  23. agripedia
    BootStrap$_closure1.doCall
    1. agripedia.BootStrap$_closure1.doCall(BootStrap.groovy:24)
    1 frame
  24. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  25. Springloaded
    ReflectiveInterceptor.jlrMethodInvoke
    1. org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1426)
    1 frame
  26. Groovy
    Closure.call
    1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
    2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
    3. org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
    4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
    5. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1089)
    6. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
    7. groovy.lang.Closure.call(Closure.java:414)
    8. groovy.lang.Closure.call(Closure.java:408)
    8 frames
  27. Grails
    Environment.executeForCurrentEnvironment
    1. grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.java:516)
    2. grails.util.Environment.executeForEnvironment(Environment.java:509)
    3. grails.util.Environment.executeForCurrentEnvironment(Environment.java:485)
    3 frames
  28. org.grails.web
    GrailsConfigUtils.executeGrailsBootstraps
    1. org.grails.web.servlet.boostrap.DefaultGrailsBootstrapClass.callInit(DefaultGrailsBootstrapClass.java:62)
    2. org.grails.web.servlet.context.GrailsConfigUtils.executeGrailsBootstraps(GrailsConfigUtils.java:65)
    2 frames
  29. org.grails.plugins
    BootStrapClassRunner.onStartup
    1. org.grails.plugins.web.servlet.context.BootStrapClassRunner.onStartup(BootStrapClassRunner.groovy:53)
    1 frame
  30. Grails
    GrailsApplicationPostProcessor.onApplicationEvent
    1. grails.boot.config.GrailsApplicationPostProcessor.onApplicationEvent(GrailsApplicationPostProcessor.groovy:256)
    2. grails.boot.config.GrailsApplicationPostProcessor.onApplicationEvent(GrailsApplicationPostProcessor.groovy)
    2 frames
  31. Spring Context
    AbstractApplicationContext.finishRefresh
    1. org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166)
    2. org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)
    3. org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:383)
    4. org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:337)
    5. org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:882)
    5 frames
  32. Spring Boot
    EmbeddedWebApplicationContext.finishRefresh
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:144)
    1 frame
  33. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545)
    1 frame
  34. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
    2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)
    3. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371)
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
    4 frames
  35. Grails
    GrailsApp$run.call
    1. grails.boot.GrailsApp.run(GrailsApp.groovy:83)
    2. grails.boot.GrailsApp.run(GrailsApp.groovy:387)
    3. grails.boot.GrailsApp.run(GrailsApp.groovy:374)
    4. grails.boot.GrailsApp$run.call(Unknown Source)
    4 frames
  36. Groovy
    AbstractCallSite.call
    1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
    2. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
    3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
    3 frames
  37. agripedia
    Application.main
    1. agripedia.Application.main(Application.groovy:8)
    1 frame