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

NoSuchEntryException thrown when user tries to add a blog entry after subscribing to the blog

    Details

      Description

      NoSuchEntryException thrown when user tries to add a blog entry after subscribing to the blog

      Steps to reproduce:

      1. Configure Mail Settings in Control Panel
        • SMTP Server: smtp.gmail.com
        • Port: 465
        • [x] Use Secure Connection
        • User: Your gmail username
        • Password: Your gmail password
      2. Navigate back to liferay.com
      3. Add a Blog page
        • Add Blog Entry 1
        • Publish
      4. Click the Subscribe link
      5. Click Add Blog Entry button
        • Blog entry is published but an exception is thrown
      02:17:05,411 ERROR [SubscriptionSender:437] com.liferay.portlet.blogs.NoSuchEntryException: No BlogsEntry exists with the primary key 10180
      com.liferay.portlet.blogs.NoSuchEntryException: No BlogsEntry exists with the primary key 10180
              at com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistenceImpl.findByPrimaryKey(BlogsEntryPersistenceImpl.java:1166)
              at com.liferay.portlet.blogs.service.base.BlogsEntryLocalServiceBaseImpl.getBlogsEntry(BlogsEntryLocalServiceBaseImpl.java:291)
              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:112)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
              at $Proxy135.getBlogsEntry(Unknown Source)
              at com.liferay.portlet.blogs.service.BlogsEntryLocalServiceUtil.getBlogsEntry(BlogsEntryLocalServiceUtil.java:179)
              at com.liferay.portal.service.permission.SubscriptionPermissionImpl.contains(SubscriptionPermissionImpl.java:63)
              at com.liferay.portal.service.permission.SubscriptionPermissionUtil.contains(SubscriptionPermissionUtil.java:38)
              at com.liferay.portal.util.SubscriptionSender.hasPermission(SubscriptionSender.java:375)
              at com.liferay.portal.util.SubscriptionSender.notifySubscriber(SubscriptionSender.java:428)
              at com.liferay.portal.util.SubscriptionSender.flushNotifications(SubscriptionSender.java:125)
              at com.liferay.portal.messaging.SubscriptionSenderMessageListener.doReceive(SubscriptionSenderMessageListener.java:48)
              at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25)
              at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:65)
              at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:106)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:669)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:580)
              at java.lang.Thread.run(Thread.java:662)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                christine.pince Christine Pince (Inactive)
                Reporter:
                christine.pince Christine Pince (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 years, 50 weeks ago

                  Packages

                  Version Package
                  6.0.X EE
                  --Sprint 12/11
                  6.1.0 CE RC1