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

java.lang.NoSuchMethodError: 'jenkins.plugins.mailer.tasks.MimeMessageBuilder jenkins.plugins.mailer.tasks.MimeMessageBuilder.addRecipients(java.lang.String, javax.mail.Message$RecipientType)'

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • mailer-plugin
    • None

      mail subject: 'Test Subject', body: 'Test Body', to: 'manideep.ellur@cashfree.com'

       

      The above simple script is giving me the below error:
      java.lang.NoSuchMethodError: 'jenkins.plugins.mailer.tasks.MimeMessageBuilder jenkins.plugins.mailer.tasks.MimeMessageBuilder.addRecipients(java.lang.String, javax.mail.Message$RecipientType)'
      at org.jenkinsci.plugins.workflow.steps.MailStep$MailStepExecution.buildMimeMessage(MailStep.java:166)
      at org.jenkinsci.plugins.workflow.steps.MailStep$MailStepExecution.run(MailStep.java:141)
      at org.jenkinsci.plugins.workflow.steps.MailStep$MailStepExecution.run(MailStep.java:128)
      at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      at java.base/java.lang.Thread.run(Thread.java:829)

      It was working fine till yesterday but suddenly started failing with the above error.

       

      Plugin Used: Mailer PluginVersion438.v02c7f0a_12fa_4

      Jenkins Version:  Jenkins 2.372

       

      Kindly help in resolving the same,

       

            alecharp Adrien Lecharpentier
            ellurm Manideep Ellur
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: