Email Extension Plugin -2.51 Crashes with Java.NoSuchMethodError

35 views
Skip to first unread message

Bubunia Patra

unread,
Oct 22, 2016, 11:34:43 PM10/22/16
to Jenkins Users
Hi ,

I have installed the Email-Ext plugin 2.51 and it continuously crashing with the below error [1], In Some of the jenkins servers we have 2.4.13 and it works without any issues? Is there a way we have fix this issue or downgrade to 2.4.13 or reinstall to without any other issues. The job is successful but email is not getting triggered. Can anyone help in fixing the issue or any workaround?

Jenkins Version from /var/lib/jenkins/config.xml:

  <version>1.617</version>

Jenkins Job Parameters:
====================
Extension-Email Plugin Parameters in the Job:

Recipient-List : bubunia...@gmail.com

Project Reply-To List : $PROJECT_DEFAULT_REPLYTO
Content-Type: HTML/text
Default-Subject: $PROJECT_DEFAULT_SUBJECT
Default-Content: ${SCRIPT,template="jenkins-html.template"}       ---> I downloaded the template from https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin#Email-extplugin-TemplateExamples
Attach Build Log : Attach Build Log
Pre-send Script : Blank
Post-send Script : Blank
Save to WorkSpace : Unchecked

Success Trigger is enabled.


[1]
Archiving artifacts
Recording fingerprints
Recording test results
Email was triggered for: Success
Sending email for trigger: Success
ERROR: Publisher 'Editable Email Notification' aborted due to exception: 
java.lang.NoSuchMethodError: org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(Lhudson/model/Run;Lhudson/FilePath;Lhudson/model/TaskListener;Ljava/lang/String;ZLjava/util/List;)Ljava/lang/String;
	at hudson.plugins.emailext.plugins.ContentBuilder.transformText(ContentBuilder.java:80)
	at hudson.plugins.emailext.ExtendedEmailPublisher.setSubject(ExtendedEmailPublisher.java:706)
	at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:595)
	at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:355)
	at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:345)
	at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:253)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
	at hudson.model.Build$BuildExecution.cleanUp(Build.java:195)
	at hudson.model.Run.execute(Run.java:1791)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:374)
Finished: SUCCESS


This plugin is a replacement for Jenkins's email publisher
2.51


Bubunia Patra

unread,
Oct 23, 2016, 12:36:13 AM10/23/16
to Jenkins Users
The problem is resolved by installing 2.41.3. So its a bug with the latest version(2.51) of Email-Ext plugin.

Slide

unread,
Oct 23, 2016, 1:16:17 AM10/23/16
to Jenkins Users
Looks like you need to update your version of Token Macro as well. 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ef7c00a3-731b-4fcf-aa11-667fead2d2f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages