Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-65342

Announcements scoped to a site generates stack trace when site is deleted

    Details

      Description

      DESCRIPTION
      Announcements scoped to a site generates stack trace after site is deleted
      STEPS TO REPRODUCE
      1. Create a site.
      2. Create an announcement scoped to that site
      3. Delete the site.
      4. When the scheduled job "CheckEntryMessageListener" runs (this runs every 15 minutes by default), a stack trace is shown
      EXPECTED RESULTS
      No error message
      ACTUAL RESULTS
      Error message appears

      ERROR [liferay/scheduler_dispatch-5][ParallelDestination:74] Unable to process message {destinationName=liferay/scheduler_dispatch, response=null, responseDestinationName=null, responseId=null, payload=null, values={groupId=0, STORAGE_TYPE=MEMORY_CLUSTERED, 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@7e9213b6, companyId=0, MESSAGE_LISTENER_CLASS_NAME=com.liferay.portlet.announcements.messaging.CheckEntryMessageListener, RECEIVER_KEY=com.liferay.portal.kernel.scheduler.messaging.ReceiverKey@96368cb0, MESSAGE_LISTENER_UUID=75abb2f8-13ea-4d14-aaf6-0a55c171ecbc}}
      com.liferay.portal.kernel.messaging.MessageListenerException: com.liferay.portal.NoSuchGroupException: No Group exists with the primary key 20535
      at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32)
      at sun.reflect.GeneratedMethodAccessor963.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.$Proxy299.receive(Unknown Source)
      at com.liferay.portal.kernel.scheduler.messaging.SchedulerEventMessageListenerWrapper.receive(SchedulerEventMessageListenerWrapper.java:77)
      at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
      at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:71)
      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: com.liferay.portal.NoSuchGroupException: No Group exists with the primary key 20535
      at com.liferay.portal.service.persistence.GroupPersistenceImpl.findByPrimaryKey(GroupPersistenceImpl.java:7953)
      at com.liferay.portal.service.persistence.GroupPersistenceImpl.findByPrimaryKey(GroupPersistenceImpl.java:7971)
      at com.liferay.portlet.announcements.service.impl.AnnouncementsEntryLocalServiceImpl.notifyUsers(AnnouncementsEntryLocalServiceImpl.java:418)
      at com.liferay.portlet.announcements.service.impl.AnnouncementsEntryLocalServiceImpl.checkEntries(AnnouncementsEntryLocalServiceImpl.java:171)
      at sun.reflect.GeneratedMethodAccessor1176.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.$Proxy423.checkEntries(Unknown Source)
      at com.liferay.portlet.announcements.service.AnnouncementsEntryLocalServiceWrapper.checkEntries(AnnouncementsEntryLocalServiceWrapper.java:368)
      at com.liferay.notifications.hook.service.impl.AnnouncementsEntryLocalServiceImpl.checkEntries(AnnouncementsEntryLocalServiceImpl.java:105)
      at sun.reflect.GeneratedMethodAccessor1176.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.$Proxy424.checkEntries(Unknown Source)
      at sun.reflect.GeneratedMethodAccessor1176.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.$Proxy136.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 

      BRANCH
      Reproduced
      2d78730b46ad4a3500ba29eb0feaaa6a06804936
      MASTER
      Reproduced
      69bf0ebbf0197ef5dcdfea27c3d1825227d9af1d

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shitian.zhang Shitian "Shelton" Zhang (Inactive)
              Reporter:
              christopher.kian Christopher Kian
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 20 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.1 CE GA2