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

An error will be displayed after adding OneDrive excel file

    Description

    Steps to reproduce:

    1. Set up the OneDrive configuration
    2. Go to add a page with a DM widget
    3. Add a OneDrive excel file

    Expected Result:

    The User will be redirected to the Onedrive Excel editor page after click the "Excel"

    Actual Result:
    The user will be redirected to a blank page and the errors will be displayed in the console as below.

    Note: This issue is only for Excel. Doc and PowerPoint are working well.

    Exception in thread "liferay/background_task-17" java.lang.NoClassDefFoundError: org/apache/commons/compress/archivers/zip/ZipFile
            at org.apache.poi.openxml4j.opc.OPCPackage.create(OPCPackage.java:374)
            at org.apache.poi.xssf.usermodel.XSSFWorkbook.newPackage(XSSFWorkbook.java:498)
            at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:263)
            at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:259)
            at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:247)
            at com.liferay.document.library.opener.onedrive.web.internal.background.task.UploadOneDriveDocumentBackgroundTaskExecutor._uploadFile(UploadOneDriveDocumentBackgroundTaskExecutor.java:297)
            at com.liferay.document.library.opener.onedrive.web.internal.background.task.UploadOneDriveDocumentBackgroundTaskExecutor.execute(UploadOneDriveDocumentBackgroundTaskExecutor.java:109)
            at com.liferay.portal.background.task.internal.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:63)
            at com.liferay.portal.kernel.backgroundtask.DelegatingBackgroundTaskExecutor.execute(DelegatingBackgroundTaskExecutor.java:41)
            at com.liferay.portal.background.task.internal.ThreadLocalAwareBackgroundTaskExecutor.execute(ThreadLocalAwareBackgroundTaskExecutor.java:72)
            at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:136)
            at com.liferay.portal.kernel.messaging.BaseMessageListener.doReceive(BaseMessageListener.java:48)
            at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:34)
            at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
            at com.liferay.portal.messaging.internal.ParallelDestination$1.run(ParallelDestination.java:56)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.ClassNotFoundException: org.apache.commons.compress.archivers.zip.ZipFile cannot be found by com.liferay.document.library.opener.onedrive.web_3.0.12
            at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:508)
            at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:419)
            at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:411)
            at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:151)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
            ... 18 more 

    Reproduced on:
    Tomcat 9.0.43 + MySQL 5.7. Portal master DXP GIT ID: 4c115bd4ff00a1fc7f1a0ecb7fad99fa64cada9f.

      Attachments

        Activity

          People

          Assignee:
          jeremy.chen Jeremy Chen
          Reporter:
          jeremy.chen Jeremy Chen
          Participants of an Issue:
          Recent user:
          Sophia Zhang
          Engineering Assignee:
          Adolfo PĂ©rez
          Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

            Dates

            Created:
            Updated:
            Resolved:
            Days since last comment:
            9 weeks, 6 days ago

              Packages

              Version Package
              7.4.13 DXP GA1
              7.4.3.4 CE GA4
              Master