Spoke too soon, the message UI cannot send mail, even though the
normal Actions -> Send invitation does work.  Here's what I get when I
try to send an email with no invitation from the message window in the
UI, but no message is actually sent:

DEBUG 01-05 14:37:53.800 Usermanagement.java 1313787 1527
org.openmeetings.app.data.user.Usermanagement [NioProcessor-13] -
Usermanagement.getUserById
DEBUG 01-05 14:37:53.811 Usermanagement.java 1313798 1634
org.openmeetings.app.data.user.Usermanagement [NioProcessor-13] -
Usermanagement.getUserByEmail : cagu...@gmail.com
DEBUG 01-05 14:37:53.822 Usermanagement.java 1313809 1634
org.openmeetings.app.data.user.Usermanagement [NioProcessor-13] -
Usermanagement.getUserByEmail : cagu...@gmail.com

When I try including a conference, I get a more detailed error.  This
is obviously trying to look up the user somewhere, but fails silently
when no such user is found in the (contacts?) list.  Not clear why
it's not finding the user with this email, which is in the contacts
list, anyone?

DEBUG 01-05 14:46:41.975 Usermanagement.java 1841962 1634
org.openmeetings.app.data.user.Usermanagement [NioProcessor-8] -
Usermanagement.getUserByEmail : car...@goodhumans.com
ERROR 01-05 14:46:41.980 UserService.java 1841967 1054
org.openmeetings.app.remote.UserService [NioProcessor-8] -
[composeMail]
java.lang.Exception: Could not find user car...@goodhumans.com
        at 
org.openmeetings.app.remote.UserService.composeMail(UserService.java:999)
~[openmeetings.jar:na]


Thanks!

Carlos


On Thu, Jan 5, 2012 at 2:27 PM, Carlos Aguayo <cagu...@gmail.com> wrote:
> For the benefit of the community, I tracked down the java error and
> got email flowing.  It turns out that, unlike most of the
> configuration options, the mail server settings are loaded into
> javamail only once, presumably the first time a message-send is
> attempted.  This means that changing the mail server specifics
> requires a full server restart, this error means that the settings
> loaded into javamail are not correct, but it's not clear how to
> reinitialize without a full restart of tomcat.
>
> The issue that should be logged by someone with access to the issue
> tracker is that the user gets no warning when the email is not sent,
> and thus, they must assume that all is well.
>
> Thanks,
>
> Carlos
>
>
> On Thu, Jan 5, 2012 at 2:09 PM, Carlos Aguayo <cagu...@gmail.com> wrote:
>> Hey, kind folks,
>>
>> I am running openmeetings_1_9_1_r4707 on CentOS 5.7 with a mysql data
>> store, and I can't seem to get email delivery working, either via
>> local or remote smtp servers, TLS or plain text.  The
>> username/password/protocol/etc all look correct, and work from other
>> interfaces.   (telnet, mail client, and webmail)  I get
>> "java.lang.SecurityException: Access to default session denied", and
>> though I see lots of folks asking about this in the forums, none of
>> the solutions suggested there seem to help in this case.
>>
>> The most frustrating thing is that the user gets no feedback that
>> email did not go, it looks like it worked.  Any ideas most
>> appreciated.
>>
>> Carlos
>>
>>
>> Here's the stack trace from an "invite" attempt:
>>
>> ==> openmeetings.log <==
>> DEBUG 01-05 13:50:04.460 InvitationService.java 16828404 70
>> org.openmeetings.app.remote.InvitationService [NioProcessor-9] -
>> sendInvitationHash:
>>  INFO 01-05 13:50:04.461 InvitationService.java 16828405 82
>> org.openmeetings.app.remote.InvitationService [NioProcessor-9] -
>> validFromHour: 13
>>  INFO 01-05 13:50:04.461 InvitationService.java 16828405 83
>> org.openmeetings.app.remote.InvitationService [NioProcessor-9] -
>> validFromMinute: 49
>> DEBUG 01-05 13:50:04.480 InvitationService.java 16828424 124
>> org.openmeetings.app.remote.InvitationService [NioProcessor-9] -
>> addAppointment offset :: 46800000
>> DEBUG 01-05 13:50:04.482 Invitationmanagement.java 16828426 118
>> org.openmeetings.app.data.conference.Invitationmanagement
>> [NioProcessor-9] - http://208.93.118.94:5080/openmeetings/
>> DEBUG 01-05 13:50:04.483 Roommanagement.java 16828427 193
>> org.openmeetings.app.data.conference.Roommanagement [NioProcessor-9] -
>> getRoombyId : 12
>> DEBUG 01-05 13:50:04.500 MailThread.java 16828444 89
>> org.openmeetings.utils.mail.MailHandler [mailTaskExecutor-3] - Message
>> sending in progress
>> DEBUG 01-05 13:50:04.501 MailThread.java 16828445 90
>> org.openmeetings.utils.mail.MailHandler [mailTaskExecutor-3] -   From:
>> ad...@jellnet.com
>> DEBUG 01-05 13:50:04.501 MailThread.java 16828445 91
>> org.openmeetings.utils.mail.MailHandler [mailTaskExecutor-3] -   To:
>> cagu...@gmail.com
>> DEBUG 01-05 13:50:04.501 MailThread.java 16828445 92
>> org.openmeetings.utils.mail.MailHandler [mailTaskExecutor-3] -
>> Subject: Invitation to OpenMeetings
>> ERROR 01-05 13:50:04.503 MailThread.java 16828447 150
>> org.openmeetings.utils.mail.MailHandler [mailTaskExecutor-3] - [mail
>> send]
>> java.lang.SecurityException: Access to default session denied
>>       at javax.mail.Session.getDefaultInstance(Session.java:311)
>> ~[mail-1.4.jar:1.4]
>>       at 
>> org.openmeetings.utils.mail.MailThread$MailSenderTask.send(MailThread.java:115)
>> [openmeetings.jar:na]
>>       at 
>> org.openmeetings.utils.mail.MailThread$MailSenderTask.run(MailThread.java:69)
>> [openmeetings.jar:na]
>>       at 
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>> [na:1.7.0_02]
>>       at 
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>> [na:1.7.0_02]
>>       at java.lang.Thread.run(Thread.java:722) [na:1.7.0_02]

Reply via email to