I'm getting the NoSuchMethodError
on createCriteria
method in Grails. I don't know somehow it is not recognizing the method. I have the createCriteria
in other projects, but it is not working here.
Domain.where { }
Above is also not working. Here is my code:
def res = Employee.createCriteria().list {
or {
eq('validOn',date)
eq('day',day)
}
}
println "res"+res
I'm getting this error:
Caused by: java.lang.NoSuchMethodError: in.aoo.EmployeeController$_chefPackaging_closure12.<init>(Ljava/lang/Object;Ljava/lang/Object;Lgroovy/lang/Reference;Lgroovy/lang/Reference;)