Mailing function in Communities fails when alwaysUseGlobalSender set to yes

We have issues using the mailing functionality in Communities when
the alwaysUseGlobalSender is set to yes.
( notification-config.xml feature as introduced by LC25 Fixpack 2)

When this setting is set to off the functions “Mail to community” and
the “Request to join this community” for Communities configured as

will work fine and a mail is sent.

But when alwaysUseGlobalSender has been set to yes it gives
a java stack trace when Communities wants to sent a mail

The output of my trace.log with the following trace configured.

com.ibm.lotus.connections.core.*=finest

[10/27/10 14:29:21:437 IST] 0000002d AbstractEmail 3 com.ibm.lotus.connections.core.notify.channels.email.AbstractEmailNotificationChannelHandler sortRecipientsByLocale Notification for locale en_us contains 1 to recipients, 0 cc recipients, 0 bcc recipients
[10/27/10 14:29:21:437 IST] 0000002d AbstractEmail 3 com.ibm.lotus.connections.core.notify.channels.email.AbstractEmailNotificationChannelHandler handleNotificationDelivery Processing notification for source Communities, type requestToJoin, locale en_us
[10/27/10 14:29:21:437 IST] 0000002d NotificationT 3 com.ibm.lotus.connections.core.notify.templates.NotificationTemplateProcessor getNotificationTemplate Template not in cache
[10/27/10 14:29:21:437 IST] 0000002d NotificationT 3 com.ibm.lotus.connections.core.notify.templates.NotificationTemplateProcessor getNotificationTemplate Looking up template URL with key: {com.ibm.lotus.connections.core.notify.config.NotificationTemplateURLKey@8967bf77}: source: Communities, type: requestToJoin, channel: email, urlType: HTTP
[10/27/10 14:29:21:437 IST] 0000002d NotificationT 3 com.ibm.lotus.connections.core.notify.templates.NotificationTemplateProcessor getNotificationTemplate Template URL:  {notification.source.url}/mail/requestToJoin
[10/27/10 14:29:21:437 IST] 0000002d ConfigURLBuil 3 com.ibm.lotus.connections.core.notify.utils.ConfigURLBuilder buildURL Building URL from input: {notification.source.url}/mail/requestToJoin, source: http://linkedpeopledev.onebigcompany.com/communities
[10/27/10 14:29:21:438 IST] 0000002d ConfigURLBuil 3 com.ibm.lotus.connections.core.notify.utils.ConfigURLBuilder buildURL Adding these parameters to the url: {}
[10/27/10 14:29:21:438 IST] 0000002d ConfigURLBuil 3 com.ibm.lotus.connections.core.notify.utils.ConfigURLBuilder buildURL Built URL: http://linkedpeopledev.onebigcompany.com/communities/mail/requestToJoin
[10/27/10 14:29:21:438 IST] 0000002d HTTPTemplateL 3 com.ibm.lotus.connections.core.notify.templates.HTTPTemplateLoader loadTemplate Template URL: http://linkedpeopledev.onebigcompany.com/communities/mail/requestToJoin
[10/27/10 14:29:21:459 IST] 0000002d NotificationT 3 com.ibm.lotus.connections.core.notify.templates.NotificationTemplateImpl substituteTemplateVariables Substituting variables into template text
[10/27/10 14:29:21:459 IST] 0000002d NotificationT 3 com.ibm.lotus.connections.core.notify.templates.NotificationTemplateProcessor getNotificationTemplate Template not in cache
[10/27/10 14:29:21:459 IST] 0000002d NotificationT 3 com.ibm.lotus.connections.core.notify.templates.NotificationTemplateProcessor getNotificationTemplate Looking up template URL with key: {com.ibm.lotus.connections.core.notify.config.NotificationTemplateURLKey@8967bf77}: source: Communities, type: requestToJoin, channel: email, urlType: HTTP
[10/27/10 14:29:21:459 IST] 0000002d NotificationT 3 com.ibm.lotus.connections.core.notify.templates.NotificationTemplateProcessor getNotificationTemplate Template URL:  {notification.source.url}/mail/requestToJoin
[10/27/10 14:29:21:459 IST] 0000002d ConfigURLBuil 3 com.ibm.lotus.connections.core.notify.utils.ConfigURLBuilder buildURL Building URL from input: {notification.source.url}/mail/requestToJoin, source: http://linkedpeopledev.onebigcompany.com/communities
[10/27/10 14:29:21:459 IST] 0000002d ConfigURLBuil 3 com.ibm.lotus.connections.core.notify.utils.ConfigURLBuilder buildURL Adding these parameters to the url: {}
[10/27/10 14:29:21:459 IST] 0000002d ConfigURLBuil 3 com.ibm.lotus.connections.core.notify.utils.ConfigURLBuilder buildURL Built URL: http://linkedpeopledev.onebigcompany.com/communities/mail/requestToJoin
[10/27/10 14:29:21:459 IST] 0000002d HTTPTemplateL 3 com.ibm.lotus.connections.core.notify.templates.HTTPTemplateLoader loadTemplate Template URL: http://linkedpeopledev.onebigcompany.com/communities/mail/requestToJoin
[10/27/10 14:29:21:474 IST] 0000002d NotificationT 3 com.ibm.lotus.connections.core.notify.templates.NotificationTemplateImpl substituteTemplateVariables Substituting variables into template text
[10/27/10 14:29:21:474 IST] 0000002d NotificationT 3 com.ibm.lotus.connections.core.notify.templates.NotificationTemplateImpl substituteTemplateVariables Substituting variables into template text
[10/27/10 14:29:21:475 IST] 0000002d AbstractEmail 3 com.ibm.lotus.connections.core.notify.channels.email.AbstractEmailNotificationChannelHandler composeMessages Overriding sender address
[10/27/10 14:29:21:475 IST] 0000002d AbstractEmail 1 com.ibm.lotus.connections.core.notify.channels.email.AbstractEmailNotificationChannelHandler composeMessage senderName – Adding this sender name: LCadmin – Connections Administrator. This is the senderAddress: LCadmin – Connections Administrator
[10/27/10 14:29:21:475 IST] 0000002d HtmlException E com.ibm.tango.web.ui.error.HtmlExceptionHandler execute null
                                 java.lang.NullPointerException
        at com.ibm.lotus.connections.core.notify.channels.email.AbstractEmailNotificationChannelHandler.composeMessages(AbstractEmailNotificationChannelHandler.java:391)
        at com.ibm.lotus.connections.core.notify.channels.email.AbstractEmailNotificationChannelHandler.handleNotificationDelivery(AbstractEmailNotificationChannelHandler.java:232)
        at com.ibm.lotus.connections.core.notify.channels.NotificationChannelProcessor.process(NotificationChannelProcessor.java:179)
        at com.ibm.lotus.connections.core.notify.process.NotificationProcessor.process(NotificationProcessor.java:58)
        at com.ibm.lotus.connections.core.notify.impl.Notifications.notify(Notifications.java:414)
        at com.ibm.lconn.comm.notifications.NotifyCommon.composeAndSendInternal(NotifyCommon.java:209)
        at com.ibm.lconn.comm.notifications.NotifyCommon.composeAndSendMessage(NotifyCommon.java:188)
        at com.ibm.tango.web.ui.actions.RequestToJoinSubmitAction.doSend(RequestToJoinSubmitAction.java:147)
        at com.ibm.tango.web.ui.actions.RequestToJoinSubmitAction.doActionExecute(RequestToJoinSubmitAction.java:98)

For now I worked around this by configuring all functions of
every Connections part in the notificication-config.xml with a valid mail address.

Opened the file with vi and used the commands below the replace
all the default values used.

There probably is handier trick how to do this with one command so
please share if you know how :-).

%s/activities-admin@your-email-domain.com/lcadmin@e-office.com/g
%s/dogear-admin@@your-email-domain.com/lcadmin@e-office.com/g
%s/blogs-admin@@your-email-domain.com/lcadmin@e-office.com/g
%s/communities@your-email-domain.com/lcadmin@e-office.com/g
%s/profiles-admin@your-email-domain.com/lcadmin@e-office.com/g
%s/files_admin@your-email-domain.com/lcadmin@e-office.com/g
%s/wikis_admin@your-email-domain.com/lcadmin@e-office.com/g

Already posted a PMR at IBM to see what they have to say about it.

This entry was posted in lotus connections and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

Please leave these two fields as-is:

Protected by Invisible Defender. Showed 403 to 807,335 bad guys.