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

GitHub | JanKanis | 3 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    ClassPropertyFetcher does not recognize properties that have their second letter capitalized

    GitHub | 3 months ago | JanKanis
    java.lang.IllegalArgumentException: object is not an instance of declaring class
  2. 0

    url constraint does not work in Grails-3.2.2.BUILD-SNAPSHOT

    GitHub | 6 months ago | saw303
    grails.gorm.validation.exceptions.ValidationConfigurationException: Exception thrown applying constraint [url] to class [class grails.issues.Season] for value [true]: java.lang.Boolean cannot be cast to org.apache.commons.validator.routines.UrlValidator
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    NullPointerException when running UnitSpec in Grails

    Google Groups | 7 years ago | Rustem.Suniev
    java.lang.NullPointerException
  6. 0

    Exception when build an object that has unique constraint on integration test

    GitHub | 1 year ago | magnomp
    groovy.lang.MissingMethodException: No signature of method: org.grails.datastore.gorm.validation.constraints.UniqueConstraint$_withManualFlushMode_closure2.doCall() is applicable for argument types: (org.hibernate.internal.SessionImpl) values: [SessionImpl(<closed>)] Possible solutions: doCall(org.grails.datastore.mapping.core.Session), findAll(), findAll(), isCase(java.lang.Object), isCase(java.lang.Object)

    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 groovy.lang.MetaBeanProperty.getProperty()
    2. Groovy
      MetaBeanProperty.getProperty
      1. groovy.lang.MetaBeanProperty.getProperty(MetaBeanProperty.java:62)
      1 frame
    3. Grails
      ConstrainedPropertyBuilder.doInvokeMethod
      1. org.grails.validation.ConstrainedPropertyBuilder.doInvokeMethod(ConstrainedPropertyBuilder.java:74)
      1 frame
    4. Groovy
      BuilderSupport.invokeMethod
      1. groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:67)
      1 frame
    5. mypackage
      TestDomainClass._clinit__closure1
      1. mypackage.TestDomainClass._clinit__closure1(TestDomainClass.groovy:7)
      2. mypackage.TestDomainClass._clinit__closure1(TestDomainClass.groovy)
      2 frames
    6. Groovy
      Closure.call
      1. groovy.lang.Closure.call(Closure.java:414)
      2. groovy.lang.Closure.call(Closure.java:408)
      2 frames
    7. Grails
      GrailsDomainClassValidator.validate
      1. org.grails.validation.DefaultConstraintEvaluator.evaluateConstraintsMap(DefaultConstraintEvaluator.java:239)
      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
    8. Grails GORM
      AbstractHibernateGormInstanceApi.save
      1. org.grails.orm.hibernate.AbstractHibernateGormInstanceApi.save(AbstractHibernateGormInstanceApi.groovy:122)
      1 frame
    9. Grails GORM
      GormEntity$Trait$Helper.save
      1. org.grails.datastore.gorm.GormEntity$Trait$Helper.save(GormEntity.groovy:151)
      1 frame
    10. mypackage
      TestDomainClassSpec.$tt__$spock_feature_1_0
      1. mypackage.TestDomainClassSpec.$tt__$spock_feature_1_0(TestDomainClassSpec.groovy:15)
      1 frame