Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@xdarklight
Copy link
Contributor

The first commit fixes an exception when sending the comment notification mail:

java.lang.RuntimeException: java.lang.IllegalArgumentException: Subject not defined for email template : comment_notification_mail
        at br.com.caelum.vraptor.simplemail.template.DefaultTemplateMail.prepareEmail(DefaultTemplateMail.java:99)
        at br.com.caelum.vraptor.simplemail.template.DefaultTemplateMail.to(DefaultTemplateMail.java:66)
        at org.mamute.notification.NotificationMailer.buildEmail(NotificationMailer.java:72)
        at org.mamute.notification.NotificationMailer.send(NotificationMailer.java:51)
        at org.mamute.notification.NotificationManager$SendNotifications$1.insideRequest(NotificationManager.java:84)
        at org.mamute.notification.NotificationManager$SendNotifications$1.insideRequest(NotificationManager.java:1)
        at org.mamute.components.CDIFakeRequestProvider.insideRequest(CDIFakeRequestProvider.java:30)
        at org.mamute.notification.NotificationManager$SendNotifications.run(NotificationManager.java:77)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException: Subject not defined for email template : comment_notification_mail
        at br.com.caelum.vraptor.simplemail.template.DefaultTemplateMail.prepareEmail(DefaultTemplateMail.java:92)
        ... 10 more

The second commit fixes the subject of the same email.

The subject is automatically generated by vraptor-simplemail by taking
the name of the email template as message key.
By default vraptor-simplemail uses the name of the email template as
message key. It also allows appending message parameters which have to
be given when specifying the template.
This fixes the subject of comment_notification_mail mails.
@felipeweb
Copy link
Contributor

@csokol ok

felipeweb added a commit that referenced this pull request Feb 13, 2016
@felipeweb felipeweb merged commit 69568c2 into caelum:master Feb 13, 2016
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

Successfully merging this pull request may close these issues.

2 participants