org.sonatype.micromailer.MailCompositionMessagingException: MessagingException occured!

Sonatype JIRA | Martin Burger | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Our Nexus installation cannot send e-mails through SMTP if the username and password fields are empty. When I try to send a test message, I get the following exceptions in file wrapper.log: INFO | jvm 1 | 2009/12/03 08:14:49 | 2009-12-03 08:14:49,690 INFO [org.sonatype.micromailer.EMailer:default] - Handling mail request Nexus INFO | jvm 1 | 2009/12/03 08:14:49 | 2009-12-03 08:14:49,790 ERROR [org.sonatype.nexus.email.SmtpSettingsValidator:default] - Unable to send e-mail INFO | jvm 1 | 2009/12/03 08:14:49 | org.sonatype.micromailer.MailCompositionMessagingException: MessagingException occured! INFO | jvm 1 | 2009/12/03 08:14:49 | at org.sonatype.micromailer.imp.DefaultMailSender.sendMail(DefaultMailSender.java:64) INFO | jvm 1 | 2009/12/03 08:14:49 | at org.sonatype.micromailer.imp.DefaultEMailer$RunnableMailer.run(DefaultEMailer.java:188) INFO | jvm 1 | 2009/12/03 08:14:49 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) INFO | jvm 1 | 2009/12/03 08:14:49 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) INFO | jvm 1 | 2009/12/03 08:14:49 | at java.lang.Thread.run(Thread.java:619) INFO | jvm 1 | 2009/12/03 08:14:49 | Caused by: javax.mail.AuthenticationFailedException INFO | jvm 1 | 2009/12/03 08:14:49 | at javax.mail.Service.connect(Service.java:306) INFO | jvm 1 | 2009/12/03 08:14:49 | at javax.mail.Service.connect(Service.java:156) INFO | jvm 1 | 2009/12/03 08:14:49 | at javax.mail.Service.connect(Service.java:105) INFO | jvm 1 | 2009/12/03 08:14:49 | at org.sonatype.micromailer.imp.DefaultMailSender.sendMail(DefaultMailSender.java:53) INFO | jvm 1 | 2009/12/03 08:14:49 | ... 4 more If I enter a valid username and the corresponding password, Nexus sends the test message successfully. However, the host running Nexus is a "trusted host" and is allowed to relay mails through our SMTP server. Thus, no authentication is required. I double checked the system configuration with a telnet session. From the machine running Nexus, I connected as the user who runs Nexus to our mail server. I could send a test mail without any authentication.

    Sonatype JIRA | 7 years ago | Martin Burger
    org.sonatype.micromailer.MailCompositionMessagingException: MessagingException occured!
  2. 0

    Our Nexus installation cannot send e-mails through SMTP if the username and password fields are empty. When I try to send a test message, I get the following exceptions in file wrapper.log: INFO | jvm 1 | 2009/12/03 08:14:49 | 2009-12-03 08:14:49,690 INFO [org.sonatype.micromailer.EMailer:default] - Handling mail request Nexus INFO | jvm 1 | 2009/12/03 08:14:49 | 2009-12-03 08:14:49,790 ERROR [org.sonatype.nexus.email.SmtpSettingsValidator:default] - Unable to send e-mail INFO | jvm 1 | 2009/12/03 08:14:49 | org.sonatype.micromailer.MailCompositionMessagingException: MessagingException occured! INFO | jvm 1 | 2009/12/03 08:14:49 | at org.sonatype.micromailer.imp.DefaultMailSender.sendMail(DefaultMailSender.java:64) INFO | jvm 1 | 2009/12/03 08:14:49 | at org.sonatype.micromailer.imp.DefaultEMailer$RunnableMailer.run(DefaultEMailer.java:188) INFO | jvm 1 | 2009/12/03 08:14:49 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) INFO | jvm 1 | 2009/12/03 08:14:49 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) INFO | jvm 1 | 2009/12/03 08:14:49 | at java.lang.Thread.run(Thread.java:619) INFO | jvm 1 | 2009/12/03 08:14:49 | Caused by: javax.mail.AuthenticationFailedException INFO | jvm 1 | 2009/12/03 08:14:49 | at javax.mail.Service.connect(Service.java:306) INFO | jvm 1 | 2009/12/03 08:14:49 | at javax.mail.Service.connect(Service.java:156) INFO | jvm 1 | 2009/12/03 08:14:49 | at javax.mail.Service.connect(Service.java:105) INFO | jvm 1 | 2009/12/03 08:14:49 | at org.sonatype.micromailer.imp.DefaultMailSender.sendMail(DefaultMailSender.java:53) INFO | jvm 1 | 2009/12/03 08:14:49 | ... 4 more If I enter a valid username and the corresponding password, Nexus sends the test message successfully. However, the host running Nexus is a "trusted host" and is allowed to relay mails through our SMTP server. Thus, no authentication is required. I double checked the system configuration with a telnet session. From the machine running Nexus, I connected as the user who runs Nexus to our mail server. I could send a test mail without any authentication.

    Sonatype JIRA | 7 years ago | Martin Burger
    org.sonatype.micromailer.MailCompositionMessagingException: MessagingException occured!
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. mauritius 2 times, last 2 weeks ago
5 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. javax.mail.AuthenticationFailedException

    No message provided

    at javax.mail.Service.connect()
  2. JavaMail API
    Service.connect
    1. javax.mail.Service.connect(Service.java:306)
    2. javax.mail.Service.connect(Service.java:156)
    3. javax.mail.Service.connect(Service.java:105)
    3 frames
  3. org.sonatype.micromailer
    DefaultEMailer$RunnableMailer.run
    1. org.sonatype.micromailer.imp.DefaultMailSender.sendMail(DefaultMailSender.java:53)
    2. org.sonatype.micromailer.imp.DefaultEMailer$RunnableMailer.run(DefaultEMailer.java:188)
    2 frames
  4. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    3. java.lang.Thread.run(Thread.java:619)
    3 frames