Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-60137

Unable to process template when a site member navigates to his customized page

    Description

    Steps to reproduce:

    1. Create a site
    2. Add page to a site
    3. Customize the page
    4. Create a user
    5. Assign user to a site
    6. Navigate to a site as the admin "Test Test"
    7. Click message info icon
    8. Click View Default Page link
    9. Add Asset Publisher to a page
    10. Sign in as a new user
    11. Try to navigate to a site as the new user

    Expected result:
    The site member successfully navigates to a site without errors
    Actual result:
    Console error is thrown.

    18:23:46,589 WARN  [liferay/mail-1][MailEngine:601] Failed to connect to a valid mail server. Please make sure one is properly configured. Could not connect to SMTP host: localhost, port: 25
    18:27:31,290 INFO  [elasticsearch[Black Queen][clusterService#updateTask][T#1]][metadata:314] [Black Queen] [20118] update_mapping [LiferayDocumentType] (dynamic)
    18:28:58,383 ERROR [http-bio-8080-exec-6][RuntimePageImpl:367] com.liferay.portal.kernel.template.TemplateException: Unable to process template null_CUSTOM_2_columns_ii
    com.liferay.portal.kernel.template.TemplateException: Unable to process template null_CUSTOM_2_columns_ii
    	at com.liferay.portal.template.AbstractSingleResourceTemplate.processTemplate(AbstractSingleResourceTemplate.java:84)
    	at com.liferay.portal.layoutconfiguration.util.RuntimePageImpl.doProcessTemplate(RuntimePageImpl.java:364)
    	at com.liferay.portal.layoutconfiguration.util.RuntimePageImpl.doDispatch(RuntimePageImpl.java:282)
    	at com.liferay.portal.layoutconfiguration.util.RuntimePageImpl.processTemplate(RuntimePageImpl.java:111)
    	at com.liferay.portal.layoutconfiguration.util.RuntimePageImpl.processTemplate(RuntimePageImpl.java:123)
    	at com.liferay.portal.layoutconfiguration.util.RuntimePageUtil.processTemplate(RuntimePageUtil.java:70)
    	at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(portlet_jsp.java:471)
    	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    	at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:64)
    	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:75)
    	at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.include(ClassLoaderRequestDispatcherWrapper.java:52)
    	at com.liferay.portal.model.impl.LayoutTypeControllerImpl.includeLayoutContent(LayoutTypeControllerImpl.java:173)
    	at com.liferay.portal.model.impl.LayoutImpl.includeLayoutContent(LayoutImpl.java:839)
    	at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:328)
    	at com.liferay.portal.action.LayoutAction.doExecute(LayoutAction.java:167)
    	at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:72)
    	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
    	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
    	at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:169)
    	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
    	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
    	at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:569)
    	at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:546)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
    	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:133)
    	at com.liferay.portal.servlet.filters.uploadservletrequest.UploadServletRequestFilter.processFilter(UploadServletRequestFilter.java:93)
    	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
    	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:133)
    	at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:299)
    	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
    	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:133)
    	at com.liferay.portal.servlet.filters.jsoncontenttype.JSONContentTypeFilter.processFilter(JSONContentTypeFilter.java:42)
    	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:115)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
    	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
    	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
    	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
    	at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:170)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
    	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:133)
    	at com.liferay.portal.security.sso.ntlm.servlet.filters.NtlmPostFilter.processFilter(NtlmPostFilter.java:104)
    	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
    	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:133)
    	at com.liferay.portal.servlet.filters.uploadservletrequest.UploadServletRequestFilter.processFilter(UploadServletRequestFilter.java:93)
    	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
    	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:133)
    	at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:336)
    	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
    	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:133)
    	at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:125)
    	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
    	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:133)
    	at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:299)
    	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
    	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:133)
    	at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:254)
    	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
    	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:133)
    	at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:86)
    	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
    	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:133)
    	at com.liferay.portal.servlet.filters.jsoncontenttype.JSONContentTypeFilter.processFilter(JSONContentTypeFilter.java:42)
    	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
    	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:133)
    	at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:266)
    	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
    	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:133)
    	at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:88)
    	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
    	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:133)
    	at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:225)
    	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
    	at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
    	at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
    	at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
    	at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)
    	at com.liferay.portal.servlet.filters.urlrewrite.UrlRewriteFilter.processFilter(UrlRewriteFilter.java:65)
    	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
    	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:115)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:957)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
    	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
    	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)
    	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    	at java.lang.Thread.run(Thread.java:745)
    Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'processColumn' in  class com.liferay.portal.layoutconfiguration.util.velocity.TemplateProcessor threw exception java.lang.StackOverflowError at null_CUSTOM_2_columns_ii[line 4, column 36]
    	at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:351)
    	at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
    	at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)
    	at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:342)
    	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
    	at org.apache.velocity.Template.merge(Template.java:328)
    	at org.apache.velocity.Template.merge(Template.java:235)
    	at com.liferay.portal.template.velocity.VelocityTemplate.processTemplate(VelocityTemplate.java:112)
    	at com.liferay.portal.template.AbstractSingleResourceTemplate.processTemplate(AbstractSingleResourceTemplate.java:79)
    	... 150 more
    

      Attachments

        Issue Links

          Activity

            People

            Assignee:
            koor.gai Koor Gai
            Reporter:
            koor.gai Koor Gai
            Participants of an Issue:
            Recent user:
            Arthur Chen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              5 years, 50 weeks ago

                Packages

                Version Package
                7.0.0 Alpha 3