Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Email notification (ldap) failed with 5.0.7 #2163

kururin ·
Hello

Does anything change about the email settings between QB 4.0.X and 5.0.7?
We didn't modify anything but we can't send email anymore.

We get this exception: Caused by: javax.mail.AuthenticationFailedException: 334

Thanks
Mathieu
  • replies 8
  • views 2825
  • stars 0
robinshen ADMIN ·
Nothing is changed in this aspect. You may write a simple Ant script to use mail task to send mail to see if it works.
kururin ·
We already tried this yesterday with no success. Same error.
Nevertheless, we can send emails with an external executable/batch called by QB.
So something has changed or we have something wrong in our QB config, but as I said before, we just upgraded server and clients from 4.0.24 (or 4.0.53) to 5.0.7. Nothing else.
robinshen ADMIN ·
This might not relate to QB if mail task in a simple Ant script does not work either.
kururin ·
We're still investigating the problem...
Installation from scratch, the email notification is sent without any problem with QB 4.0.90.
Installation from scratch, the email notification is never sent with QB 5.0.3 (and later).

We tried on different computers, with different users. It never works with QB 5.0.X.
Does anyone have the same problem?

Here is the exception raised:

ERROR com.pmease.quickbuild.DefaultBuildEngine - Error processing build request.
Problem while sending mime mail:
at org.apache.tools.ant.taskdefs.email.MimeMailer.send(MimeMailer.java:256)
at org.apache.tools.ant.taskdefs.email.EmailTask.execute(EmailTask.java:533)
at com.pmease.quickbuild.util.MiscUtils.sendMail(MiscUtils.java:110)
at com.pmease.quickbuild.plugin.notifier.email.EmailNotifier.notify(EmailNotifier.java:113)
at com.pmease.quickbuild.DefaultBuildEngine.sendNotifications(DefaultBuildEngine.java:758)
at com.pmease.quickbuild.DefaultBuildEngine.process(DefaultBuildEngine.java:371)
at com.pmease.quickbuild.DefaultBuildEngine.access$000(DefaultBuildEngine.java:115)
at com.pmease.quickbuild.DefaultBuildEngine$2.run(DefaultBuildEngine.java:895)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.mail.AuthenticationFailedException: 334
at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:648)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:583)
at javax.mail.Service.connect(Service.java:313)
at javax.mail.Service.connect(Service.java:172)
at javax.mail.Service.connect(Service.java:121)
at javax.mail.Transport.send0(Transport.java:190)
at javax.mail.Transport.send(Transport.java:120)
at org.apache.tools.ant.taskdefs.email.MimeMailer.send(MimeMailer.java:254)
kururin ·
Robin, I told you it does not work with a Ant script, but it does.
We can send email with Ant scripts.
benprim ·
Hi Robin,

we found a workaround... so may be the issue as well, it looks like we're having an issue with javamail-1.4.3.
I downloaded javamail-1.4.6 then changed wrapper.conf to add this line :
wrapper.java.classpath.14=../javamail-1.4.6/mail.jar


Now we don't have the issue anymore, email are sent successfully
robinshen ADMIN ·
Thanks for the info. Will upgrade this lib in next patch release.
benprim ·
Great <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Thaks Robin