MissingMethodException on domain class save in Grails 1.3.7
I'm having a problem calling the save method on a domain object. The error
is:
groovy.lang.MissingMethodException: No signature of method: static
my.awesome.Class.FeedHit.save() is applicable for argument types: ()
values: []
Possible solutions: save(), save(java.lang.Boolean), save(java.util.Map),
wait(), any(), wait(long)
I'm going through an array of FeedHits, updating a flag, and then calling
the save method:
void updateFeedHits(Set<FeedHit> list, FeedHitStatus status) {
for (FeedHit feedHit: list) {
feedHit.status = status
try {
alertHit.save()
} catch (Exception ex) {
log.info("unknown exception during update FeedHit", ex)
}
}
}
I've seen other StackOVerflow users have the same problem, but only during
tests. This code is in normal release code.
Any help would be appreciated.
No comments:
Post a Comment