Uploaded image for project: 'PUBLIC - Liferay Social Office Community Edition'
  1. PUBLIC - Liferay Social Office Community Edition
  2. SOS-2352

Announcement Notifications are not being sent via email

    Details

    • Fix Priority:
      4
    • Affects Portal Version/s:
      6.2.0 CE GA1, 6.2.10 EE GA1

      Description

      Here are the steps to reproduce:

      1. Before starting liferay, set the following property in portal-ext:
        announcements.entry.check.interval=1
        
      2. Configure the server to use a valid email address
      3. Add an SO user with a valid email address; configure the user's Announcement settings so that General announcement notifications are received by Email
      4. Go to Dashboard; add a General announcement
      5. View the user's email

      Expected result:

      An announcement notification will be sent and visible

      Actual result:

      No notification will be sent. The following exception will also appear:

      16:59:29,308 ERROR [liferay/scheduler_dispatch-3][ParallelDestination:72] Unable to process message {destinationName=liferay/scheduler_dispatch, response=null, responseDestinationName=null, responseId=null, payload=null, values={JOB_NAME=com.liferay.portlet.announcements.messaging.CheckEntryMessageListener, EXCEPTIONS_MAX_SIZE=0, GROUP_NAME=com.liferay.portlet.announcements.messaging.CheckEntryMessageListener, DESTINATION_NAME=liferay/scheduler_dispatch, JOB_STATE=com.liferay.portal.kernel.scheduler.JobState@23532c8d, companyId=0, MESSAGE_LISTENER_CLASS_NAME=com.liferay.portlet.announcements.messaging.CheckEntryMessageListener, RECEIVER_KEY=com.liferay.portlet.announcements.messaging.CheckEntryMessageListener.com.liferay.portlet.announcements.messaging.CheckEntryMessageListener, MESSAGE_LISTENER_UUID=0783920f-b1b1-4186-ada9-a3eef8f9c456}}
      com.liferay.portal.kernel.messaging.MessageListenerException: java.lang.ArrayIndexOutOfBoundsException: 9
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32)
              at sun.reflect.GeneratedMethodAccessor429.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
              at com.sun.proxy.$Proxy296.receive(Unknown Source)
              at com.liferay.portal.kernel.scheduler.messaging.SchedulerEventMessageListenerWrapper.receive(SchedulerEventMessageListenerWrapper.java:76)
              at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
              at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:69)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
              at java.lang.Thread.run(Thread.java:744)
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 9
              at com.liferay.portal.util.SubscriptionSender.setContextAttributes(SubscriptionSender.java:289)
              at com.liferay.portlet.announcements.service.impl.AnnouncementsEntryLocalServiceImpl.notifyUsers(AnnouncementsEntryLocalServiceImpl.java:544)
              at com.liferay.portlet.announcements.service.impl.AnnouncementsEntryLocalServiceImpl.notifyUsers(AnnouncementsEntryLocalServiceImpl.java:485)
              at com.liferay.portlet.announcements.service.impl.AnnouncementsEntryLocalServiceImpl.checkEntries(AnnouncementsEntryLocalServiceImpl.java:171)
              at com.liferay.portlet.announcements.service.AnnouncementsEntryLocalServiceWrapper.checkEntries(AnnouncementsEntryLocalServiceWrapper.java:368)
              at com.liferay.so.hook.service.impl.SOAnnouncementsEntryLocalServiceImpl.checkEntries(SOAnnouncementsEntryLocalServiceImpl.java:108)
              at sun.reflect.GeneratedMethodAccessor552.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
              at com.sun.proxy.$Proxy579.checkEntries(Unknown Source)
              at sun.reflect.GeneratedMethodAccessor552.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
              at com.sun.proxy.$Proxy134.checkEntries(Unknown Source)
              at com.liferay.portlet.announcements.service.AnnouncementsEntryLocalServiceUtil.checkEntries(AnnouncementsEntryLocalServiceUtil.java:349)
              at com.liferay.portlet.announcements.messaging.CheckEntryMessageListener.doReceive(CheckEntryMessageListener.java:29)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
              ... 11 more
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mandy.lee Mandy Lee (Inactive)
                Reporter:
                ken.duenwald Ken Duenwald
                Participants of an Issue:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 6 weeks, 1 day ago

                  Packages

                  Version Package