org.springframework.dao.InvalidDataAccessResourceUsageException: Cannot query [com.epseelon.atr.Flight] on non-existent property: departureDate


Solutions on the web5

Solution icon of stackoverflow
Cannot query [com.epseelon.atr.Flight] on non-existent property: departureDate

Solution icon of github
Cannot query [org.grails.Book] on non-existent property: description

Solution icon of stackoverflow
Cannot query [com.foo.domain.FooDomain] on non-existent property: startAt

Solution icon of github
Cannot query [joda.test.Person] on non-existent property: dateCreated

Solution icon of stackoverflow
Cannot query [br.com.fisgo.financial.Account] on non-existent property: owner

Stack trace

org.springframework.dao.InvalidDataAccessResourceUsageException: Cannot query [com.epseelon.atr.Flight] on non-existent property: departureDate
	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.gorm.finders.FindAllByFinder.invokeQuery(FindAllByFinder.java:49)
	at org.grails.datastore.gorm.finders.FindAllByFinder$1.doInSession(FindAllByFinder.java:43)
	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.FindAllByFinder.doInvokeInternal(FindAllByFinder.java:40)
	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)
	at com.epseelon.atr.FlightService.$tt__search(FlightService.groovy:11)
	at com.epseelon.atr.FlightService.search_closure1(FlightService.groovy)
	at groovy.lang.Closure.call(Closure.java:414)
	at groovy.lang.Closure.call(Closure.java:430)
	at grails.transaction.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:96)
	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
	at grails.transaction.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:93)

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.