Foros de discusión

Portlet portletId has a null portlet bag

juju bou, modificado hace 12 años.

Portlet portletId has a null portlet bag

Junior Member Mensajes: 44 Fecha de incorporación: 11/02/10 Mensajes recientes
Hello,

I keep getting an error while hot-deploying a portlet :

13:35:02,217 ERROR [HotDeployUtil:112] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for synergie-portlet
com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for synergie-portlet
	at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:45)
	at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:104)
	at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent(HotDeployUtil.java:109)
	at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(HotDeployUtil.java:182)
	at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:38)
	at com.liferay.portal.kernel.servlet.PortletContextListener.doPortalInit(PortletContextListener.java:99)
	at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
	at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:52)
	at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:50)
	at com.liferay.portal.kernel.servlet.PortletContextListener.contextInitialized(PortletContextListener.java:55)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
	at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1244)
	at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1342)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
	at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at com.liferay.portal.kernel.util.MethodHandler.invoke(MethodHandler.java:81)
	at com.liferay.portal.kernel.util.MethodHandler.invoke(MethodHandler.java:75)
	at com.liferay.portlet.PortletBagFactory.getPluginPropertyValue(PortletBagFactory.java:324)
	at com.liferay.portlet.PortletBagFactory.initScheduler(PortletBagFactory.java:356)
	at com.liferay.portlet.PortletBagFactory.initSchedulers(PortletBagFactory.java:391)
	at com.liferay.portlet.PortletBagFactory.create(PortletBagFactory.java:132)
	at com.liferay.portal.deploy.hot.PortletHotDeployListener.initPortlet(PortletHotDeployListener.java:456)
	at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:253)
	at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:101)
	... 19 more
Caused by: java.lang.NullPointerException
	at com.liferay.util.portlet.PortletProps.get(PortletProps.java:37)
	... 32 more
13:35:02,231 ERROR [PortletContextFactory:75] Portlet synergie_WAR_synergieportlet has a null portlet bag
13:35:02,231 ERROR [BasePortalLifecycle:45] java.lang.NullPointerException
java.lang.NullPointerException
	at com.liferay.portlet.PortletContextFactory._create(PortletContextFactory.java:82)
	at com.liferay.portlet.PortletContextFactory.create(PortletContextFactory.java:41)
	at com.liferay.portlet.PortletConfigFactoryImpl.create(PortletConfigFactoryImpl.java:52)
	at com.liferay.portlet.PortletConfigFactoryUtil.create(PortletConfigFactoryUtil.java:31)
	at com.liferay.portal.servlet.filters.language.LanguageFilter.init(LanguageFilter.java:70)
	at com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.doPortalInit(PortalClassLoaderFilter.java:95)
	at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
	at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:52)
	at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:50)
	at com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.init(PortalClassLoaderFilter.java:63)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4001)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4651)
	at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1244)
	at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1342)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
	at java.lang.Thread.run(Thread.java:679)
</init>



Is this familiar to anyone ?
Im running Liferay 6.0.6 on a tomcat server.
juju bou, modificado hace 12 años.

RE: Portlet portletId has a null portlet bag

Junior Member Mensajes: 44 Fecha de incorporación: 11/02/10 Mensajes recientes
nobody?
thumbnail
Zeeshan Khan, modificado hace 11 años.

RE: Portlet portletId has a null portlet bag

Expert Mensajes: 349 Fecha de incorporación: 21/07/11 Mensajes recientes
hi !

did you get the solution......?? I am also facing the same problem...... emoticon
thumbnail
Jay Trivedi, modificado hace 11 años.

RE: Portlet portletId has a null portlet bag

Regular Member Mensajes: 109 Fecha de incorporación: 24/11/12 Mensajes recientes
Clear Tomcat logs/worl/temp

Go to /liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib

delete that synergey portlet jar file, rebuild/recompile and restart server run app.
If changes doesn't reflect still restart once again. It helped me Lets test it.

Jay emoticon
thumbnail
Juan Gonzalez P, modificado hace 11 años.

RE: Portlet portletId has a null portlet bag

Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
Did you try restarting tomcat?
thumbnail
Zeeshan Khan, modificado hace 11 años.

RE: Portlet portletId has a null portlet bag

Expert Mensajes: 349 Fecha de incorporación: 21/07/11 Mensajes recientes
thnx guys....its been solved....actually it was version mismatch.......i used plugin sdk 6.0.6 and now its working fine...... emoticon
thumbnail
Syed Nasar, modificado hace 8 años.

RE: Portlet portletId has a null portlet bag

Junior Member Mensajes: 64 Fecha de incorporación: 3/09/15 Mensajes recientes
Hi I removed my portlet from webapps in liferay's tomcat folder and deployed it. It solved this issue..
thumbnail
Mufas Mydeen, modificado hace 8 años.

RE: Portlet portletId has a null portlet bag

New Member Mensajes: 7 Fecha de incorporación: 12/08/15 Mensajes recientes
Thank You nasar..It helped me lot..
saifulla soudagar, modificado hace 8 años.

RE: Portlet portletId has a null portlet bag

New Member Mensajes: 9 Fecha de incorporación: 4/08/14 Mensajes recientes
Hi friends,

earlier I also faced many times this issue I solved this by following steps

1)checking all configuration xml files of liferay .
2)deleting temp and work folder of tomcat server , restart server
3) also before getting error check recent file changed .