AnsweredAssumed Answered

E-Mail Works on Test, Invite, Recent Activity, but not on Rules?

Question asked by sicknick on Jun 14, 2013
Latest reply on Oct 11, 2013 by malleshwari
I am a bit stuck on this one. I have email set up on Alfresco, and I thought it was running good. I successfully receive the SMTP test message I have set up, I receive site invites, and I get a Recent activity log daily. I recently set up some rules on a few folders that would email a recipient when something is dropped into that folder. I realized it wasn't happening and I checked the logs.

This is what I see in my log when a email rule is executed:


11:59:01,409 ERROR [org.alfresco.repo.transaction.AlfrescoTransactionSupport] After completion (committed) listener exception:
   listener: org.alfresco.repo.action.executer.MailActionExecuter$1@5186c41d
java.lang.NullPointerException
   at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:557)
   at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:416)
   at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:340)
   at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:336)
   at org.alfresco.repo.action.executer.MailActionExecuter.sendEmail(MailActionExecuter.java:632)
   at org.alfresco.repo.action.executer.MailActionExecuter.access$100(MailActionExecuter.java:71)
   at org.alfresco.repo.action.executer.MailActionExecuter$1$1.execute(MailActionExecuter.java:326)
   at org.alfresco.repo.action.executer.MailActionExecuter$1$1.execute(MailActionExecuter.java:320)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433)
   at org.alfresco.repo.action.executer.MailActionExecuter$1.afterCommit(MailActionExecuter.java:319)
   at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionSynchronizationImpl.afterCompletion(AlfrescoTransactionSupport.java:829)
   at org.springframework.transaction.support.TransactionSynchronizationUtils.invokeAfterCompletion(TransactionSynchronizationUtils.java:168)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.invokeAfterCompletion(AbstractPlatformTransactionManager.java:996)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerAfterCompletion(AbstractPlatformTransactionManager.java:971)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:799)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723)
   at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:393)
   at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:472)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:455)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:304)
   at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1.doWork(AsynchronousActionExecutionQueueImpl.java:414)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:529)
   at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:417)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:722)


My email configuration looks like this:


# Outbound Email Configuration
#————-
mail.host=mail.mydomain.com
mail.port=25
mail.username=Share
mail.password=mypassword
mail.encoding=UTF-8
mail.from.default=Share@mydomain.com
mail.smtp.auth=true
mail.smtp.timeout=100000


My email server is Microsoft Exchange 2010 and I have it set up with relay. I am just confused as to what is so different about an email rule and every other email. It's strange that other emails don't give an error and go through.

Outcomes