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

Could not send email after upgrade. groovy.lang.MissingMethodException: No signature of method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • email-ext-plugin
    • None
    • Jenkins 2.405, Email Extension Plugin Version 2.97

      The following error occurs at post-processing my freestyle build. Please advice.

      Email was triggered for: Always
      Sending email for trigger: Always
      groovy.lang.MissingMethodException: No signature of method: jakarta.mail.internet.MimeMessage.getRecipients() is applicable for argument types: (javax.mail.Message$RecipientType) values: [To]
      Possible solutions: getRecipients(jakarta.mail.Message$RecipientType), getRecipients(jakarta.mail.Message$RecipientType), setRecipients(jakarta.mail.Message$RecipientType, [Ljakarta.mail.Address, setRecipients(jakarta.mail.Message$RecipientType, [Ljakarta.mail.Address, setRecipients(jakarta.mail.Message$RecipientType, java.lang.String), getAllRecipients()
      at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)
      at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:48)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
      at Script1.run(Script1.groovy:1)
      at hudson.plugins.emailext.ExtendedEmailPublisher.executeScript(ExtendedEmailPublisher.java:728)
      at hudson.plugins.emailext.ExtendedEmailPublisher.executePresendScript(ExtendedEmailPublisher.java:677)
      at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:527)
      at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:484)
      at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:385)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:767)
      at hudson.model.Build$BuildExecution.cleanUp(Build.java:189)
      at hudson.model.Run.execute(Run.java:1947)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
      at hudson.model.ResourceController.execute(ResourceController.java:101)
      at hudson.model.Executor.run(Executor.java:442)

            Unassigned Unassigned
            jps123 John Philip
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: