Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-2516

Modifying an existing account created by the Minium Demo Pack and then trying to browse the catalog leads to a 500 error

    Details

      Description

      Steps to Reproduce

      The exception below has been generated by surfing the cart after changing something on the existing accounts.

      Error

      2019-12-04 17:29:58.415 ERROR [ajp-nio-8009-exec-5][error_jsp:648] com.liferay.portal.kernel.template.TemplateException: Unable to process template minium-theme_SERVLET_CONTEXT_/templates/portal_normal.ftl
      
      com.liferay.portal.kernel.template.TemplateException: Unable to process template minium-theme_SERVLET_CONTEXT_/templates/portal_normal.ftl
      
                      at com.liferay.portal.template.AbstractSingleResourceTemplate.processTemplate(AbstractSingleResourceTemplate.java:103)
      
                      at com.liferay.taglib.util.ThemeUtil.doIncludeFTL(ThemeUtil.java:280)
      
                      at com.liferay.taglib.util.ThemeUtil.doDispatch(ThemeUtil.java:158)
      
                      at com.liferay.taglib.util.ThemeUtil.includeFTL(ThemeUtil.java:97)
      
                      at com.liferay.taglib.util.ThemeUtil.include(ThemeUtil.java:82)
      
                      at com.liferay.taglib.theme.IncludeTag.doEndTag(IncludeTag.java:34)
      
                      at org.apache.jsp.html.common.themes.portal_jsp._jspx_meth_liferay_002dtheme_005finclude_005f1(portal_jsp.java:761)
      
                      at org.apache.jsp.html.common.themes.portal_jsp._jspService(portal_jsp.java:691)
      
                      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      
                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      
                      at com.liferay.portal.servlet.DirectRequestDispatcher.forward(DirectRequestDispatcher.java:49)
      
                      at com.liferay.portal.servlet.DirectRequestDispatcherFactoryImpl$IndirectRequestDispatcher.forward(DirectRequestDispatcherFactoryImpl.java:185)
      
                      at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:82)
      
                      at com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.forward(ClassLoaderRequestDispatcherWrapper.java:45)
      
                      at com.liferay.portal.struts.StrutsUtil.forward(StrutsUtil.java:73)
      
                      at com.liferay.portal.struts.PortalRequestProcessor._internalModuleRelativeForward(PortalRequestProcessor.java:546)
      
                      at com.liferay.portal.struts.PortalRequestProcessor._process(PortalRequestProcessor.java:659)
      
                      at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:194)
      
                      at com.liferay.portal.servlet.MainServlet.process(MainServlet.java:1066)
      
                      at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
      
                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
      
                      at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:597)
      
                      at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:574)
      
                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
      
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      
                      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
      
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      
                      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
      
                      at com.liferay.portal.servlet.filters.password.modified.PasswordModifiedFilter.processFilter(PasswordModifiedFilter.java:58)
      
                      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      
                      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:144)
      
                      at com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:339)
      
                      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      
                      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:144)
      
                      at com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:178)
      
                      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      
                      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:101)
      
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      
                      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)
      
                      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459)
      
                      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:384)
      
                      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
      
                      at com.liferay.friendly.url.internal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:392)
      
                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      
                      at com.liferay.portal.servlet.ServletAdapter.service(ServletAdapter.java:98)
      
                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
      
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      
                      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
      
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      
                      at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
      
                      at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
      
                      at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:341)
      
                      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      
                      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:144)
      
                      at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:360)
      
                      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      
                      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.servlet.filters.password.modified.PasswordModifiedFilter.processFilter(PasswordModifiedFilter.java:58)
      
                      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      
                      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:144)
      
                      at com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:339)
      
                      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      
                      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:144)
      
                      at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:88)
      
                      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      
                      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:144)
      
                      at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:258)
      
                      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      
                      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:144)
      
                      at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:88)
      
                      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      
                      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:144)
      
                      at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:263)
      
                      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      
                      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:144)
      
                      at com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:178)
      
                      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      
                      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 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:389)
      
                      at com.liferay.portal.servlet.filters.urlrewrite.UrlRewriteFilter.processFilter(UrlRewriteFilter.java:65)
      
                      at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
      
                      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:101)
      
                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      
                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      
                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
      
                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
      
                      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
      
                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
      
                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
      
                      at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:651)
      
                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
      
                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
      
                      at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:394)
      
                      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
      
                      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:754)
      
                      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1376)
      
                      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
      
                      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      
                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      
                      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      
                      at java.lang.Thread.run(Thread.java:748)
      
      Caused by: freemarker.core._TemplateModelException: Error while invoking the "account-selector" JSP custom tag; see cause exception__----_FTL stack trace ("~" means nesting-related):_     - Failed at: @liferay_commerce_ui["account-selector"]  [in template "minium-theme_SERVLET_CONTEXT_/templates/topbar.ftl" at line 33, column 25]_       - Reached through: #include "${full_templates_path}/topb...  [in template "minium-theme_SERVLET_CONTEXT_/templates/portal_normal.ftl" at line 35, column 33]_---- [Sanitized]
      
                      at freemarker.ext.jsp.JspTagModelBase.toTemplateModelExceptionOrRethrow(JspTagModelBase.java:154)
      
                      at freemarker.ext.jsp.TagTransformModel$TagWriter.onStart(TagTransformModel.java:367)
      
                      at freemarker.core.Environment.visitAndTransform(Environment.java:422)
      
                      at freemarker.core.UnifiedCall.accept(UnifiedCall.java:107)
      
                      at freemarker.core.Environment.visit(Environment.java:324)
      
                      at freemarker.core.MixedContent.accept(MixedContent.java:54)
      
                      at freemarker.core.Environment.visit(Environment.java:324)
      
                      at freemarker.core.Environment.include(Environment.java:2072)
      
                      at freemarker.core.Include.accept(Include.java:167)
      
                      at freemarker.core.Environment.visit(Environment.java:324)
      
                      at freemarker.core.MixedContent.accept(MixedContent.java:54)
      
                      at freemarker.core.Environment.visitByHiddingParent(Environment.java:345)
      
                      at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48)
      
                      at freemarker.core.Environment.visit(Environment.java:324)
      
                      at freemarker.core.MixedContent.accept(MixedContent.java:54)
      
                      at freemarker.core.Environment.visit(Environment.java:324)
      
                      at freemarker.core.Environment.process(Environment.java:302)
      
                      at freemarker.template.Template.process(Template.java:325)
      
                      at com.liferay.portal.template.freemarker.internal.FreeMarkerTemplate.processTemplate(FreeMarkerTemplate.java:128)
      
                      at com.liferay.portal.template.AbstractSingleResourceTemplate.processTemplate(AbstractSingleResourceTemplate.java:96)
      
                      ... 142 more
      
      Caused by: java.lang.NullPointerException
      
                      at com.liferay.portal.util.PortalImpl.getLayoutFriendlyURL(PortalImpl.java:2912)
      
                      at com.liferay.portal.kernel.util.PortalUtil.getLayoutFriendlyURL(PortalUtil.java:1174)
      
                      at com.liferay.commerce.frontend.taglib.servlet.taglib.AccountSelectorTag.doStartTag(AccountSelectorTag.java:115)
      
                      at freemarker.ext.jsp.TagTransformModel$TagWriter.onStart(TagTransformModel.java:335)
      
                      ... 160 more
      

      Screenshot

        Attachments

          Activity

            People

            Assignee:
            ivica.cardic Ivica Cardic
            Reporter:
            corbin.murakami Corbin Murakami
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                2.1.0