Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade plugin for grails 2.5.0 #7

Open
samuelzyx opened this issue Apr 27, 2015 · 1 comment
Open

Upgrade plugin for grails 2.5.0 #7

samuelzyx opened this issue Apr 27, 2015 · 1 comment

Comments

@samuelzyx
Copy link

It's don't work in grails 2.4.* and grails 2.5.0

exception.ExceptionHandler could not send email after exception
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'null' with class 'null' to class 'int'. Try 'java.lang.Integer' instead
at org.chai.exception.ExceptionHandler$_resolveException_closure2.doCall(ExceptionHandler.groovy:65)
at grails.plugin.mail.MailService.sendMail(MailService.groovy:53)
at grails.plugin.mail.MailService.sendMail(MailService.groovy:59)

just right here

class ExceptionHandler extends GrailsExceptionResolver {
try {
mailService.sendMail {
....
html g.renderException(exception: exception) //cast null to integer
}
} catch (Exception e) {
if (log.errorEnabled) log.error("could not send email after exception", e)
}
}

@confile
Copy link

confile commented Sep 10, 2015

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants