Open wureka opened 5 years ago
This seems to be problem of Grails mail plugin - see workaround in issue #36
Eventually, I solved this problem. I checkout your code from GitHub. And then modified code as below. I realized the problem is caused by Grails 4.0. Please refer to https://github.com/grails/grails-core/issues/11376
class AsynchronousMailPersistenceService {
AsynchronousMailConfigService asynchronousMailConfigService
@CompileStatic
AsynchronousMailMessage save(
AsynchronousMailMessage message, boolean flush, boolean validate
) {
AsynchronousMailMessage msg
AsynchronousMailMessage.withTransaction {
msg = message.save(flush: flush, failOnError: true, validate: validate)
}
return msg
// below is the original line
// return message.save(flush: flush, failOnError: true, validate: validate)
}
Hi @wureka, I believe your solution is more related to issue #91 than this one.