Foros de discusión

InvokerFilter and StackOverflowError

thumbnail
Jeff Zhuk, modificado hace 12 años.

InvokerFilter and StackOverflowError

Junior Member Mensajes: 64 Fecha de incorporación: 9/09/09 Mensajes recientes
Here is the story:

This error appeared when I added my portlet to the page layout (Add - More - Sample - myPortlet)

Since then each Liferay start ends up with the error:

Mar 30, 2012 6:19:09 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 63763 ms
18:19:10,891 INFO [PortalImpl:4873] Current URL / generates exception: org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.StackOverflowError
18:19:13,589 ERROR [status_jsp:670] org.apache.jasper.JasperException: org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.StackOverflowError
org.apache.jasper.JasperException: org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.StackOverflowError
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)
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.InvokerFilter.doFilter(InvokerFilter.java:70)
...
at javax.servlet.ServletRequestWrapper.setAttribute(ServletRequestWrapper.java:239)
at com.liferay.portal.servlet.NamespaceServletRequest.setAttribute(NamespaceServletRequest.java:124)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:59)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)

------------------------------------------------------------------------
This is Liferay 6.1 bundled with the Tomcat 7.

Your advice is appreciated.

Thank you!

Jeff
thumbnail
David H Nebinger, modificado hace 12 años.

RE: InvokerFilter and StackOverflowError

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
Obviously there's a bug in your JSP that is causing the stack overflow... The overflow exception is getting thrown in the service() method for your jsp page.
thumbnail
Juan Gonzalez P, modificado hace 12 años.

RE: InvokerFilter and StackOverflowError

Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
Perhaps it isn't your case, but I remember a bug in Liferay 6.1 + Liferay IDE when deploying/accessing custom portlets.

Test with latest nightly builds (Liferay and IDE too). It should be fixed in 6.1.1 GA2 and Liferay IDE 1.5.2
thumbnail
Hitoshi Ozawa, modificado hace 12 años.

RE: InvokerFilter and StackOverflowError

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
If your portlet is using JSF, Juan may be right. It's fixed in the current svn trunk. If you're using EE version, you may be able to get a patch. If you're using CE, the next release is scheduled near the end of April.

http://issues.liferay.com/browse/LPS-24723

Next time you post a question, please specify which version of Liferay you're using and the bundle, and more information about your portlet.