论坛

主页 » Liferay Portal » English » 3. Development

组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
Rahul Pande
HotDeployException on portlet deploy
2012年5月3日 上午5:15
答复

Rahul Pande

等级: Regular Member

帖子: 220

加入日期: 2010年7月6日

最近的帖子

Hi All,

I am getting hot deploy exception on deploying a plugin portlet. I googled for the answer but didn't find the solution and the cause of this problem.
Following is the error log of the exception.

 1com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for connect-jobs-portlet
 2        at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:45)
 3        at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:104)
 4        at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent(HotDeployUtil.java:109)
 5        at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(HotDeployUtil.java:182)
 6        at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:38)
 7        at com.liferay.portal.kernel.servlet.PortletContextListener.doPortalInit(PortletContextListener.java:99)
 8        at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
 9        at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:52)
10        at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:50)
11        at com.liferay.portal.kernel.servlet.PortletContextListener.contextInitialized(PortletContextListener.java:55)
12        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)
13        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
14        at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1244)
15        at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1342)
16        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
17        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
18        at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
19        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
20        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
21        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
22        at java.lang.Thread.run(Thread.java:619)
23Caused by: java.lang.reflect.InvocationTargetException
24        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
25        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
26        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
27        at java.lang.reflect.Method.invoke(Method.java:597)
28        at com.liferay.portal.kernel.util.MethodHandler.invoke(MethodHandler.java:81)
29        at com.liferay.portal.kernel.util.MethodHandler.invoke(MethodHandler.java:75)
30        at com.liferay.portlet.PortletBagFactory.getPluginPropertyValue(PortletBagFactory.java:324)
31        at com.liferay.portlet.PortletBagFactory.newAssetRendererFactoryInstances(PortletBagFactory.java:452)
32        at com.liferay.portlet.PortletBagFactory.create(PortletBagFactory.java:196)
33        at com.liferay.portal.deploy.hot.PortletHotDeployListener.initPortlet(PortletHotDeployListener.java:456)
34        at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:253)
35        at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:101)
36        ... 19 more
37Caused by: java.lang.NullPointerException
38        at com.liferay.util.portlet.PortletProps.get(PortletProps.java:37)
39        ... 31 more


Does anyone faced this issue before ? I am using LR 6.0.6 with Tomcat 6.0.29

Thanks
Rahul
David H Nebinger
RE: HotDeployException on portlet deploy
2012年5月3日 上午6:31
答复

David H Nebinger

等级: Liferay Legend

帖子: 6134

加入日期: 2006年9月1日

最近的帖子

You need a blank portlet.properties file. Create one in your src folder, rebuild and redeploy.
Rahul Pande
RE: HotDeployException on portlet deploy
2012年5月4日 上午1:56
答复

Rahul Pande

等级: Regular Member

帖子: 220

加入日期: 2010年7月6日

最近的帖子

Hi David,

Thanks for quick reply. But I already have portlet.properties file in the portlet and still it gives me the error.
Is there any other cause for the exception ?

Thanks
Rahul
Subhash Shah
RE: HotDeployException on portlet deploy
2012年5月4日 上午2:10
答复

Subhash Shah

等级: Junior Member

帖子: 77

加入日期: 2011年11月29日

最近的帖子

The problem seems to be that the configuration is not initialized and because of that it throws the exception. I can think of 2 ways to identify the cause.

1. Is it possible for you to debug and check if you get the configuration object in PortletPros.
2. Can you please check if your deployed portlet has portlet.properties file in WEB-INF/classes folder ?

Please let me know if you find the solution or I can be of any more help.
Rahul Pande
RE: HotDeployException on portlet deploy
2012年5月4日 上午2:38
答复

Rahul Pande

等级: Regular Member

帖子: 220

加入日期: 2010年7月6日

最近的帖子

Hi Subhash,

1. Is it possible for you to debug and check if you get the configuration object in PortletPros.

My portlet has portlet level permissions defined in default.xml, whose path I have mentioned in portlet.properties. The permissions are working as expected so it is able to read the portlet.properties

2. Can you please check if your deployed portlet has portlet.properties file in WEB-INF/classes folder ?

I checked in the server it is there in classes folder.
Hitoshi Ozawa
RE: HotDeployException on portlet deploy
2012年5月6日 下午3:57
答复

Hitoshi Ozawa

等级: Liferay Legend

帖子: 7990

加入日期: 2010年3月23日

最近的帖子

Is your portlet.properties empty or does it have some values in it? If you do have something in it, check for spelling and upper/lower cases in your source code.

Also, did you include any liferay jar file in your portlet?
Rahul Pande
RE: HotDeployException on portlet deploy
2012年5月6日 下午11:56
答复

Rahul Pande

等级: Regular Member

帖子: 220

加入日期: 2010年7月6日

最近的帖子

Hi Hitoshi,

As I mentioned in previous post I've only default.xml entry in portlet.properties file and it is working fine and I didn't include any liferay jars in my portlet.

Thanks
Rahul
Hitoshi Ozawa
RE: HotDeployException on portlet deploy
2012年5月7日 下午3:33
答复

Hitoshi Ozawa

等级: Liferay Legend

帖子: 7990

加入日期: 2010年3月23日

最近的帖子

Sorry, out of ideas. Have to see the portlet in question. Can you attach it here.