留言板

[Liferay 6.2 GA4 CE] Error while deploy portlet plugin

thumbnail
Gianluca Pindinelli,修改在9 年前。

[Liferay 6.2 GA4 CE] Error while deploy portlet plugin

Junior Member 帖子: 33 加入日期: 10-3-17 最近的帖子
Hi all!
I have a problem during the deployment of any portlet on Liferay 6.2 GA4 CE (tomcat bundle, clean installation): the error is:


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=xxxx-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: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 java.io.Reader.<init>(Reader.java:78)
	at java.io.InputStreamReader.<init>(InputStreamReader.java:72)
	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
</init></init></init>


The error appear after the message "n portlet for xxxx-portlet are available for use" and all portlets continue to work properly.

Why the error occurs and how to fix it?

Thank you in advance! ;)
thumbnail
Juan Gonzalez,修改在8 年前。

RE: [Liferay 6.2 GA4 CE] Error while deploy portlet plugin

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Hi Gianluca,

this seems very weird. Looking at the stacktrace seems that is related with ResourcesImporter. Which type of portlets did you try to deploy?
thumbnail
Gianluca Pindinelli,修改在8 年前。

RE: [Liferay 6.2 GA4 CE] Error while deploy portlet plugin

Junior Member 帖子: 33 加入日期: 10-3-17 最近的帖子
Juan Gonzalez:
Hi Gianluca,

this seems very weird. Looking at the stacktrace seems that is related with ResourcesImporter. Which type of portlets did you try to deploy?


Hi Juan,

all portlets are Spring MVC 4(.1.5) portlets.

Regards.
wei cheng,修改在7 年前。

RE: [Liferay 6.2 GA4 CE] Error while deploy portlet plugin

New Member 发布: 1 加入日期: 16-6-21 最近的帖子
I am running into the same issue when I trying to import activiti-explorer.war
thumbnail
Jan Geißler,修改在8 年前。

RE: [Liferay 6.2 GA4 CE] Error while deploy portlet plugin

Liferay Master 帖子: 735 加入日期: 11-7-5 最近的帖子
On first glance:
Did u try something with the resource importer, and are trying to import from a file which actually does not exist?
Wendy Linker,修改在8 年前。

RE: [Liferay 6.2 GA4 CE] Error while deploy portlet plugin

New Member 帖子: 3 加入日期: 15-2-6 最近的帖子
I am running into the same issue I believe. Here is a little more info for anyone else who may be looking into this. I haven't been able to locate what is causing the error yet.

My portlets are all Spring MVC 3 portlets. Error only started showing up in log after upgrading to Liferay 6.2 GA4 CE (from Liferay 6.1.0 GA1 CE ). Error does not get thrown if I upgrade to Liferay 6.2 GA2 or Liferay 6.2 GA3 instead.

I haven't seen any ill effects from the error message yet, but it does concern me a little since we were hoping to upgrade to this release in production.

Has anyone had any luck tracking down what is causing this (or seen any potential issues resulting from the error)?

Thanks.
thumbnail
James Falkner,修改在8 年前。

RE: [Liferay 6.2 GA4 CE] Error while deploy portlet plugin

Liferay Legend 帖子: 1399 加入日期: 10-9-17 最近的帖子
Wendy Linker:
I am running into the same issue I believe. Here is a little more info for anyone else who may be looking into this. I haven't been able to locate what is causing the error yet.

My portlets are all Spring MVC 3 portlets. Error only started showing up in log after upgrading to Liferay 6.2 GA4 CE (from Liferay 6.1.0 GA1 CE ). Error does not get thrown if I upgrade to Liferay 6.2 GA2 or Liferay 6.2 GA3 instead.

I haven't seen any ill effects from the error message yet, but it does concern me a little since we were hoping to upgrade to this release in production.

Has anyone had any luck tracking down what is causing this (or seen any potential issues resulting from the error)?

Thanks.



This sounds like LPS-55202. You could verify this by making the fix to the resources-importer plugin, recompiling and redeploying.
Wendy Linker,修改在8 年前。

RE: [Liferay 6.2 GA4 CE] Error while deploy portlet plugin

New Member 帖子: 3 加入日期: 15-2-6 最近的帖子
Thanks James. That was it. I had to adjust the code slightly. The fix you pointed me to still failed periodically. (I assume the servletcontext is getting removed between the null check and when it was being used in the code.) I ended up adding a try/catch block to handle.

Thanks again.