org.springframework.dao.InvalidDataAccessResourceUsageException

Cannot query [joda.test.Person] on non-existent property: dateCreated

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Stack trace

  • org.springframework.dao.InvalidDataAccessResourceUsageException: Cannot query [joda.test.Person] on non-existent property: dateCreated 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 org.grails.datastore.gorm.finders.AbstractFindByFinder.invokeQuery(AbstractFindByFinder.java:30) at org.grails.datastore.gorm.finders.AbstractFindByFinder$1.doInSession(AbstractFindByFinder.java:24) at org.grails.datastore.mapping.core.DatastoreUtils.execute(DatastoreUtils.java:310) at org.grails.datastore.gorm.finders.AbstractFinder.execute(AbstractFinder.java:41) at org.grails.datastore.gorm.finders.AbstractFindByFinder.doInvokeInternal(AbstractFindByFinder.java:22) at org.grails.datastore.gorm.finders.DynamicFinder.invoke(DynamicFinder.java:157) at org.grails.datastore.gorm.finders.DynamicFinder.invoke(DynamicFinder.java:357) at org.grails.datastore.gorm.GormStaticApi.methodMissing(GormStaticApi.groovy:141) at org.grails.datastore.gorm.GormEntity$Trait$Helper.staticMethodMissing(GormEntity.groovy:745)

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

We couldn't find other users who have seen this exception.