com.liferay.portlet.documentlibrary.NoSuchContentException: No DLContent exists with the key {companyId=20155, repositoryId=20182, path=1, version=1.0}

Liferay Issues | Istvan Dezsi | 1 year ago
  1. 0

    *Description:* 1) Obtain 6.2 vanilla, set {{dl.store.impl=com.liferay.portal.store.db.DBStore}} and DB connection to MySql. Start the server 2) Upload 1 document in the DM, then go to Control Panel - Server Administration - Data Migration 3) Perform migration with a fresh PostGreSQL DB as target. During the migration process, observe that when it get's to DLContent, this error is printed {code} 10:52:19,517 ERROR [liferay/convert_process-1][ConvertDatabase:281] java.sql.BatchUpdateException: Batch entry 0 INSERT INTO DLContent (contentId, groupId, companyId, repositoryId, path_, version, data_, size_) VALUES ('20466', '0', '20155', '20182', '1', '1.0', '<stream of 33318 bytes>', '33318') w as aborted. Call getNextException to see the cause. {code} Leave the migration finishing 4) Shut down the portal, update the DB connection properties in the portal-ext.properties file, start up the portal. and login as admin 5) Go to DM and click on the file +Expected+: The file to be displayed and manageable +Actual Behavior+: No preview will be displayed. If trying to update the same file, the exception will be thrown: {code} ERROR [http-bio-8080-exec-13][render_portlet_jsp:132] null com.liferay.portlet.documentlibrary.NoSuchContentException: No DLContent exists with the key {companyId=20155, repositoryId=20182, path=1, version=1.0} at com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistenceImpl.findByC_R_P_V(DLContentPersistenceImpl.java:1888) {code}

    Liferay Issues | 1 year ago | Istvan Dezsi
    com.liferay.portlet.documentlibrary.NoSuchContentException: No DLContent exists with the key {companyId=20155, repositoryId=20182, path=1, version=1.0}
  2. 0

    *Description:* 1) Obtain 6.2 vanilla, set {{dl.store.impl=com.liferay.portal.store.db.DBStore}} and DB connection to MySql. Start the server 2) Upload 1 document in the DM, then go to Control Panel - Server Administration - Data Migration 3) Perform migration with a fresh PostGreSQL DB as target. During the migration process, observe that when it get's to DLContent, this error is printed {code} 10:52:19,517 ERROR [liferay/convert_process-1][ConvertDatabase:281] java.sql.BatchUpdateException: Batch entry 0 INSERT INTO DLContent (contentId, groupId, companyId, repositoryId, path_, version, data_, size_) VALUES ('20466', '0', '20155', '20182', '1', '1.0', '<stream of 33318 bytes>', '33318') w as aborted. Call getNextException to see the cause. {code} Leave the migration finishing 4) Shut down the portal, update the DB connection properties in the portal-ext.properties file, start up the portal. and login as admin 5) Go to DM and click on the file +Expected+: The file to be displayed and manageable +Actual Behavior+: No preview will be displayed. If trying to update the same file, the exception will be thrown: {code} ERROR [http-bio-8080-exec-13][render_portlet_jsp:132] null com.liferay.portlet.documentlibrary.NoSuchContentException: No DLContent exists with the key {companyId=20155, repositoryId=20182, path=1, version=1.0} at com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistenceImpl.findByC_R_P_V(DLContentPersistenceImpl.java:1888) {code}

    Liferay Issues | 1 year ago | Istvan Dezsi
    com.liferay.portlet.documentlibrary.NoSuchFileException: {companyId=20202, repositoryId=20229, fileName=1, version=1.0, cause=com.liferay.portlet.documentlibrary.NoSuchContentException: No DLContent exists with the key {companyId=20202, repositoryId=20229, path=1, version=1.0}}

    Root Cause Analysis

    1. com.liferay.portlet.documentlibrary.NoSuchContentException

      No DLContent exists with the key {companyId=20155, repositoryId=20182, path=1, version=1.0}

      at com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistenceImpl.findByC_R_P_V()
    2. Liferay Portal Service
      DLContentPersistenceImpl.findByC_R_P_V
      1. com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistenceImpl.findByC_R_P_V(DLContentPersistenceImpl.java:1888)
      1 frame