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

Resources Importer NPE with deploying Theme

    Details

    • Fix Priority:
      3

      Description

      Deploying a new theme created with the Themes Generator causes an NPE

      Steps to Reproduce

      1. Create a new theme with the Themes Generator: yo liferay-theme
      2. Deploy the theme to Liferay 7: gulp deploy

      The issue seems to be related to the resources-importer-developer-mode-enabled=true setting in the liferay-plugin-package.properties file as removing the setting prevents the error from occurring.

      The error that occurs when deploy the theme:

      22:02:53,739 ERROR [liferay/hot_deploy-1][SerialDestination:61] Unable to process message {destinationName=liferay/hot_deploy, response=null, responseDestinationName=null, responseId=null, payload=null, values={companyId=0, groupId=0, command=deploy, servletContextName=my-liferay-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:74)
      	at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:58)
      	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.resources.importer.util.FileSystemImporter.setUpAssets(FileSystemImporter.java:1822)
      	at com.liferay.exportimport.resources.importer.util.FileSystemImporter.doImportResources(FileSystemImporter.java:1332)
      	at com.liferay.exportimport.resources.importer.util.ResourceImporter.importResources(ResourceImporter.java:49)
      	at com.liferay.exportimport.resources.importer.messaging.ResourcesImporterHotDeployMessageListener._importResources(ResourcesImporterHotDeployMessageListener.java:156)
      	at com.liferay.exportimport.resources.importer.messaging.ResourcesImporterHotDeployMessageListener.initialize(ResourcesImporterHotDeployMessageListener.java:88)
      	at com.liferay.exportimport.resources.importer.messaging.ResourcesImporterHotDeployMessageListener.onDeploy(ResourcesImporterHotDeployMessageListener.java:101)
      	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

        1. bank-theme.war
          2.17 MB
        2. error-stack.png
          error-stack.png
          212 kB

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 11 weeks, 2 days ago

                Packages

                Version Package
                7.0.1 CE GA2