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

ERROR exception.ExceptionHandler - could not send email after exception Message: Cannot cast object 'null' with class 'null' to class 'int'. Try 'java.lang.Integer' instead #8

Open
confile opened this issue Sep 10, 2015 · 1 comment

Comments

@confile
Copy link

confile commented Sep 10, 2015

I use Grails 2.4.5 and the plugin 0.1.1.:

Here is my URL mapping:

      "403"(controller: "errors", action: "error403")
      "404"(controller: "errors", action: "error404")
      "500"(controller: "errors", action: "error500")
      "500"(controller: "errors", action: "error403",
            exception: AccessDeniedException)
      "500"(controller: "errors", action: "error403",
            exception: NotFoundException)

here is my Config.groovy

mailOnException.email.to = [email protected]
mailOnException.email.from = [email protected]

BuildConfig.groovy

        compile ":mail:1.0.7"
        compile ":asynchronous-mail:1.2"
        compile ":mail-on-exception:0.1.1"

When I create an Exception (500) I get the following error:

Message: Cannot cast object 'null' with class 'null' to class 'int'. Try 'java.lang.Integer' instead
    Line | Method
->>   65 | doCall               in org.chai.exception.ExceptionHandler$_resolveException_closure2
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|     21 | sendAsynchronousMail in grails.plugin.asyncmail.AsynchronousMailService
|    128 | doCall . . . . . . . in AsynchronousMailGrailsPlugin$_configureSendMail_closure8
|     60 | resolveException     in org.chai.exception.ExceptionHandler
|    198 | doFilter . . . . . . in grails.plugin.cache.web.filter.PageFragmentCachingFilter
|     63 | doFilter             in grails.plugin.cache.web.filter.AbstractFilter
|     53 | doFilter . . . . . . in grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter
|     62 | doFilter             in grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter
|     46 | doFilterInternal . . in org.grails.jaxrs.web.JaxrsFilter
|   1145 | runWorker            in java.util.concurrent.ThreadPoolExecutor
|    615 | run . . . . . . . .  in java.util.concurrent.ThreadPoolExecutor$Worker
^    745 | run                  in java.lang.Thread
Error |
@confile
Copy link
Author

confile commented Sep 10, 2015

@fterrier Is there any workaround?

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

1 participant