Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Rahul Pande
HotDeployException on portlet deploy
3 de Maio de 2012 05:15
Resposta

Rahul Pande

Ranking: Expert

Mensagens: 308

Data de entrada: 6 de Julho de 2010

Mensagens recentes

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
3 de Maio de 2012 06:31
Resposta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensagens: 11287

Data de entrada: 1 de Setembro de 2006

Mensagens recentes

You need a blank portlet.properties file. Create one in your src folder, rebuild and redeploy.
Rahul Pande
RE: HotDeployException on portlet deploy
4 de Maio de 2012 01:56
Resposta

Rahul Pande

Ranking: Expert

Mensagens: 308

Data de entrada: 6 de Julho de 2010

Mensagens recentes

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
4 de Maio de 2012 02:10
Resposta

Subhash Shah

Ranking: Junior Member

Mensagens: 77

Data de entrada: 29 de Novembro de 2011

Mensagens recentes

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
4 de Maio de 2012 02:38
Resposta

Rahul Pande

Ranking: Expert

Mensagens: 308

Data de entrada: 6 de Julho de 2010

Mensagens recentes

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
6 de Maio de 2012 15:57
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 7949

Data de entrada: 23 de Março de 2010

Mensagens recentes

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
6 de Maio de 2012 23:56
Resposta

Rahul Pande

Ranking: Expert

Mensagens: 308

Data de entrada: 6 de Julho de 2010

Mensagens recentes

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
7 de Maio de 2012 15:33
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 7949

Data de entrada: 23 de Março de 2010

Mensagens recentes

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