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

Publishing a page with a Wiki portlet fails if Wiki Portlet has not been selected as Staged Content

    Details

      Description

      Publishing a page with a Wiki portlet fails if Wiki Portlet has not been selected as Staged Content

      Steps to reproduce:

      1. Create a site "A"
      2. Go to Publishing Tools > Staging and activate it as Local Live selecting Documents and Media, Mobile Device Families and Web Content as Staged Content.
      3. Add a public page "Page A"
      4. Add a wiki portlet to that Page and edit & save its configuration.
      5. Click on Publish to Live and then again on Publish to Live

      Expected result:

      • Page A is published without errors

      Actual result:

      • Page A is not published and an error is shown in server logs:
      08:29:41,515 ERROR [liferay/background_task-1][BackgroundTaskMessageListener:156] Unable to execute background task
      com.liferay.portal.kernel.exception.SystemException: java.lang.NullPointerException
              at com.liferay.portlet.exportimport.service.impl.ExportImportLocalServiceImpl.exportLayoutsAsFile(ExportImportLocalServiceImpl.java:68)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:84)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:173)
              at com.sun.proxy.$Proxy86.exportLayoutsAsFile(Unknown Source)
              at com.liferay.exportimport.kernel.service.ExportImportLocalServiceUtil.exportLayoutsAsFile(ExportImportLocalServiceUtil.java:46)
              at com.liferay.exportimport.background.task.LayoutStagingBackgroundTaskExecutor.execute(LayoutStagingBackgroundTaskExecutor.java:119)
              at com.liferay.portal.kernel.backgroundtask.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:58)
              at com.liferay.portal.kernel.backgroundtask.DelegatingBackgroundTaskExecutor.execute(DelegatingBackgroundTaskExecutor.java:43)
              at com.liferay.portal.kernel.backgroundtask.ThreadLocalAwareBackgroundTaskExecutor.execute(ThreadLocalAwareBackgroundTaskExecutor.java:56)
              at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:121)
              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:52)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NullPointerException
              at com.liferay.exportimport.kernel.lar.ExportImportClassedModelUtil.getClassName(ExportImportClassedModelUtil.java:30)
              at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil._getStagedModelDataHandler(StagedModelDataHandlerUtil.java:450)
              at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil.exportStagedModel(StagedModelDataHandlerUtil.java:146)
              at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil.exportReferenceStagedModel(StagedModelDataHandlerUtil.java:75)
              at com.liferay.wiki.exportimport.portlet.preferences.processor.WikiExportImportPortletPreferencesProcessor.processExportPortletPreferences(WikiExportImportPortletPreferencesProcessor.java:89)
              at com.liferay.exportimport.controller.PortletExportController.exportPortletPreference(PortletExportController.java:936)
              at com.liferay.exportimport.controller.PortletExportController.exportPortletPreferences(PortletExportController.java:1027)
              at com.liferay.exportimport.controller.PortletExportController.exportPortlet(PortletExportController.java:750)
              at com.liferay.exportimport.controller.LayoutExportController.doExport(LayoutExportController.java:523)
              at com.liferay.exportimport.controller.LayoutExportController.export(LayoutExportController.java:152)
              at com.liferay.portlet.exportimport.service.impl.ExportImportLocalServiceImpl.exportLayoutsAsFile(ExportImportLocalServiceImpl.java:62)
              ... 22 more
      

        Attachments

        1. fix_62.png
          fix_62.png
          29 kB
        2. fix.png
          fix.png
          40 kB
        3. reproduce.png
          reproduce.png
          62 kB

          Issue Links

            Activity

              People

              Assignee:
              melody.wu Melody Wu
              Reporter:
              daniel.couso Daniel Couso
              Participants of an Issue:
              Recent user:
              Michael Saechang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 45 weeks ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 CE RC1