Email Notifications Not Sent Without Valid IMAP Connection
(Doc ID 1328504.1)
Last updated on OCTOBER 02, 2023
Applies to:
Oracle WebCenter Portal - Version 11.1.1.4.0 to 11.1.1.7.0 [Release 11g]Information in this document applies to any platform.
Symptoms
Sending notification email fails without having a valid IMAP connection in WebCenter.
When setting up the SMTP-only Email connection as per the following note: Note 1182383.1 - How To Create a SMTP Only Mail Connection?
Then there is no email sent for example when adding or removing a user to/from a Space and the following exception is logged into the WC_Spaces-diagnostic.log:
[<em>2011-06-02T05:01:38.369-04:00] [WC_Spaces] [<strong>WARNING] [WCS-50020] [oracle.webcenter.notification.internal.spi.NotificationSenderFactory] [tid: [ACTIVE].ExecuteThread: '14' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <USERNAME>] [ecid: <ECID>] [APP: webcenter#11.1.1.4.0] Error occurred in initializing the notification sender[[ oracle.webcenter.notification.NotificationServiceException: Error occurred in initializing the notification sender at oracle.webcenter.notification.internal.spi.impl.MailNotificationSender.initialize(MailNotificationSender.java:124)
at</strong> oracle.webcenter.notification.internal.spi.NotificationSenderFactory.getSender(NotificationSenderFactory.java:92) ,,,
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Caused by: oracle.webcenter.collab.share.ConnectionFailedException: The service is unavailable. at oracle.webcenter.collab.mail.MailSession.acquireImapStore(MailSession.java:1374)
at oracle.webcenter.collab.mail.MailSession.login(MailSession.java:462)
at oracle.webcenter.notification.internal.spi.impl.MailNotificationSender.initialize(MailNotificationSender.java:115) ... 118 more
Caused by: oracle.webcenter.concurrent.ExecutionException: Invalid protocol: null service : oracle.webcenter.collab.mail;resource : null ;source : oracle.webcenter.collab.mail.MailSession$2@5266b4f (oracle.webcenter.collab.mail.MailSession$2) submission : 34
at oracle.webcenter.concurrent.Submission.get(Submission.java:220) at </em> <em>.......</em>
When specifying an invalid IMAP connection then there is no email sent for example when adding or removing a user to/from a Space and either of the following exception is logged into the WC_Spaces-diagnostic.log:
[WC_Spaces] [WARNING] [WCS-50020] [oracle.webcenter.notification.internal.spi.NotificationSenderFactory] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <USERNAME>] [ecid: <ECID>] [APP: webcenter#11.1.1.4.0] Error occurred in initializing the notification sender[[
oracle.webcenter.notification.NotificationServiceException: Error occurred in initializing the notification sender
at oracle.webcenter.notification.internal.spi.impl.MailNotificationSender.initialize(MailNotificationSender.java:124)
at oracle.webcenter.notification.internal.spi.NotificationSenderFactory.getSender(NotificationSenderFactory.java:92)
at oracle.webcenter.notification.internal.model.NotificationServiceImpl.<init>(NotificationServiceImpl.java:109)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Caused by: oracle.webcenter.collab.share.LoginFailedException: failure to authenticate the user <USERNAME>, due to: login failed domain does not exist
service : oracle.webcenter.collab.mail
resource : null
source : oracle.webcenter.collab.mail.MailSession$2@368587ed (oracle.webcenter.collab.mail.MailSession$2)
submission : 5
at oracle.webcenter.collab.mail.MailSession.acquireImapStore(MailSession.java:1359)
at oracle.webcenter.collab.mail.MailSession.login(MailSession.java:462)
at oracle.webcenter.notification.internal.spi.impl.MailNotificationSender.initialize(MailNotificationSender.java:115)
... 98 more
Caused by: oracle.webcenter.concurrent.ExecutionException: login failed domain does not exist (xxxxxxxx) (xxxxxxxx)
service : oracle.webcenter.collab.mail
resource : null
source : oracle.webcenter.collab.mail.MailSession$2@368587ed (oracle.webcenter.collab.mail.MailSession$2)
submission : 5
at oracle.webcenter.concurrent.Submission.get(Submission.java:220)
at oracle.webcenter.concurrent.SubmissionFuture.get(SubmissionFuture.java:85)
at oracle.webcenter.collab.mail.MailSession.acquireImapStore(MailSession.java:1330)
... 100 more
Caused by: javax.mail.AuthenticationFailedException: login failed domain does not exist (xxxxxxxx) (xxxxxxxx)
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:566)
at javax.mail.Service.connect(Service.java:310)
at javax.mail.Service.connect(Service.java:169)
at oracle.webcenter.collab.mail.MailSession$2.call(MailSession.java:1302)
at oracle.webcenter.concurrent.ModifiedThreadPoolExecutor$Worker.run(ModifiedThreadPoolExecutor.java:682)
at java.lang.Thread.run(Thread.java:662)
]]
OR
[WC_Spaces] [WARNING] [WCS-50020] [oracle.webcenter.notification.internal.spi.NotificationSenderFactory] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <USERNAME>] [ecid: <ECID>] [APP: webcenter#11.1.1.4.0] Error occurred in initializing the notification sender[[
oracle.webcenter.notification.NotificationServiceException: Error occurred in initializing the notification sender
at oracle.webcenter.notification.internal.spi.impl.MailNotificationSender.initialize(MailNotificationSender.java:124)
at oracle.webcenter.notification.internal.spi.NotificationSenderFactory.getSender(NotificationSenderFactory.java:92)
at oracle.webcenter.notification.internal.model.NotificationServiceImpl.<init>(NotificationServiceImpl.java:109)
at oracle.webcenter.notification.NotificationServiceFactory.getNotificationService(NotificationServiceFactory.java:89)
at oracle.webcenter.activitystreaming.internal.model.jpa.JpaActivityStreamingService.publish(JpaActivityStreamingService.java:241)
at oracle.webcenter.spaces.internal.model.security.SpacesSecurityManagerImpl.publishRevokeRoleGroupSpaceActivity(SpacesSecurityManagerImpl.java:4178)
at oracle.webcenter.spaces.internal.model.security.SpacesSecurityManagerImpl.revokeRoleAndPublishActivity(SpacesSecurityManagerImpl.java:2219)
at oracle.webcenter.spaces.internal.model.security.SpacesSecurityManagerImpl.revokeRole(SpacesSecurityManagerImpl.java:317)
at oracle.webcenter.webcenterapp.internal.model.security.WebCenterMemberManagementDC.removeMembers(WebCenterMemberManagementDC.java:872)
...
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Caused by: oracle.webcenter.collab.share.ConnectionFailedException: The service is unavailable.
at oracle.webcenter.collab.mail.MailSession.acquireImapStore(MailSession.java:1374)
at oracle.webcenter.collab.mail.MailSession.login(MailSession.java:462)
at oracle.webcenter.notification.internal.spi.impl.MailNotificationSender.initialize(MailNotificationSender.java:115)
... 118 more
Caused by: oracle.webcenter.concurrent.ExecutionException: <HOSTNAME>
service : oracle.webcenter.collab.mail
resource : null
source : oracle.webcenter.collab.mail.MailSession$2@24778eb8 (oracle.webcenter.collab.mail.MailSession$2)
submission : 35
at oracle.webcenter.concurrent.Submission.get(Submission.java:220)
at oracle.webcenter.concurrent.SubmissionFuture.get(SubmissionFuture.java:85)
at oracle.webcenter.collab.mail.MailSession.acquireImapStore(MailSession.java:1330)
... 120 more
Caused by: javax.mail.MessagingException: <HOSTNAME>;
nested exception is:
java.net.UnknownHostException: <HOSTNAME>
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:571)
at javax.mail.Service.connect(Service.java:288)
at javax.mail.Service.connect(Service.java:169)
...
at oracle.webcenter.concurrent.ModifiedThreadPoolExecutor$Worker.run(ModifiedThreadPoolExecutor.java:682)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.net.UnknownHostException: <HOSTNAME>
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:559)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:231)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
at com.sun.mail.iap.Protocol.<init>(Protocol.java:107)
at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:104)
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:538)
... 16 more
]]
Steps to reproduce:
- Set up an SMTP-only email connection for WebCenter as per the following note:
Note 1182383.1 - How To Create a SMTP Only Mail Connection?
Specifically:
a. From WLST create the External Application and Mail connection with the following commands:
b. Restart Spaces.
c. Add the 2 properties in the Space Custom Attributes as suggested by the note.
d. Test sending an email from a page, you may have to save the username and password for the first time.
Make sure that you receive the email correctly, which confirms that sending email works fine from WebCenter. - Set up the Notification setting in Application Configuration in EM to point to the new Mail connection.
- Register a new user with an email address that you can verify.
- Login with the newly created user.
- Click on Preferences.
- Click on Subscriptions.
- Check all check boxes on the General Subscriptions tab.
- As an administrator, add the user to the Space that you used in step 1.
Notice that you do not receive the email, and the above exception in WC_Spaces-diagnostic.log, shows up. - Change the Email connection in EM to point to an invalid IMAP host and port.
- Restart Spaces.
- Test notification again by adding or removing the user to/from the Space.
You will still not receive the email, and you will see an exception complaining about IMAP connection not being valid, see above. - Change the Email connection in EM to point to a valid IMAP host and port.
- Restart Spaces.
- Test the notification again
Notice that this time the email gets sent.
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |