Uploaded image for project: 'PUBLIC - Liferay Portal Enterprise Edition'
  1. PUBLIC - Liferay Portal Enterprise Edition
  2. LPE-15139

NoSuchGroupException is thrown and email is not sent when comments are deactivated in portal.properties

    Details

      Description

      When comments are deactivated in portal.properties, an email is not sent to subscribers, and a NoSuchGroupException is thrown.

      The error in catalina.out is like the following:

      ERROR [liferay/subscription_sender-1][StagingPermissionImpl:63] com.liferay.portal.NoSuchGroupException: No Group exists with the primary key 347624
      com.liferay.portal.NoSuchGroupException: No Group exists with the primary key 347624
              at com.liferay.portal.service.persistence.GroupPersistenceImpl.findByPrimaryKey(GroupPersistenceImpl.java:8504)
              at com.liferay.portal.service.persistence.GroupPersistenceImpl.findByPrimaryKey(GroupPersistenceImpl.java:8522)
              at com.liferay.portal.service.impl.GroupLocalServiceImpl.getGroup(GroupLocalServiceImpl.java:1203)
              at sun.reflect.GeneratedMethodAccessor531.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.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
              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.$Proxy32.getGroup(Unknown Source)
              at com.liferay.portal.service.GroupLocalServiceUtil.getGroup(GroupLocalServiceUtil.java:216)
              at com.liferay.portal.staging.permission.StagingPermissionImpl.hasPermission(StagingPermissionImpl.java:56)
              at com.liferay.portal.kernel.staging.permission.StagingPermissionUtil.hasPermission(StagingPermissionUtil.java:45)
              at com.liferay.portlet.blogs.service.permission.BlogsPermission.contains(BlogsPermission.java:42)
              at com.liferay.portal.service.permission.SubscriptionPermissionImpl.hasPermission(SubscriptionPermissionImpl.java:177)
              at com.liferay.portal.service.permission.SubscriptionPermissionImpl.contains(SubscriptionPermissionImpl.java:111)
              at com.liferay.portal.service.permission.SubscriptionPermissionUtil.contains(SubscriptionPermissionUtil.java:83)
              at com.liferay.portal.util.SubscriptionSender.hasPermission(SubscriptionSender.java:413)
              at com.liferay.portal.util.SubscriptionSender.notifySubscriber(SubscriptionSender.java:486)
              at com.liferay.portal.util.SubscriptionSender.flushNotifications(SubscriptionSender.java:146)
              at com.liferay.portal.messaging.SubscriptionSenderMessageListener.doReceive(SubscriptionSenderMessageListener.java:46)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
              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:745)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alec.shay Alec Shay
                Reporter:
                jorge.diaz Jorge Diaz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  6.2.X EE