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

When using resourceImporter reimporting a theme with content throws a NullPointerException

    Details

      Description

      Steps to reproduce:

      1. Install a clean Liferay bundle
      2. Deploy the attached resources-importer-web-6.2.10.4.war
      3. Deploy the customer's theme (I have it on my external HD; it is too big to attach to the ticket)
      4. Note that the theme is successfully deployed and the content is deployed to a site called 'Portal'
      5. Re-deploy the customer's theme

      Expected Result:
      The theme will be deployed and/or the content will be imported.
      Actual Result:
      The following error is thrown in the logs:

      22:12:23,931 WARN  [liferay/hot_deploy-1][FileSystemImporter:1041] Unable to import layout {"title":"Blogs","name":"Blogs","columns":[[{"portletPreferences":{"portletSetupUseCustomTitle":"true","groupId":"20442","portletSetupShowBorders":"false","portletSetupCss":{"advancedData":{"customCSSClassName":"tempo-title"}},"portletSetupTitle_en_US":"","articleId":"BlogTitle.xml"},"portletId":"56"},{"portletPreferences":{"portletSetupUseCustomTitle":"true","groupId":"20442","portletSetupShowBorders":"false","portletSetupCss":{"advancedData":{"customCSSClassName":"tempo-carousel"}},"portletSetupTitle_en_US":"","articleId":"TempoCarousel.xml"},"portletId":"56"},{"portletPreferences":{"displayStyle":"abstracts","portletSetupUseCustomTitle":"true","groupId":"20442","queryContains0":"true","queryName0":"assetTags","enableRelatedAssets":"false","portletSetupShowBorders":"false","abstractLength":"200","delta":"1","showAddContentButton":"true","enableSocialBookmarks":"false","portletSetupTitle_en_US":"","paginationType":"simple","queryValues0":"tempo","queryAndOperator0":"false"},"portletId":"33"}]],"friendlyURL":"/blogs"}
      java.lang.NullPointerException
      	at com.liferay.portal.model.PortletConstants.hasUserId(PortletConstants.java:231)
      	at com.liferay.portlet.PortletPreferencesFactoryImpl.getLayoutPortletSetup(PortletPreferencesFactoryImpl.java:198)
      	at com.liferay.portlet.PortletPreferencesFactoryUtil.getLayoutPortletSetup(PortletPreferencesFactoryUtil.java:87)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayoutColumnPortlet(FileSystemImporter.java:1100)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayoutColumn(FileSystemImporter.java:1070)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayoutColumns(FileSystemImporter.java:1147)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayout(FileSystemImporter.java:1026)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayouts(FileSystemImporter.java:1268)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayout(FileSystemImporter.java:1037)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayouts(FileSystemImporter.java:1268)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.setUpSitemap(FileSystemImporter.java:1776)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.doImportResources(FileSystemImporter.java:1303)
      	at com.liferay.resourcesimporter.util.ResourceImporter.importResources(ResourceImporter.java:47)
      	at com.liferay.resourcesimporter.messaging.ResourcesImporterHotDeployMessageListener.importResources(ResourcesImporterHotDeployMessageListener.java:128)
      	at com.liferay.resourcesimporter.messaging.ResourcesImporterHotDeployMessageListener.initialize(ResourcesImporterHotDeployMessageListener.java:77)
      	at com.liferay.resourcesimporter.messaging.ResourcesImporterHotDeployMessageListener.onDeploy(ResourcesImporterHotDeployMessageListener.java:90)
      	at com.liferay.portal.kernel.messaging.HotDeployMessageListener.doReceive(HotDeployMessageListener.java:55)
      	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.SerialDestination$1.run(SerialDestination.java:65)
      	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:745)
      22:12:23,935 WARN  [liferay/hot_deploy-1][FileSystemImporter:1041] Unable to import layout {"title":"Tempo","layoutTemplateId":"1_column","name":"TEMPO","columns":[],"friendlyURL":"/tempo","layouts":[{"title":"Tempo Home","name":"Tempo Home","columns":[[{"portletPreferences":{"portletSetupUseCustomTitle":"true","groupId":"20442","portletSetupShowBorders":"false","portletSetupCss":{"advancedData":{"customCSSClassName":"tempo-title"}},"portletSetupTitle_en_US":"","articleId":"TempoTitle.xml"},"portletId":"56"},{"portletPreferences":{"portletSetupUseCustomTitle":"true","groupId":"20442","portletSetupShowBorders":"false","portletSetupCss":{"advancedData":{"customCSSClassName":"tempo-carousel"}},"portletSetupTitle_en_US":"","articleId":"TempoCarousel.xml"},"portletId":"56"},{"portletPreferences":{"displayStyle":"abstracts","portletSetupUseCustomTitle":"true","groupId":"20442","queryContains0":"true","queryName0":"assetTags","enableRelatedAssets":"false","portletSetupShowBorders":"false","abstractLength":"200","delta":"1","showAddContentButton":"true","enableSocialBookmarks":"false","portletSetupTitle_en_US":"","paginationType":"simple","queryValues0":"tempo","queryAndOperator0":"false"},"portletId":"101"}]],"friendlyURL":"/tempo-home"},{"title":"Videos","name":"Videos","columns":[[{"portletPreferences":{"portletSetupUseCustomTitle":"true","groupId":"20442","portletSetupShowBorders":"false","portletSetupCss":{"advancedData":{"customCSSClassName":"tempo-title"}},"portletSetupTitle_en_US":"","articleId":"TempoTitle.xml"},"portletId":"56"},{"portletPreferences":{"portletSetupUseCustomTitle":"true","groupId":"20442","portletSetupShowBorders":"false","portletSetupCss":{"advancedData":{"customCSSClassName":"tempo-carousel"}},"portletSetupTitle_en_US":"","articleId":"TempoCarousel.xml"},"portletId":"56"},{"portletPreferences":{"displayStyle":"abstracts","portletSetupUseCustomTitle":"true","groupId":"20442","queryContains0":"true","queryName0":"assetTags","enableRelatedAssets":"false","portletSetupShowBorders":"false","abstractLength":"200","delta":"1","showAddContentButton":"true","enableSocialBookmarks":"false","portletSetupTitle_en_US":"","paginationType":"simple","queryValues0":"tempo","queryAndOperator0":"false"},"portletId":"101"}]],"friendlyURL":"/tempo-videos"},{"title":"White Papers","name":"White Papers","columns":[[{"portletPreferences":{"portletSetupUseCustomTitle":"true","groupId":"20442","portletSetupShowBorders":"false","portletSetupCss":{"advancedData":{"customCSSClassName":"tempo-title"}},"portletSetupTitle_en_US":"","articleId":"TempoTitle.xml"},"portletId":"56"},{"portletPreferences":{"portletSetupUseCustomTitle":"true","groupId":"20442","portletSetupShowBorders":"false","portletSetupCss":{"advancedData":{"customCSSClassName":"tempo-carousel"}},"portletSetupTitle_en_US":"","articleId":"TempoCarousel.xml"},"portletId":"56"},{"portletPreferences":{"displayStyle":"abstracts","portletSetupUseCustomTitle":"true","groupId":"20442","queryContains0":"true","queryName0":"assetTags","enableRelatedAssets":"false","portletSetupShowBorders":"false","abstractLength":"200","delta":"1","showAddContentButton":"true","enableSocialBookmarks":"false","portletSetupTitle_en_US":"","paginationType":"simple","queryValues0":"tempo","queryAndOperator0":"false"},"portletId":"101"}]],"friendlyURL":"/tempo-white-papers"},{"title":"Blogs","name":"Blogs","columns":[[{"portletPreferences":{"portletSetupUseCustomTitle":"true","groupId":"20442","portletSetupShowBorders":"false","portletSetupCss":{"advancedData":{"customCSSClassName":"tempo-title"}},"portletSetupTitle_en_US":"","articleId":"BlogTitle.xml"},"portletId":"56"},{"portletPreferences":{"portletSetupUseCustomTitle":"true","groupId":"20442","portletSetupShowBorders":"false","portletSetupCss":{"advancedData":{"customCSSClassName":"tempo-carousel"}},"portletSetupTitle_en_US":"","articleId":"TempoCarousel.xml"},"portletId":"56"},{"portletPreferences":{"displayStyle":"abstracts","portletSetupUseCustomTitle":"true","groupId":"20442","queryContains0":"true","queryName0":"assetTags","enableRelatedAssets":"false","portletSetupShowBorders":"false","abstractLength":"200","delta":"1","showAddContentButton":"true","enableSocialBookmarks":"false","portletSetupTitle_en_US":"","paginationType":"simple","queryValues0":"tempo","queryAndOperator0":"false"},"portletId":"33"}]],"friendlyURL":"/blogs"}]}
      java.lang.NullPointerException
      	at com.liferay.portal.model.PortletConstants.hasUserId(PortletConstants.java:231)
      	at com.liferay.portlet.PortletPreferencesFactoryImpl.getLayoutPortletSetup(PortletPreferencesFactoryImpl.java:198)
      	at com.liferay.portlet.PortletPreferencesFactoryUtil.getLayoutPortletSetup(PortletPreferencesFactoryUtil.java:87)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayoutColumnPortlet(FileSystemImporter.java:1100)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayoutColumn(FileSystemImporter.java:1070)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayoutColumns(FileSystemImporter.java:1147)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayout(FileSystemImporter.java:1026)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayouts(FileSystemImporter.java:1268)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayout(FileSystemImporter.java:1037)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayouts(FileSystemImporter.java:1268)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.setUpSitemap(FileSystemImporter.java:1776)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.doImportResources(FileSystemImporter.java:1303)
      	at com.liferay.resourcesimporter.util.ResourceImporter.importResources(ResourceImporter.java:47)
      	at com.liferay.resourcesimporter.messaging.ResourcesImporterHotDeployMessageListener.importResources(ResourcesImporterHotDeployMessageListener.java:128)
      	at com.liferay.resourcesimporter.messaging.ResourcesImporterHotDeployMessageListener.initialize(ResourcesImporterHotDeployMessageListener.java:77)
      	at com.liferay.resourcesimporter.messaging.ResourcesImporterHotDeployMessageListener.onDeploy(ResourcesImporterHotDeployMessageListener.java:90)
      	at com.liferay.portal.kernel.messaging.HotDeployMessageListener.doReceive(HotDeployMessageListener.java:55)
      	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.SerialDestination$1.run(SerialDestination.java:65)
      	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:745)
      22:12:23,936 ERROR [liferay/hot_deploy-1][SerialDestination:68] Unable to process message {destinationName=liferay/hot_deploy, response=null, responseDestinationName=null, responseId=null, payload=null, values={groupId=0, command=deploy, companyId=0, servletContextName=BW-theme}}
      com.liferay.portal.kernel.messaging.MessageListenerException: java.lang.NullPointerException
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
      	at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:65)
      	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:745)
      Caused by: java.lang.NullPointerException
      	at com.liferay.portal.model.PortletConstants.hasUserId(PortletConstants.java:231)
      	at com.liferay.portlet.PortletPreferencesFactoryImpl.getLayoutPortletSetup(PortletPreferencesFactoryImpl.java:198)
      	at com.liferay.portlet.PortletPreferencesFactoryUtil.getLayoutPortletSetup(PortletPreferencesFactoryUtil.java:87)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayoutColumnPortlet(FileSystemImporter.java:1100)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayoutColumn(FileSystemImporter.java:1070)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayoutColumns(FileSystemImporter.java:1147)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayout(FileSystemImporter.java:1026)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayouts(FileSystemImporter.java:1268)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayout(FileSystemImporter.java:1037)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayouts(FileSystemImporter.java:1268)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.setUpSitemap(FileSystemImporter.java:1776)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.doImportResources(FileSystemImporter.java:1303)
      	at com.liferay.resourcesimporter.util.ResourceImporter.importResources(ResourceImporter.java:47)
      	at com.liferay.resourcesimporter.messaging.ResourcesImporterHotDeployMessageListener.importResources(ResourcesImporterHotDeployMessageListener.java:128)
      	at com.liferay.resourcesimporter.messaging.ResourcesImporterHotDeployMessageListener.initialize(ResourcesImporterHotDeployMessageListener.java:77)
      	at com.liferay.resourcesimporter.messaging.ResourcesImporterHotDeployMessageListener.onDeploy(ResourcesImporterHotDeployMessageListener.java:90)
      	at com.liferay.portal.kernel.messaging.HotDeployMessageListener.doReceive(HotDeployMessageListener.java:55)
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
      	... 5 more
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brian.chan Brian Chan
                Reporter:
                samuel.ziemer Sam Ziemer
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 38 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 Beta 6