Hudson电子邮件扩展失败,“服务器和客户端均不支持身份验证机制”

时间:2013-02-11 12:59:45

标签: email hudson

将Hudson从2升级到3并在Tomcat中运行后,其电子邮件扩展名不再发送电子邮件并因错误而失败(即使在“mechansims”一词中有拼写错误:))

ERROR: No authentication mechansims supported by both server and client
javax.mail.AuthenticationFailedException: No authentication mechansims supported by both server and client
    at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:756)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:669)
    at javax.mail.Service.connect(Service.java:317)
    at hudson.tasks.Mailer$DescriptorImpl.send(Mailer.java:505)
    at hudson.tasks.Mailer$DescriptorImpl.send(Mailer.java:476)
    at hudson.tasks.MailSender.execute(MailSender.java:91)
    at hudson.tasks.Mailer.perform(Mailer.java:112)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:34)
    at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:646)
    at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:624)
    at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:600)
    at hudson.model.Build$RunnerImpl.post2(Build.java:163)
    at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:566)
    at hudson.model.Run.run(Run.java:1414)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:40)
    at hudson.model.ResourceController.execute(ResourceController.java:81)
    at hudson.model.Executor.run(Executor.java:137)

这是插件的错误,或者有人知道问题可能在哪里?我尝试在主Hudson配置页面中添加SMTP身份验证凭据以删除它 - 它没有帮助。

2 个答案:

答案 0 :(得分:1)

我相信这可能是Hudson 3核心中的一个错误。它可能与http://www.eclipse.org/forums/index.php/t/356988/有关。你能否将hudson.war中的javax.mail jar从1.4.4降级到1.4,看看是否能解决问题?

谢谢, 史蒂夫。

答案 1 :(得分:0)

查看它是否与TLS加密无关,修改启动Hudson的java参数:-Dmail.smtp.starttls.enable = true