[Building Sakai] Mailsender stack trace--look familiar to anyone?

Seth Theriault slt at columbia.edu
Wed Aug 25 16:01:30 PDT 2010


Michael Osterman wrote:

> We've just brought up 2.6.x  and are getting errors in Mailsender (trunk
> r69070).
> 
> When sending a message, the UI shows:
> 
> A problem occurred while processing the request.
> 
> The corresponding catalina.out entry is this:
> 
> 2010-08-25 14:48:59,484  WARN http-8443-Processor63 PonderUtilCore - Error
> invoking action
> Target exception of class java.lang.IllegalArgumentException
> Successive lines until stack trace show causes progressing to exception
> site:
> Error invoking action
> --> Error invoking method sendEmail in bean at path emailBean.sendEmail
> --> Cannot connect to a port number that is less than 1 ( -1 )
> java.lang.IllegalArgumentException: Cannot connect to a port number that is
> less than 1 ( -1 )
> at org.apache.commons.mail.Email.setSmtpPort(Email.java:416)
> at
> org.sakaiproject.mailsender.logic.impl.ExternalLogicImpl.sendEmail(ExternalLogicImpl.java:415)

You must set a value in sakai.properties for:

smtpPort at org.sakaiproject.email.api.EmailService

If you aren't setting it in Sakai now, the value to set is 25.

By default, Mailsender sets the outgoing SMTP port to -1 causing 
this error.

Seth



More information about the sakai-dev mailing list