org.springframework.dao.InvalidDataAccessResourceUsageException

Cannot query [org.grails.Book] on non-existent property: description

Solutions on the web65

  • Cannot query [org.grails.Book] on non-existent property: description
  • Cannot query [joda.test.Person] on non-existent property: dateCreated
  • Cannot query [br.com.fisgo.financial.Account] on non-existent property: owner
  • Stack trace

    • org.springframework.dao.InvalidDataAccessResourceUsageException: Cannot query [org.grails.Book] on non-existent property: description at org.grails.datastore.mapping.simple.query.SimpleMapQuery.getValidProperty(SimpleMapQuery.groovy:751) at org.grails.datastore.mapping.simple.query.SimpleMapQuery.executeSubQueryInternal(SimpleMapQuery.groovy:690) at org.grails.datastore.mapping.simple.query.SimpleMapQuery.executeSubQuery(SimpleMapQuery.groovy:676) at org.grails.datastore.mapping.simple.query.SimpleMapQuery.executeQuery(SimpleMapQuery.groovy:63) at org.grails.datastore.mapping.query.Query.list(Query.java:567) at org.grails.datastore.mapping.query.Query.singleResult(Query.java:585) at grails.gorm.DetachedCriteria.get_closure2(DetachedCriteria.groovy:853) at grails.gorm.DetachedCriteria.withPopulatedQuery_closure10(DetachedCriteria.groovy:1248) at groovy.lang.Closure.call(Closure.java:414) at groovy.lang.Closure.call(Closure.java:430) at org.grails.datastore.gorm.GormStaticApi.withDatastoreSession_closure23(GormStaticApi.groovy:736) at groovy.lang.Closure.call(Closure.java:414) at org.grails.datastore.mapping.core.DatastoreUtils.execute(DatastoreUtils.java:310) at org.grails.datastore.gorm.AbstractDatastoreApi.execute(AbstractDatastoreApi.groovy:37) at org.grails.datastore.gorm.GormStaticApi.withDatastoreSession(GormStaticApi.groovy:735) at org.grails.datastore.gorm.GormEntity$Trait$Helper.withDatastoreSession(GormEntity.groovy:895) at grails.gorm.DetachedCriteria.withPopulatedQuery(DetachedCriteria.groovy:1219) at grails.gorm.DetachedCriteria.get(DetachedCriteria.groovy:852) at grails.gorm.DetachedCriteria.get(DetachedCriteria.groovy:851)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.