Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 6.2.10 EE GA1
    • Fix Version/s: None
    • Labels:
      None

      Description

      Deploying a minimal portlet with no Liferay-specific descriptor files in it, will fail.
      See the attached file for the example portlet that fails.
      (essentially the jsr286-demo-portlet from the developer 1 training)

      Stacktrace:

      13:55:38,507 ERROR [liferay/hot_deploy-1][SerialDestination:70] Unable to process message {destinationName=liferay/hot_deploy, response=null, responseDestinationName=null, responseId=null, payload=null, values={groupId=0, command=deploy, companyId=0, servletContextName=real-jsr-portlet}}
      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:67)
      	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(Unknown Source)
      Caused by: java.lang.NullPointerException
      	at java.io.Reader.<init>(Unknown Source)
      	at java.io.InputStreamReader.<init>(Unknown Source)
      	at com.liferay.portal.kernel.util.StringUtil.read(StringUtil.java:2078)
      	at com.liferay.resourcesimporter.util.PluginPackageProperties.<init>(PluginPackageProperties.java:38)
      	at com.liferay.resourcesimporter.messaging.ResourcesImporterHotDeployMessageListener.initialize(ResourcesImporterHotDeployMessageListener.java:53)
      	at com.liferay.resourcesimporter.messaging.ResourcesImporterHotDeployMessageListener.onDeploy(ResourcesImporterHotDeployMessageListener.java:86)
      	at com.liferay.portal.kernel.messaging.HotDeployMessageListener.doReceive(HotDeployMessageListener.java:55)
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
      	... 5 more
      

      It seems the Resources Importer always expects at least a liferay-plugin-package.properties.

      See my message (and David H. Nebinger's answer to it) on the forum.

      Undeploying the resources-importer-web module and then retrying the deployment of the minimal portlet works.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 17 weeks, 3 days ago