Foros de discusión
View all Portlets on Page from Control Panel
Oni Gunn, modificado hace 11 años.
View all Portlets on Page from Control Panel
New Member Mensajes: 9 Fecha de incorporación: 9/06/11 Mensajes recientes
Hi there,
I've upgraded our Liferay to 6.1.1. now some pages won't show up. I'm receiving a NullPointerException there.
Seems like some protlets doing some fancy stuff. I would like to know: Is there a possibility to get all used portlets on a page from the control panel? It would be enough to get the Portlet and maybe his preferences so I can figure out, what is going wrong there.
Best,
oni
I've upgraded our Liferay to 6.1.1. now some pages won't show up. I'm receiving a NullPointerException there.
14.11.2012 15:05:42 org.apache.catalina.core.ApplicationDispatcher invoke
SCHWERWIEGEND: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at com.liferay.portlet.PortletPreferencesFactoryImpl.getPortletPreferencesIds(PortletPreferencesFactoryImpl.java:289)
at com.liferay.portlet.PortletPreferencesFactoryImpl.getPortletPreferencesIds(PortletPreferencesFactoryImpl.java:246)
at com.liferay.portlet.PortletPreferencesFactoryUtil.getPortletPreferencesIds(PortletPreferencesFactoryUtil.java:119)
at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:504)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:97)
at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90)
at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54)
at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:5158)
at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1569)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:165)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:97)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doProcessTemplate(RuntimePortletImpl.java:531)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doDispatch(RuntimePortletImpl.java:394)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:228)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:216)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:113)
at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(portlet_jsp.java:507)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
Seems like some protlets doing some fancy stuff. I would like to know: Is there a possibility to get all used portlets on a page from the control panel? It would be enough to get the Portlet and maybe his preferences so I can figure out, what is going wrong there.
Best,
oni
Vishal Panchal, modificado hace 11 años.
RE: View all Portlets on Page from Control Panel
Expert Mensajes: 289 Fecha de incorporación: 20/05/12 Mensajes recientesOni Gunn:
Hi there,
I've upgraded our Liferay to 6.1.1. now some pages won't show up. I'm receiving a NullPointerException there.14.11.2012 15:05:42 org.apache.catalina.core.ApplicationDispatcher invoke SCHWERWIEGEND: Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at com.liferay.portlet.PortletPreferencesFactoryImpl.getPortletPreferencesIds(PortletPreferencesFactoryImpl.java:289) at com.liferay.portlet.PortletPreferencesFactoryImpl.getPortletPreferencesIds(PortletPreferencesFactoryImpl.java:246) at com.liferay.portlet.PortletPreferencesFactoryUtil.getPortletPreferencesIds(PortletPreferencesFactoryUtil.java:119) at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:504) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:97) at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90) at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54) at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:5158) at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1569) at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:165) at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:97) at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doProcessTemplate(RuntimePortletImpl.java:531) at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doDispatch(RuntimePortletImpl.java:394) at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:228) at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:216) at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:113) at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(portlet_jsp.java:507) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
Seems like some protlets doing some fancy stuff. I would like to know: Is there a possibility to get all used portlets on a page from the control panel? It would be enough to get the Portlet and maybe his preferences so I can figure out, what is going wrong there.
Best,
oni
Hi Oni Gunn,
I Don't have any idea why this error is occurring.
But yes we can take required portlets on a page from the control panel.
For that we have to make Ext plugin and make changes as below.
Remove them from the control panel
Add them to the "Add Applications" menu
Add "ADD_TO_PAGE" permissions
thats it.!
Thanks&Regards,
Vishal R. Panchal
Oni Gunn, modificado hace 11 años.
RE: View all Portlets on Page from Control Panel
New Member Mensajes: 9 Fecha de incorporación: 9/06/11 Mensajes recientes
Hi Vishal,
sorry but I'don't really get what I have to do know? What is the Ext plugin?
Best,
oni
sorry but I'don't really get what I have to do know? What is the Ext plugin?
Best,
oni
Vishal Panchal:
Oni Gunn:Hi there,
I've upgraded our Liferay to 6.1.1. now some pages won't show up. I'm receiving a NullPointerException there.14.11.2012 15:05:42 org.apache.catalina.core.ApplicationDispatcher invoke SCHWERWIEGEND: Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at com.liferay.portlet.PortletPreferencesFactoryImpl.getPortletPreferencesIds(PortletPreferencesFactoryImpl.java:289) at com.liferay.portlet.PortletPreferencesFactoryImpl.getPortletPreferencesIds(PortletPreferencesFactoryImpl.java:246) at com.liferay.portlet.PortletPreferencesFactoryUtil.getPortletPreferencesIds(PortletPreferencesFactoryUtil.java:119) at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:504) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:97) at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90) at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54) at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:5158) at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1569) at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:165) at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:97) at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doProcessTemplate(RuntimePortletImpl.java:531) at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doDispatch(RuntimePortletImpl.java:394) at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:228) at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:216) at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:113) at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(portlet_jsp.java:507) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
Seems like some protlets doing some fancy stuff. I would like to know: Is there a possibility to get all used portlets on a page from the control panel? It would be enough to get the Portlet and maybe his preferences so I can figure out, what is going wrong there.
Best,
oni
Hi Oni Gunn,
I Don't have any idea why this error is occurring.
But yes we can take required portlets on a page from the control panel.
For that we have to make Ext plugin and make changes as below.
Remove them from the control panel
Add them to the "Add Applications" menu
Add "ADD_TO_PAGE" permissions
thats it.!
Thanks&Regards,
Vishal R. Panchal
Vishal Panchal, modificado hace 11 años.
RE: View all Portlets on Page from Control Panel
Expert Mensajes: 289 Fecha de incorporación: 20/05/12 Mensajes recientes
Hi Oni,
First of all please go through this link for getting brief knowledge about Ext-plugin(basically what we can do using ext-plugin) and I request you to start with a simple Ext-plugin example otherwise you will be confused and you may not get what you desired.
use this link for creating sample EXT-plugin.
After that see this link it is having an example that how to get workflow portlet on page from control panel , you can follow the same methodology to getting your desired portlet on page from control panel.
Please let me know if any further inputs required..!
Thanks&Regards,
Vishal R. Panchal
First of all please go through this link for getting brief knowledge about Ext-plugin(basically what we can do using ext-plugin) and I request you to start with a simple Ext-plugin example otherwise you will be confused and you may not get what you desired.
use this link for creating sample EXT-plugin.
After that see this link it is having an example that how to get workflow portlet on page from control panel , you can follow the same methodology to getting your desired portlet on page from control panel.
Please let me know if any further inputs required..!
Thanks&Regards,
Vishal R. Panchal