PUBLIC - Liferay Portal Community Edition

missing portlet.properties on portlet deploy causes exception in log

Details

  • Branch Version/s:
    6.0.x
  • Backported to Branch:
    Committed
  • Similar Issues:
    Show 5 results 

Description

If a portlet has services builded, there will be service.properties in WEB-INF/classes. However, if portlet.properties is missing, there will be an exception during portlet deployment.
------------------------------------------------------------------------------------------------------------------
java.lang.ExceptionInInitializerError
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.batman.service.ClpSerializer.getServletContextName(ClpSerializer.java:54)
at com.batman.service.messaging.ClpMessageListener.getServletContextName(ClpMessageListener.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.getClpServletContextName(BaseHotDeployListener.java:61)
at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.registerClpMessageListeners(BaseHotDeployListener.java:127)
at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.doInvokeDeploy(PluginPackageHotDeployListener.java:115)
at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.invokeDeploy(PluginPackageHotDeployListener.java:53)
...
Caused by: java.lang.NullPointerException
at com.liferay.portal.configuration.ConfigurationImpl.getFileName(ConfigurationImpl.java:500)
at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:133)
at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:64)
at com.liferay.portal.configuration.ConfigurationFactoryImpl.getConfiguration(ConfigurationFactoryImpl.java:28)
at com.liferay.portal.kernel.configuration.ConfigurationFactoryUtil.getConfiguration(ConfigurationFactoryUtil.java:25)
at com.liferay.util.portlet.PortletProps.<init>(PortletProps.java:65)
at com.liferay.util.portlet.PortletProps.<clinit>(PortletProps.java:69)
... 39 more
------------------------------------------------------------------------------------------------------------------

Steps:
+ create empty portlet
+ add single entity in service.xml
+ build services
+ ensure that portlet.properties is not in portlets folder
+ deploy war

Activity

Hide
Ryan Wan added a comment -

PASSED Manual Testing following steps in description.

Reproduced on:
Tomcat 6.0.32 + MySQL 5.1.58. 6.1.x Revision 87525. Plugins Revision 87525.

Fixed on:
Tomcat 7.0.22 + MySQL 5.1.58. 6.1.x Revision 90445. Plugins Revision 90445.

Show
Ryan Wan added a comment - PASSED Manual Testing following steps in description. Reproduced on: Tomcat 6.0.32 + MySQL 5.1.58. 6.1.x Revision 87525. Plugins Revision 87525. Fixed on: Tomcat 7.0.22 + MySQL 5.1.58. 6.1.x Revision 90445. Plugins Revision 90445.
Hide
Vicki Tsang added a comment -

This is being bulk closed in preparation for the new workflow.

Show
Vicki Tsang added a comment - This is being bulk closed in preparation for the new workflow.
Hide
Paul Piao added a comment - - edited

PASSED Manual Testing following steps in description.

Fixed on:
Tomcat 7.0 + MySQL 5. 6.1.x GIT ID: d661fa9accc3f90bfbf63d2c67e90891ce4929d7. 6.1.x Plugin GIT ID: 79edc1c03262952a4a0a0e15c40b60dc810cc3d4.
Tomcat 6.0.33 + MySQL 5. 6.0.x GIT ID: 42a2ae4b307363ecfa126dd037a2952238aa9633. 6.0.x Plugin GIT ID: b2e8b6b0d6aeb557a4aa46c4a6e645803573a512.
I can not see error message in the console.

Show
Paul Piao added a comment - - edited PASSED Manual Testing following steps in description. Fixed on: Tomcat 7.0 + MySQL 5. 6.1.x GIT ID: d661fa9accc3f90bfbf63d2c67e90891ce4929d7. 6.1.x Plugin GIT ID: 79edc1c03262952a4a0a0e15c40b60dc810cc3d4. Tomcat 6.0.33 + MySQL 5. 6.0.x GIT ID: 42a2ae4b307363ecfa126dd037a2952238aa9633. 6.0.x Plugin GIT ID: b2e8b6b0d6aeb557a4aa46c4a6e645803573a512. I can not see error message in the console.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: