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

Jenkins isn't sending email, also saw NoClassDefFoundError: hudson/tasks/Mailer

      Jenkins has stopped sending emails. In the Config for builds, under Post-Build Actions > Editable Email Notification, an ERROR link when clicked shows the following error:
      javax.servlet.ServletException: java.lang.NoClassDefFoundError: hudson/tasks/Mailer

      Build success emails are not coming through either, though console output for the build says email was triggered: "Email was triggered for: Success
      Sending email for trigger: Success"

          [JENKINS-19083] Jenkins isn't sending email, also saw NoClassDefFoundError: hudson/tasks/Mailer

          Alex Earl added a comment -

          No, you have to "unpin" and then you can uninstall it. Also, what versions of Jenkins, Mailer and email-ext are you using?

          Alex Earl added a comment - No, you have to "unpin" and then you can uninstall it. Also, what versions of Jenkins, Mailer and email-ext are you using?

          Matthew Veno added a comment -

          Jenkins 1.529
          Mailer 1.5
          email-ext 2.32

          Matthew Veno added a comment - Jenkins 1.529 Mailer 1.5 email-ext 2.32

          Matthew Veno added a comment -

          I unpinned Mailer and refreshed the plugins screen, still don't see an uninstall option?

          http://screencast.com/t/Di7RZLp30Ttj

          Matthew Veno added a comment - I unpinned Mailer and refreshed the plugins screen, still don't see an uninstall option? http://screencast.com/t/Di7RZLp30Ttj

          Alex Earl added a comment -

          Strange...I thought you could uninstall once you unpin. If you are feeling adventurous, shutdown Jenkins, remove the mailer directory under $JENKINS_HOME/plugins as well as the jpi/hpi and then try re-installing.

          Alex Earl added a comment - Strange...I thought you could uninstall once you unpin. If you are feeling adventurous, shutdown Jenkins, remove the mailer directory under $JENKINS_HOME/plugins as well as the jpi/hpi and then try re-installing.

          Matthew Veno added a comment -

          hmm, I stopped jenkins, moved the plugins/mailer/ and plugins/mailer.jpi out of the way, started jenkins. The /mailer/ directory and .jpi got recreated and the problem still persists.

          Matthew Veno added a comment - hmm, I stopped jenkins, moved the plugins/mailer/ and plugins/mailer.jpi out of the way, started jenkins. The /mailer/ directory and .jpi got recreated and the problem still persists.

          Alex Earl added a comment -

          Can you try downgrading to 1.4?

          Alex Earl added a comment - Can you try downgrading to 1.4?

          Matthew Veno added a comment -

          I downgraded email-ext to 2.27.1 and now I'm seeing build emails again.

          Matthew Veno added a comment - I downgraded email-ext to 2.27.1 and now I'm seeing build emails again.

          Alex Earl added a comment -

          Have you tried any version in between 2.32 and 2.27.1?

          Alex Earl added a comment - Have you tried any version in between 2.32 and 2.27.1?

          Matthew Veno added a comment -

          No I haven't. That was the version presented as a downgrade option in the manage plugins page.

          Matthew Veno added a comment - No I haven't. That was the version presented as a downgrade option in the manage plugins page.

          Alex Earl added a comment -

          If you're still feeling adventurous, can you try installing the snapshot for 2.33 from here: https://buildhive.cloudbees.com/job/jenkinsci/job/email-ext-plugin/188/org.jenkins-ci.plugins$email-ext/

          Alex Earl added a comment - If you're still feeling adventurous, can you try installing the snapshot for 2.33 from here: https://buildhive.cloudbees.com/job/jenkinsci/job/email-ext-plugin/188/org.jenkins-ci.plugins$email-ext/

            slide_o_mix Alex Earl
            jravetch Jared Ravetch
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: