Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,460,112
Community Members
 
Community Events
176
Community Groups

Error when sending mail with Jira

Edited

Hi everyone,

 

We currently have some issue with notification with our Jira system. 

First it seems there are no notification sent for some projects, which share the same notification scheme as projects with notification (please see https://community.atlassian.com/t5/Jira-Service-Management/Users-do-not-receive-notification-from-some-projects/qaq-p/2059690?utm_source=dm&utm_medium=unpaid-social&utm_campaign=P:online*O:community*I:social_share* for more).

Second, which is why I make this post, is some notification do appear in the Jira mailing log but with error.

Here is a message error we can find in the log : 

  • 2022-06-21 15:54:00,019+0200 ERROR [] Sending mailitem To='xxx@xxx.fr' Subject='Votre ticket GEODE-209 est en cours de traitement par ' From='xxx@xxx.fr' FromName='null' Cc='' Bcc='' ReplyTo='null' InReplyTo='xxxx@xxxx.fr' MimeType='text/plain' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@5fbfe289' MessageId='null' ExcludeSubjectPrefix=false' anonymous    Mail Queue Service [c.a.mail.queue.MailQueueImpl] Error occurred in sending e-mail: To='xxxx@xxxx.fr' Subject='Votre ticket GEODE-209 est en cours de traitement par ' From='xxxx@xxx.fr' FromName='null' Cc='' Bcc='' ReplyTo='null' InReplyTo='nxx@xxxx.fr' MimeType='text/plain' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@5fbfe289' MessageId='null' ExcludeSubjectPrefix=false'com.atlassian.mail.MailException: javax.mail.MessagingException: IOException while sending message;      nested exception is:        java.io.IOException: Exception writing Multipart        at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:224) [atlassian-mail-5.1.0.jar:?]        at com.atlassian.mail.queue.SingleMailQueueItem.send(SingleMailQueueItem.java:38) [atlassian-mail-5.1.0.jar:?]        at com.atlassian.mail.queue.MailQueueImpl.sendBufferUnderLock(MailQueueImpl.java:83) [atlassian-mail-5.1.0.jar:?]        at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:47) [atlassian-mail-5.1.0.jar:?]        at com.atlassian.jira.mail.JiraMailQueue.lambda$sendBuffer$0(JiraMailQueue.java:49) [classes/:?]        at com.atlassian.jira.util.velocity.DefaultVelocityRequestContextFactory.runWithStaticBaseUrl(DefaultVelocityRequestContextFactory.java:110) [classes/:?]        at com.atlassian.jira.util.DefaultBaseUrl.runWithStaticBaseUrl(DefaultBaseUrl.java:56) [classes/:?]        at com.atlassian.jira.mail.JiraMailQueue.sendBuffer(JiraMailQueue.java:48) [classes/:?]        at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:21) [classes/:?]        at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:68) [classes/:?]        at com.atlassian.jira.service.ServiceRunner.runService(ServiceRunner.java:62) [classes/:?]        at com.atlassian.jira.service.ServiceRunner.runServiceId(ServiceRunner.java:44) [classes/:?]        at com.atlassian.jira.service.ServiceRunner.runJob(ServiceRunner.java:32) [classes/:?]        at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:134) [atlassian-scheduler-core-3.0.0.jar:?]        at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:106) [atlassian-scheduler-core-3.0.0.jar:?]        at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:90) [atlassian-scheduler-core-3.0.0.jar:?]        at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:435) [atlassian-scheduler-caesium-3.0.2.jar:?]        at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeLocalJob(CaesiumSchedulerService.java:402) [atlassian-scheduler-caesium-3.0.2.jar:?]        at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:380) [atlassian-scheduler-caesium-3.0.2.jar:?]        at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:66) [atlassian-scheduler-caesium-3.0.2.jar:?]        at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:60) [atlassian-scheduler-caesium-3.0.2.jar:?]        at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:35) [atlassian-scheduler-caesium-3.0.2.jar:?]        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275]Caused by: javax.mail.MessagingException: IOException while sending message;      nested exception is:        java.io.IOException: Exception writing Multipart        at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1350) [jakarta.mail-1.6.5.jar:1.6.5]        at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendMimeMessage(SMTPMailServerImpl.java:242) [atlassian-mail-5.1.0.jar:?]        at com.atlassian.mail.server.managers.EventAwareSMTPMailServer.sendMimeMessage(EventAwareSMTPMailServer.java:30) [classes/:?]        at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:198) [atlassian-mail-5.1.0.jar:?]        ... 22 moreCaused by: java.io.IOException: Exception writing Multipart        at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:68) [jakarta.mail-1.6.5.jar:1.6.5]        at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:889) [?:1.8.0_275]        at javax.activation.DataHandler.writeTo(DataHandler.java:317) [?:1.8.0_275]        at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1670) [jakarta.mail-1.6.5.jar:1.6.5]        at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1880) [jakarta.mail-1.6.5.jar:1.6.5]        at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1300) [jakarta.mail-1.6.5.jar:1.6.5]        ... 25 moreCaused by: javax.mail.MessagingException: Empty multipart: multipart/mixed;        boundary="----=_Part_301_410722151.1655819297082"        at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:532) [jakarta.mail-1.6.5.jar:1.6.5]        at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:66) [jakarta.mail-1.6.5.jar:1.6.5]        ... 30 more

I found some clue about an issue with empty body tag in multipart on stackoverflow (https://stackoverflow.com/questions/13951322/javamail-email-commons-empty-message-gives-strange-error) but it's from 10 years ago so I think such an issue should be fixed, and it does not explain why I get these errors only with some projects.

 

Does anyone have an idea ?

 

Regards

1 answer

Hi,

 

Nobody has any idea ? :(

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events