Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-1180

Adding a document causes error "No RepositoryEntry exists with the primary key" in the icefaces3-documents-portlet with Liferay 6.1

    Details

      Description

      This is possible a bug in the Liferay 6.1 DLFileEntryServiceUtil.addFileEntry(...) method but need to investigate further.

      Here's an abbreviated stacktrace:

      15:25:33,809 ERROR [DocUploadBackingBean:172] No RepositoryEntry exists with the primary key 12502
      com.liferay.portal.NoSuchRepositoryEntryException: No RepositoryEntry exists with the primary key 12502
      at com.liferay.portal.service.persistence.RepositoryEntryPersistenceImpl.findByPrimaryKey(RepositoryEntryPersistenceImpl.java:546)
      at com.liferay.portal.service.impl.RepositoryLocalServiceImpl.createRepositoryImpl(RepositoryLocalServiceImpl.java:347)
      at com.liferay.portal.service.impl.RepositoryLocalServiceImpl.getLocalRepositoryImpl(RepositoryLocalServiceImpl.java:216)
      [...]
      at com.liferay.portlet.documentlibrary.service.impl.DLAppLocalServiceImpl.getLocalRepository(DLAppLocalServiceImpl.java:1636)
      at com.liferay.portlet.documentlibrary.service.impl.DLAppLocalServiceImpl.getFolder(DLAppLocalServiceImpl.java:735)
      [...]
      at com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil.getFolder(DLAppLocalServiceUtil.java:633)
      at com.liferay.portlet.documentlibrary.service.permission.DLFolderPermission.contains(DLFolderPermission.java:162)
      at com.liferay.portlet.documentlibrary.service.permission.DLFolderPermission.check(DLFolderPermission.java:61)
      at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryServiceImpl.addFileEntry(DLFileEntryServiceImpl.java:59)
      [...]
      at com.liferay.portlet.documentlibrary.service.DLFileEntryServiceUtil.addFileEntry(DLFileEntryServiceUtil.java:51)
      at com.liferay.faces.demos.bean.DocUploadBackingBean.uploadAttachments(DocUploadBackingBean.java:134)

        Attachments

          Activity

            People

            • Assignee:
              neil.griffin Neil Griffin
              Reporter:
              neil.griffin Neil Griffin
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: