Details

      Description

      1. Set announcements.entry.check.interval=1 (optional step, but will make testing much faster)
      2. Configure mail settings in control panel
      3. Create user with real email address
      4. As the new user, go to My Account -> Announcements and flag Email next to General
      5. As the admin, add an announcement portlet and add a general announcement.
      6. After some time interval (determined by above portal property), you will get the stack trace below and email notification will not be sent.
      22:16:21,464 ERROR [liferay/scheduler_dispatch-5][ParallelDestination:72] Unable to process message {destinationName=lif
      eray/scheduler_dispatch, response=null, responseDestinationName=null, responseId=null, payload=null, values={JOB_NAME=co
      m.liferay.portlet.announcements.messaging.CheckEntryMessageListener, EXCEPTIONS_MAX_SIZE=0, GROUP_NAME=com.liferay.portl
      et.announcements.messaging.CheckEntryMessageListener, DESTINATION_NAME=liferay/scheduler_dispatch, JOB_STATE=com.liferay
      .portal.kernel.scheduler.JobState@3ec48e14, companyId=0, MESSAGE_LISTENER_CLASS_NAME=com.liferay.portlet.announcements.m
      essaging.CheckEntryMessageListener, RECEIVER_KEY=com.liferay.portlet.announcements.messaging.CheckEntryMessageListener.c
      om.liferay.portlet.announcements.messaging.CheckEntryMessageListener, MESSAGE_LISTENER_UUID=0b1d8744-5cd8-45a4-b88d-e371
      8e8aa705}}
      com.liferay.portal.kernel.messaging.MessageListenerException: java.lang.ArrayIndexOutOfBoundsException: 9
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32)
              at sun.reflect.GeneratedMethodAccessor1108.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
              at $Proxy296.receive(Unknown Source)
              at com.liferay.portal.kernel.scheduler.messaging.SchedulerEventMessageListenerWrapper.receive(SchedulerEventMess
      ageListenerWrapper.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:662)
      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(AnnouncementsEn
      tryLocalServiceImpl.java:544)
              at com.liferay.portlet.announcements.service.impl.AnnouncementsEntryLocalServiceImpl.notifyUsers(AnnouncementsEn
      tryLocalServiceImpl.java:485)
              at com.liferay.portlet.announcements.service.impl.AnnouncementsEntryLocalServiceImpl.checkEntries(AnnouncementsE
      ntryLocalServiceImpl.java:171)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              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:55)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
              at $Proxy132.checkEntries(Unknown Source)
              at com.liferay.portlet.announcements.service.AnnouncementsEntryLocalServiceUtil.checkEntries(AnnouncementsEntryL
      ocalServiceUtil.java:349)
              at com.liferay.portlet.announcements.messaging.CheckEntryMessageListener.doReceive(CheckEntryMessageListener.jav
      a:29)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
              ... 11 more
      22:17:21,461 ERROR [liferay/scheduler_dispatch-5][ParallelDestination:72] Unable to process message {destinationName=lif
      eray/scheduler_dispatch, response=null, responseDestinationName=null, responseId=null, payload=null, values={JOB_NAME=co
      m.liferay.portlet.announcements.messaging.CheckEntryMessageListener, EXCEPTIONS_MAX_SIZE=0, GROUP_NAME=com.liferay.portl
      et.announcements.messaging.CheckEntryMessageListener, DESTINATION_NAME=liferay/scheduler_dispatch, JOB_STATE=com.liferay
      .portal.kernel.scheduler.JobState@f5d920a, companyId=0, MESSAGE_LISTENER_CLASS_NAME=com.liferay.portlet.announcements.me
      ssaging.CheckEntryMessageListener, RECEIVER_KEY=com.liferay.portlet.announcements.messaging.CheckEntryMessageListener.co
      m.liferay.portlet.announcements.messaging.CheckEntryMessageListener, MESSAGE_LISTENER_UUID=0b1d8744-5cd8-45a4-b88d-e3718
      e8aa705}}
      com.liferay.portal.kernel.messaging.MessageListenerException: java.lang.ArrayIndexOutOfBoundsException: 9
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32)
              at sun.reflect.GeneratedMethodAccessor1108.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:67)
              at $Proxy296.receive(Unknown Source)
              at com.liferay.portal.kernel.scheduler.messaging.SchedulerEventMessageListenerWrapper.receive(SchedulerEventMess
      ageListenerWrapper.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:662)
      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(AnnouncementsEn
      tryLocalServiceImpl.java:544)
              at com.liferay.portlet.announcements.service.impl.AnnouncementsEntryLocalServiceImpl.notifyUsers(AnnouncementsEn
      tryLocalServiceImpl.java:485)
              at com.liferay.portlet.announcements.service.impl.AnnouncementsEntryLocalServiceImpl.checkEntries(AnnouncementsE
      ntryLocalServiceImpl.java:171)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              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:55)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
              at $Proxy132.checkEntries(Unknown Source)
              at com.liferay.portlet.announcements.service.AnnouncementsEntryLocalServiceUtil.checkEntries(AnnouncementsEntryL
      ocalServiceUtil.java:349)
              at com.liferay.portlet.announcements.messaging.CheckEntryMessageListener.doReceive(CheckEntryMessageListener.jav
      a:29)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
              ... 11 more
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                felix.zhang Felix Zhang
                Reporter:
                matthew.kong Matthew Kong
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

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