[Building Sakai] Mailsender stack trace--look familiar to anyone?
Carl Hall
carl at hallwaytech.com
Thu Aug 26 12:48:47 PDT 2010
This is an artifact from changing to commons email. I think Java Mail
considers port == -1 as "use the default port". commons email has a check
for < 1 port values. I've changed the default value to 25 and pushed the
change to mailsender trunk. Thanks for finding this! :-)
On Wed, Aug 25, 2010 at 7:53 PM, Michael Osterman
<ostermmg.sakai at gmail.com>wrote:
> 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/20100826/d4d47b58/attachment.html
More information about the sakai-dev
mailing list