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

NoSuchRepositoryEntryException when adding a document to the subscribed folder

    Details

      Description

      Steps to reproduce:

      1. Add Documents and Media portlet to a page.
      2. Subscribe the root folder or any other folder.
      3. Add a document to the root folder.

      Expected result:
      There should be no exception in the log when adding a document.

      Actual result:
      The following errors are thrown in the log.

      07:01:53,816 ERROR [liferay/subscription_sender-1][SubscriptionSender:472] com.liferay.portal.NoSuchRepositoryEntryException: No RepositoryEntry exists with the primary key 10534
      com.liferay.portal.NoSuchRepositoryEntryException: No RepositoryEntry exists with the primary key 10534
              at com.liferay.portal.service.persistence.RepositoryEntryPersistenceImpl.findByPrimaryKey(RepositoryEntryPersistenceImpl.java:2678)
              at com.liferay.portal.service.persistence.RepositoryEntryPersistenceImpl.findByPrimaryKey(RepositoryEntryPersistenceImpl.java:2696)
              at com.liferay.portal.service.impl.RepositoryLocalServiceImpl.createRepositoryImpl(RepositoryLocalServiceImpl.java:418)
              at com.liferay.portal.service.impl.RepositoryLocalServiceImpl.getLocalRepositoryImpl(RepositoryLocalServiceImpl.java:275)
              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:51)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
              at $Proxy78.getLocalRepositoryImpl(Unknown Source)
              at com.liferay.portlet.documentlibrary.service.impl.DLAppLocalServiceImpl.getFileEntryLocalRepository(DLAppLocalServiceImpl.java:1349)
              at com.liferay.portlet.documentlibrary.service.impl.DLAppLocalServiceImpl.getFileEntry(DLAppLocalServiceImpl.java:512)
              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:51)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
              at $Proxy192.getFileEntry(Unknown Source)
              at com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil.getFileEntry(DLAppLocalServiceUtil.java:401)
              at com.liferay.portlet.documentlibrary.service.permission.DLFileEntryPermission.contains(DLFileEntryPermission.java:151)
              at com.liferay.portal.service.permission.SubscriptionPermissionImpl.hasPermission(SubscriptionPermissionImpl.java:165)
              at com.liferay.portal.service.permission.SubscriptionPermissionImpl.contains(SubscriptionPermissionImpl.java:107)
              at com.liferay.portal.service.permission.SubscriptionPermissionUtil.contains(SubscriptionPermissionUtil.java:83)
              at com.liferay.portal.util.SubscriptionSender.hasPermission(SubscriptionSender.java:388)
              at com.liferay.portal.util.SubscriptionSender.notifySubscriber(SubscriptionSender.java:461)
              at com.liferay.portal.util.SubscriptionSender.flushNotifications(SubscriptionSender.java:142)
              at com.liferay.portal.messaging.SubscriptionSenderMessageListener.doReceive(SubscriptionSenderMessageListener.java:48)
              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: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)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 24 weeks, 5 days ago

                  Packages

                  Version Package
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M1