Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 6.0.12 EE, 6.1.0 CE RC1
-
Fix Version/s: --Sprint 12/11, 6.1.0 CE RC1, 6.0.X EE
-
Component/s: Portlet
-
Labels:
-
Branch Version/s:6.0.x
-
Backported to Branch:Committed
-
Similar Issues:
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

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.