Human task mail notifications failing due to invalid email address in BPMS 6.0

Solution Unverified - Updated -

Issue

We are using human task mail notifications through mail configuration given in jBPM human task node, using the email addresses defined in userinfo.properties. This works in general, but fails in case one of the email addresses of the recipients is invalid. We are not able to send mail notifications to the other recipients, even if their email addresses are correct.

The mail notification is failing with the following error:

ERROR [stderr] (pool-24-thread-1) javax.mail.SendFailedException: Invalid Addresses;
ERROR [stderr] (pool-24-thread-1)   nested exception is:
ERROR [stderr] (pool-24-thread-1)  com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <invalid-address@domain.com>... User unknown
ERROR [stderr] (pool-24-thread-1)
ERROR [stderr] (pool-24-thread-1)  at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1873)
ERROR [stderr] (pool-24-thread-1)  at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1120)
ERROR [stderr] (pool-24-thread-1)  at javax.mail.Transport.send0(Transport.java:195)
ERROR [stderr] (pool-24-thread-1)  at javax.mail.Transport.send(Transport.java:124)
ERROR [stderr] (pool-24-thread-1)  at org.jbpm.services.task.deadlines.notifications.impl.email.EmailNotificationListener.onNotification(EmailNotificationListener.java:188)
ERROR [stderr] (pool-24-thread-1)  at org.jbpm.services.task.commands.ExecuteDeadlinesCommand.execute(ExecuteDeadlinesCommand.java:140)
ERROR [stderr] (pool-24-thread-1)  at org.jbpm.services.task.commands.ExecuteDeadlinesCommand.execute(ExecuteDeadlinesCommand.java:41)
ERROR [stderr] (pool-24-thread-1)  at org.jbpm.services.task.commands.TaskCommandExecutorImpl$SelfExecutionCommandService.execute(TaskCommandExecutorImpl.java:65)
ERROR [stderr] (pool-24-thread-1)  at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
ERROR [stderr] (pool-24-thread-1)  at org.jbpm.services.task.persistence.TaskTransactionInterceptor.execute(TaskTransactionInterceptor.java:54)
ERROR [stderr] (pool-24-thread-1)  at org.jbpm.services.task.commands.TaskCommandExecutorImpl.execute(TaskCommandExecutorImpl.java:40)
ERROR [stderr] (pool-24-thread-1)  at org.jbpm.services.task.impl.TaskDeadlinesServiceImpl$TaskDeadlineJob.execute(TaskDeadlinesServiceImpl.java:307)
ERROR [stderr] (pool-24-thread-1)  at org.drools.core.time.SelfRemovalJob.execute(SelfRemovalJob.java:19)
ERROR [stderr] (pool-24-thread-1)  at org.drools.core.time.impl.DefaultTimerJobInstance.call(DefaultTimerJobInstance.java:54)
ERROR [stderr] (pool-24-thread-1)  at org.drools.persistence.jpa.JpaTimerJobInstance.internalCall(JpaTimerJobInstance.java:43)
ERROR [stderr] (pool-24-thread-1)  at org.drools.persistence.jpa.JDKCallableJobCommand.execute(JDKCallableJobCommand.java:20)
ERROR [stderr] (pool-24-thread-1)  at org.drools.persistence.jpa.JDKCallableJobCommand.execute(JDKCallableJobCommand.java:6)
ERROR [stderr] (pool-24-thread-1)  at org.drools.core.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)
ERROR [stderr] (pool-24-thread-1)  at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
ERROR [stderr] (pool-24-thread-1)  at org.drools.persistence.SingleSessionCommandService$TransactionInterceptor.execute(SingleSessionCommandService.java:533)
ERROR [stderr] (pool-24-thread-1)  at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)
ERROR [stderr] (pool-24-thread-1)  at org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:73)
ERROR [stderr] (pool-24-thread-1)  at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:377)
ERROR [stderr] (pool-24-thread-1)  at org.jbpm.process.core.timer.impl.GlobalTimerService$DisposableCommandService.execute(GlobalTimerService.java:280)
ERROR [stderr] (pool-24-thread-1)  at org.jbpm.persistence.timer.GlobalJpaTimerJobInstance.call(GlobalJpaTimerJobInstance.java:62)
ERROR [stderr] (pool-24-thread-1)  at org.jbpm.persistence.timer.GlobalJpaTimerJobInstance.call(GlobalJpaTimerJobInstance.java:42)
ERROR [stderr] (pool-24-thread-1)  at java.util.concurrent.FutureTask.run(FutureTask.java:262)
ERROR [stderr] (pool-24-thread-1)  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
ERROR [stderr] (pool-24-thread-1)  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
ERROR [stderr] (pool-24-thread-1)  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
ERROR [stderr] (pool-24-thread-1)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
ERROR [stderr] (pool-24-thread-1)  at java.lang.Thread.run(Thread.java:744)
ERROR [stderr] (pool-24-thread-1) Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 <invalid-address@domain.com>... User unknown
ERROR [stderr] (pool-24-thread-1)
ERROR [stderr] (pool-24-thread-1)  at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1724)
ERROR [stderr] (pool-24-thread-1)  ... 31 more

Is there a setting to ensure that notifications are sent to the other recipients, despite one email address being invalid?

Environment

  • Red Hat JBoss BPM Suite
    • 6.0.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.