Message: Cannot cast object 'grails.plugin.asyncmail.AsynchronousMailMessage(id:206, to:[te...@temp.com], subject:Registration Activation, status:CREATED)' with class 'grails.plugin.asyncmail.AsynchronousMailMessage' to class 'org.springframework.mail.MailMessage'
--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-disc...@googlegroups.com.
To post to this group, send email to grails-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/6a6112e1-e830-4e42-8f62-b746fa0fe548%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
2015-08-14 08:00:37,591 [ForkJoinPool-5-worker-1] ERROR asyncmail.AsynchronousMailProcessService - Abort mail sent.
Message: Cannot cast object 'grails.plugin.asyncmail.AsynchronousMailMessage(id:329, to:[te...@temp.com], subject:Registration Activation, status:CREATED)' with class 'grails.plugin.asyncmail.AsynchronousMailMessage' to class 'org.springframework.mail.MailMessage'
Line | Method
->> 12 | send in grails.plugin.asyncmail.AsynchronousMailSendService
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 45 | invoke in com.linkedin.grails.profiler.ProfilerMethodInterceptor
| 73 | processEmailMessage in grails.plugin.asyncmail.AsynchronousMailProcessService
| 30 | doCall in grails.plugin.asyncmail.AsynchronousMailProcessService$_findAndSendEmails_closure1$_closure2
| 192 | doCall . . . . . . in groovyx.gpars.pa.GParsPoolUtilHelper$_eachParallelPA_closure8
| 640 | leafApply in groovyx.gpars.extra166y.AbstractParallelAnyArray$OUPap
| 147 | atLeaf . . . . . . in groovyx.gpars.extra166y.PAS$FJOApply
| 108 | compute in groovyx.gpars.extra166y.PAS$FJBase
| 148 | exec . . . . . . . in jsr166y.RecursiveAction
| 305 | doExec in jsr166y.ForkJoinTask
| 575 | execTask . . . . . in jsr166y.ForkJoinWorkerThread
| 755 | scan in jsr166y.ForkJoinPool
| 617 | work . . . . . . . in ''
^ 369 | run in jsr166y.ForkJoinWorkerThread
MailMessage send(AsynchronousMailMessage message) {
return nonAsynchronousMailService.sendMail {
if (message.attachments) {
multipart true
}
if(message.to && !message.to.isEmpty()){
to message.to
}
subject message.subject
if (message.headers && !message.headers.isEmpty() && isMimeCapable()) {
headers message.headers
}
if (message.html && isMimeCapable()) {
html message.text
} else {
body message.text
}
if (message.bcc && !message.bcc.isEmpty()) {
bcc message.bcc
}
if (message.cc && !message.cc.isEmpty()) {
cc message.cc
}
if (message.replyTo) {
replyTo message.replyTo
}
if (message.from) {
from message.from
}
if(message.envelopeFrom){
envelopeFrom message.envelopeFrom
}
if (isMimeCapable()) {
message.attachments.each {AsynchronousMailAttachment attachment ->
if (!attachment.inline) {
attachBytes attachment.attachmentName, attachment.mimeType, attachment.content
} else {
inline attachment.attachmentName, attachment.mimeType, attachment.content
}
}
}
}
}--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-disc...@googlegroups.com.
To post to this group, send email to grails-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/7811b0d5-fffa-442c-bde0-2d651f77be0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/CAJpE9rVRzSf4Q7dvqGz64H3LdL96tBMVWUca%2Bep6g45JWrY_OA%40mail.gmail.com.
asynchronous.mail.override=false