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

Michael Osterman ostermmg.sakai at gmail.com
Wed Aug 25 16:53:04 PDT 2010


Seth,

That did the trick. We were missing the following sakai.properties entry:

smtpPort at org.sakaiproject.email.api.EmailService=25

Strange how Sakai has been running fine all these years (5 already?!?)
without it.

-Mike

On Wed, Aug 25, 2010 at 4:01 PM, Seth Theriault <slt at columbia.edu> wrote:

> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100825/3623b8a6/attachment.html 


More information about the sakai-dev mailing list