Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Oni Gunn
View all Portlets on Page from Control Panel
14 de noviembre de 2012 7:05
Respuesta

Oni Gunn

Ranking: New Member

Mensajes: 9

Fecha de incorporación: 8 de junio de 2011

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.

 1
 214.11.2012 15:05:42 org.apache.catalina.core.ApplicationDispatcher invoke
 3SCHWERWIEGEND: Servlet.service() for servlet jsp threw exception
 4java.lang.NullPointerException
 5        at com.liferay.portlet.PortletPreferencesFactoryImpl.getPortletPreferencesIds(PortletPreferencesFactoryImpl.java:289)
 6        at com.liferay.portlet.PortletPreferencesFactoryImpl.getPortletPreferencesIds(PortletPreferencesFactoryImpl.java:246)
 7        at com.liferay.portlet.PortletPreferencesFactoryUtil.getPortletPreferencesIds(PortletPreferencesFactoryUtil.java:119)
 8        at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:504)
 9        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
10        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
11        at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:97)
12        at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90)
13        at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54)
14        at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:5158)
15        at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1569)
16        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:165)
17        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:97)
18        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doProcessTemplate(RuntimePortletImpl.java:531)
19        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doDispatch(RuntimePortletImpl.java:394)
20        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:228)
21        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:216)
22        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:113)
23        at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(portlet_jsp.java:507)
24        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
25        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
26        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
27        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
28        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
29        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
30        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
31        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
32        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
33        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
34        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
35        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
RE: View all Portlets on Page from Control Panel
15 de noviembre de 2012 22:41
Respuesta

Vishal Panchal

Ranking: Expert

Mensajes: 279

Fecha de incorporación: 20 de mayo de 2012

Mensajes recientes

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.

 1
 214.11.2012 15:05:42 org.apache.catalina.core.ApplicationDispatcher invoke
 3SCHWERWIEGEND: Servlet.service() for servlet jsp threw exception
 4java.lang.NullPointerException
 5        at com.liferay.portlet.PortletPreferencesFactoryImpl.getPortletPreferencesIds(PortletPreferencesFactoryImpl.java:289)
 6        at com.liferay.portlet.PortletPreferencesFactoryImpl.getPortletPreferencesIds(PortletPreferencesFactoryImpl.java:246)
 7        at com.liferay.portlet.PortletPreferencesFactoryUtil.getPortletPreferencesIds(PortletPreferencesFactoryUtil.java:119)
 8        at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:504)
 9        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
10        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
11        at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:97)
12        at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90)
13        at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54)
14        at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:5158)
15        at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1569)
16        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:165)
17        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:97)
18        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doProcessTemplate(RuntimePortletImpl.java:531)
19        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doDispatch(RuntimePortletImpl.java:394)
20        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:228)
21        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:216)
22        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:113)
23        at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(portlet_jsp.java:507)
24        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
25        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
26        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
27        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
28        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
29        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
30        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
31        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
32        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
33        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
34        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
35        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
RE: View all Portlets on Page from Control Panel
16 de noviembre de 2012 7:45
Respuesta

Oni Gunn

Ranking: New Member

Mensajes: 9

Fecha de incorporación: 8 de junio de 2011

Mensajes recientes

Hi Vishal,

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.

 1
 214.11.2012 15:05:42 org.apache.catalina.core.ApplicationDispatcher invoke
 3SCHWERWIEGEND: Servlet.service() for servlet jsp threw exception
 4java.lang.NullPointerException
 5        at com.liferay.portlet.PortletPreferencesFactoryImpl.getPortletPreferencesIds(PortletPreferencesFactoryImpl.java:289)
 6        at com.liferay.portlet.PortletPreferencesFactoryImpl.getPortletPreferencesIds(PortletPreferencesFactoryImpl.java:246)
 7        at com.liferay.portlet.PortletPreferencesFactoryUtil.getPortletPreferencesIds(PortletPreferencesFactoryUtil.java:119)
 8        at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:504)
 9        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
10        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
11        at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:97)
12        at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90)
13        at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54)
14        at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:5158)
15        at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1569)
16        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:165)
17        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:97)
18        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doProcessTemplate(RuntimePortletImpl.java:531)
19        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doDispatch(RuntimePortletImpl.java:394)
20        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:228)
21        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:216)
22        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:113)
23        at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(portlet_jsp.java:507)
24        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
25        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
26        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
27        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
28        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
29        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
30        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
31        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
32        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
33        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
34        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
35        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
RE: View all Portlets on Page from Control Panel
17 de noviembre de 2012 6:54
Respuesta

Vishal Panchal

Ranking: Expert

Mensajes: 279

Fecha de incorporación: 20 de mayo de 2012

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