Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-53305

javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed;

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • mailer-plugin
    • None
    • Docker image jenkins/jenkins:2.121.2

      Hello

      • Jenkins 2.121.2 (official Docker image)
      • Mailer Plugin 1.21

       

      Sometimes pipelines in Jenkins fails with next exception:

       

      javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed; 
       boundary="----=_Part_232_854096954.1535491539067"
       at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:896)
       at javax.activation.DataHandler.writeTo(DataHandler.java:317)
       at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1476)
       at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1772)
       at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1099)
      Caused: javax.mail.MessagingException: IOException while sending message;
       nested exception is:
       javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed; 
       boundary="----=_Part_232_854096954.1535491539067"
       at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1141)
       at javax.mail.Transport.send0(Transport.java:195)
       at javax.mail.Transport.send(Transport.java:124)
       at org.jenkinsci.plugins.workflow.steps.MailStep$MailStepExecution.run(MailStep.java:142)
       at org.jenkinsci.plugins.workflow.steps.MailStep$MailStepExecution.run(MailStep.java:128)
       at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:50)
       at hudson.security.ACL.impersonate(ACL.java:290)
       at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:47)
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at java.lang.Thread.run(Thread.java:748)
      

       

      Example of pipeline:

      node {
         mail(to: "xxx@example.com", subject: "test", body: "test")
      }
      

       

      Settings:

      • SMTP server: mail.example.com
      • Default user e-mail suffix: @example.com

       

      Restart of Jenkins temporary solve the issue.

       

      Please fix the bug.

      Thank you

        1. stacktrace1.txt
          3 kB
          Steve Arch
        2. stacktrace2.txt
          11 kB
          Steve Arch

            Unassigned Unassigned
            lystor Mykola Ulianytskyi
            Votes:
            7 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated: