HTTP Status 500 – Internal Server Error


Type Exception Report

Message Unable to process template minium-theme_SERVLET_CONTEXT_/templates/portal_normal.ftl

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

com.liferay.portal.kernel.template.TemplateException: Unable to process template minium-theme_SERVLET_CONTEXT_/templates/portal_normal.ftl
	com.liferay.portal.template.AbstractSingleResourceTemplate.processTemplate(AbstractSingleResourceTemplate.java:103)
	com.liferay.taglib.util.ThemeUtil.doIncludeFTL(ThemeUtil.java:280)
	com.liferay.taglib.util.ThemeUtil.doDispatch(ThemeUtil.java:158)
	com.liferay.taglib.util.ThemeUtil.includeFTL(ThemeUtil.java:97)
	com.liferay.taglib.util.ThemeUtil.include(ThemeUtil.java:82)
	com.liferay.taglib.theme.IncludeTag.doEndTag(IncludeTag.java:34)
	org.apache.jsp.html.common.themes.portal_jsp._jspx_meth_liferay_002dtheme_005finclude_005f1(portal_jsp.java:763)
	org.apache.jsp.html.common.themes.portal_jsp._jspService(portal_jsp.java:693)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	com.liferay.portal.servlet.DirectRequestDispatcher.forward(DirectRequestDispatcher.java:49)
	com.liferay.portal.servlet.DirectRequestDispatcherFactoryImpl$IndirectRequestDispatcher.forward(DirectRequestDispatcherFactoryImpl.java:185)
	com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:82)
	com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.forward(ClassLoaderRequestDispatcherWrapper.java:45)
	com.liferay.portal.struts.StrutsUtil.forward(StrutsUtil.java:73)
	com.liferay.portal.struts.PortalRequestProcessor._internalModuleRelativeForward(PortalRequestProcessor.java:546)
	com.liferay.portal.struts.PortalRequestProcessor._process(PortalRequestProcessor.java:659)
	com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:194)
	com.liferay.portal.servlet.MainServlet.process(MainServlet.java:1066)
	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
	com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:597)
	com.liferay.portal.servlet.MainServlet.service(MainServlet.java:574)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
	com.liferay.portal.servlet.filters.password.modified.PasswordModifiedFilter.processFilter(PasswordModifiedFilter.java:58)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.servlet.filters.lockout.LockoutFilter.processFilter(LockoutFilter.java:58)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:339)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:178)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:101)
	com.liferay.friendly.url.internal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:392)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	com.liferay.portal.servlet.ServletAdapter.service(ServletAdapter.java:98)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:341)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:360)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.servlet.filters.password.modified.PasswordModifiedFilter.processFilter(PasswordModifiedFilter.java:58)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.servlet.filters.lockout.LockoutFilter.processFilter(LockoutFilter.java:58)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:339)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:88)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:258)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:88)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:265)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:178)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
	org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
	org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
	org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)
	com.liferay.portal.servlet.filters.urlrewrite.UrlRewriteFilter.processFilter(UrlRewriteFilter.java:65)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:101)

Root Cause

com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.SQLGrammarException: could not execute query
	com.liferay.commerce.service.persistence.impl.CommerceOrderFinderImpl.fetchByG_U_C_O_S_First(CommerceOrderFinderImpl.java:196)
	com.liferay.commerce.service.impl.CommerceOrderLocalServiceImpl.fetchCommerceOrder(CommerceOrderLocalServiceImpl.java:436)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:498)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
	com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:203)
	com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:94)
	com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.RetryAdvice.invoke(RetryAdvice.java:47)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:39)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.cache.thread.local.ThreadLocalCacheAdvice.invoke(ThreadLocalCacheAdvice.java:48)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:125)
	com.sun.proxy.$Proxy871.fetchCommerceOrder(Unknown Source)
	com.liferay.commerce.service.impl.CommerceOrderServiceImpl.fetchCommerceOrder(CommerceOrderServiceImpl.java:192)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:498)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
	com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:203)
	com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:94)
	com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.RetryAdvice.invoke(RetryAdvice.java:47)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:39)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.cache.thread.local.ThreadLocalCacheAdvice.invoke(ThreadLocalCacheAdvice.java:48)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:125)
	com.sun.proxy.$Proxy886.fetchCommerceOrder(Unknown Source)
	com.liferay.commerce.internal.order.CommerceOrderHttpHelperImpl._getCurrentCommerceOrder(CommerceOrderHttpHelperImpl.java:398)
	com.liferay.commerce.internal.order.CommerceOrderHttpHelperImpl.getCurrentCommerceOrder(CommerceOrderHttpHelperImpl.java:227)
	com.liferay.commerce.internal.context.CommerceContextHttpImpl.getCommerceOrder(CommerceContextHttpImpl.java:164)
	com.liferay.commerce.frontend.taglib.servlet.taglib.AccountSelectorTag.doStartTag(AccountSelectorTag.java:99)
	freemarker.ext.jsp.TagTransformModel$TagWriter.onStart(TagTransformModel.java:335)
	freemarker.core.Environment.visitAndTransform(Environment.java:422)
	freemarker.core.UnifiedCall.accept(UnifiedCall.java:107)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.MixedContent.accept(MixedContent.java:54)
	freemarker.core.Environment.visitByHiddingParent(Environment.java:345)
	freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.MixedContent.accept(MixedContent.java:54)
	freemarker.core.Environment.visitByHiddingParent(Environment.java:345)
	freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.MixedContent.accept(MixedContent.java:54)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.Environment.include(Environment.java:2072)
	freemarker.core.Include.accept(Include.java:167)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.MixedContent.accept(MixedContent.java:54)
	freemarker.core.Environment.visitByHiddingParent(Environment.java:345)
	freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.MixedContent.accept(MixedContent.java:54)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.Environment.process(Environment.java:302)
	freemarker.template.Template.process(Template.java:325)
	com.liferay.portal.template.freemarker.internal.FreeMarkerTemplate.processTemplate(FreeMarkerTemplate.java:128)
	com.liferay.portal.template.AbstractSingleResourceTemplate.processTemplate(AbstractSingleResourceTemplate.java:96)
	com.liferay.taglib.util.ThemeUtil.doIncludeFTL(ThemeUtil.java:280)
	com.liferay.taglib.util.ThemeUtil.doDispatch(ThemeUtil.java:158)
	com.liferay.taglib.util.ThemeUtil.includeFTL(ThemeUtil.java:97)
	com.liferay.taglib.util.ThemeUtil.include(ThemeUtil.java:82)
	com.liferay.taglib.theme.IncludeTag.doEndTag(IncludeTag.java:34)
	org.apache.jsp.html.common.themes.portal_jsp._jspx_meth_liferay_002dtheme_005finclude_005f1(portal_jsp.java:763)
	org.apache.jsp.html.common.themes.portal_jsp._jspService(portal_jsp.java:693)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	com.liferay.portal.servlet.DirectRequestDispatcher.forward(DirectRequestDispatcher.java:49)
	com.liferay.portal.servlet.DirectRequestDispatcherFactoryImpl$IndirectRequestDispatcher.forward(DirectRequestDispatcherFactoryImpl.java:185)
	com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:82)
	com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.forward(ClassLoaderRequestDispatcherWrapper.java:45)
	com.liferay.portal.struts.StrutsUtil.forward(StrutsUtil.java:73)
	com.liferay.portal.struts.PortalRequestProcessor._internalModuleRelativeForward(PortalRequestProcessor.java:546)
	com.liferay.portal.struts.PortalRequestProcessor._process(PortalRequestProcessor.java:659)
	com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:194)
	com.liferay.portal.servlet.MainServlet.process(MainServlet.java:1066)
	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
	com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:597)
	com.liferay.portal.servlet.MainServlet.service(MainServlet.java:574)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
	com.liferay.portal.servlet.filters.password.modified.PasswordModifiedFilter.processFilter(PasswordModifiedFilter.java:58)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.servlet.filters.lockout.LockoutFilter.processFilter(LockoutFilter.java:58)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:339)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:178)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:101)
	com.liferay.friendly.url.internal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:392)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	com.liferay.portal.servlet.ServletAdapter.service(ServletAdapter.java:98)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:341)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:360)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.servlet.filters.password.modified.PasswordModifiedFilter.processFilter(PasswordModifiedFilter.java:58)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.servlet.filters.lockout.LockoutFilter.processFilter(LockoutFilter.java:58)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:339)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:88)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:258)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:88)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:265)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:178)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
	org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
	org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
	org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)
	com.liferay.portal.servlet.filters.urlrewrite.UrlRewriteFilter.processFilter(UrlRewriteFilter.java:65)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:101)

Root Cause

com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.SQLGrammarException: could not execute query
	com.liferay.portal.dao.orm.hibernate.ExceptionTranslator.translate(ExceptionTranslator.java:39)
	com.liferay.portal.dao.orm.hibernate.SQLQueryImpl.list(SQLQueryImpl.java:188)
	com.liferay.portal.dao.orm.hibernate.SQLQueryImpl.list(SQLQueryImpl.java:168)
	com.liferay.portal.kernel.dao.orm.QueryUtil.list(QueryUtil.java:84)
	com.liferay.portal.kernel.dao.orm.QueryUtil.list(QueryUtil.java:53)
	com.liferay.commerce.service.persistence.impl.CommerceOrderFinderImpl.fetchByG_U_C_O_S_First(CommerceOrderFinderImpl.java:187)
	com.liferay.commerce.service.impl.CommerceOrderLocalServiceImpl.fetchCommerceOrder(CommerceOrderLocalServiceImpl.java:436)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:498)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
	com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:203)
	com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:94)
	com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.RetryAdvice.invoke(RetryAdvice.java:47)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:39)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.cache.thread.local.ThreadLocalCacheAdvice.invoke(ThreadLocalCacheAdvice.java:48)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:125)
	com.sun.proxy.$Proxy871.fetchCommerceOrder(Unknown Source)
	com.liferay.commerce.service.impl.CommerceOrderServiceImpl.fetchCommerceOrder(CommerceOrderServiceImpl.java:192)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:498)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
	com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:203)
	com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:94)
	com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.RetryAdvice.invoke(RetryAdvice.java:47)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:39)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.cache.thread.local.ThreadLocalCacheAdvice.invoke(ThreadLocalCacheAdvice.java:48)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:125)
	com.sun.proxy.$Proxy886.fetchCommerceOrder(Unknown Source)
	com.liferay.commerce.internal.order.CommerceOrderHttpHelperImpl._getCurrentCommerceOrder(CommerceOrderHttpHelperImpl.java:398)
	com.liferay.commerce.internal.order.CommerceOrderHttpHelperImpl.getCurrentCommerceOrder(CommerceOrderHttpHelperImpl.java:227)
	com.liferay.commerce.internal.context.CommerceContextHttpImpl.getCommerceOrder(CommerceContextHttpImpl.java:164)
	com.liferay.commerce.frontend.taglib.servlet.taglib.AccountSelectorTag.doStartTag(AccountSelectorTag.java:99)
	freemarker.ext.jsp.TagTransformModel$TagWriter.onStart(TagTransformModel.java:335)
	freemarker.core.Environment.visitAndTransform(Environment.java:422)
	freemarker.core.UnifiedCall.accept(UnifiedCall.java:107)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.MixedContent.accept(MixedContent.java:54)
	freemarker.core.Environment.visitByHiddingParent(Environment.java:345)
	freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.MixedContent.accept(MixedContent.java:54)
	freemarker.core.Environment.visitByHiddingParent(Environment.java:345)
	freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.MixedContent.accept(MixedContent.java:54)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.Environment.include(Environment.java:2072)
	freemarker.core.Include.accept(Include.java:167)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.MixedContent.accept(MixedContent.java:54)
	freemarker.core.Environment.visitByHiddingParent(Environment.java:345)
	freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.MixedContent.accept(MixedContent.java:54)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.Environment.process(Environment.java:302)
	freemarker.template.Template.process(Template.java:325)
	com.liferay.portal.template.freemarker.internal.FreeMarkerTemplate.processTemplate(FreeMarkerTemplate.java:128)
	com.liferay.portal.template.AbstractSingleResourceTemplate.processTemplate(AbstractSingleResourceTemplate.java:96)
	com.liferay.taglib.util.ThemeUtil.doIncludeFTL(ThemeUtil.java:280)
	com.liferay.taglib.util.ThemeUtil.doDispatch(ThemeUtil.java:158)
	com.liferay.taglib.util.ThemeUtil.includeFTL(ThemeUtil.java:97)
	com.liferay.taglib.util.ThemeUtil.include(ThemeUtil.java:82)
	com.liferay.taglib.theme.IncludeTag.doEndTag(IncludeTag.java:34)
	org.apache.jsp.html.common.themes.portal_jsp._jspx_meth_liferay_002dtheme_005finclude_005f1(portal_jsp.java:763)
	org.apache.jsp.html.common.themes.portal_jsp._jspService(portal_jsp.java:693)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	com.liferay.portal.servlet.DirectRequestDispatcher.forward(DirectRequestDispatcher.java:49)
	com.liferay.portal.servlet.DirectRequestDispatcherFactoryImpl$IndirectRequestDispatcher.forward(DirectRequestDispatcherFactoryImpl.java:185)
	com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:82)
	com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.forward(ClassLoaderRequestDispatcherWrapper.java:45)
	com.liferay.portal.struts.StrutsUtil.forward(StrutsUtil.java:73)
	com.liferay.portal.struts.PortalRequestProcessor._internalModuleRelativeForward(PortalRequestProcessor.java:546)
	com.liferay.portal.struts.PortalRequestProcessor._process(PortalRequestProcessor.java:659)
	com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:194)
	com.liferay.portal.servlet.MainServlet.process(MainServlet.java:1066)
	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
	com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:597)
	com.liferay.portal.servlet.MainServlet.service(MainServlet.java:574)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
	com.liferay.portal.servlet.filters.password.modified.PasswordModifiedFilter.processFilter(PasswordModifiedFilter.java:58)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.servlet.filters.lockout.LockoutFilter.processFilter(LockoutFilter.java:58)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:339)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:178)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:101)
	com.liferay.friendly.url.internal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:392)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	com.liferay.portal.servlet.ServletAdapter.service(ServletAdapter.java:98)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:341)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:360)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.servlet.filters.password.modified.PasswordModifiedFilter.processFilter(PasswordModifiedFilter.java:58)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.servlet.filters.lockout.LockoutFilter.processFilter(LockoutFilter.java:58)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:339)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:88)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:258)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:88)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:265)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:178)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
	org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
	org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
	org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)
	com.liferay.portal.servlet.filters.urlrewrite.UrlRewriteFilter.processFilter(UrlRewriteFilter.java:65)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:101)

Root Cause

org.hibernate.exception.SQLGrammarException: could not execute query
	org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:92)
	org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
	org.hibernate.loader.Loader.doList(Loader.java:2545)
	org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)
	org.hibernate.loader.Loader.list(Loader.java:2271)
	org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:316)
	org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1842)
	org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:165)
	org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:157)
	com.liferay.portal.dao.orm.hibernate.SQLQueryImpl.list(SQLQueryImpl.java:176)
	com.liferay.portal.dao.orm.hibernate.SQLQueryImpl.list(SQLQueryImpl.java:168)
	com.liferay.portal.kernel.dao.orm.QueryUtil.list(QueryUtil.java:84)
	com.liferay.portal.kernel.dao.orm.QueryUtil.list(QueryUtil.java:53)
	com.liferay.commerce.service.persistence.impl.CommerceOrderFinderImpl.fetchByG_U_C_O_S_First(CommerceOrderFinderImpl.java:187)
	com.liferay.commerce.service.impl.CommerceOrderLocalServiceImpl.fetchCommerceOrder(CommerceOrderLocalServiceImpl.java:436)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:498)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
	com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:203)
	com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:94)
	com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.RetryAdvice.invoke(RetryAdvice.java:47)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:39)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.cache.thread.local.ThreadLocalCacheAdvice.invoke(ThreadLocalCacheAdvice.java:48)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:125)
	com.sun.proxy.$Proxy871.fetchCommerceOrder(Unknown Source)
	com.liferay.commerce.service.impl.CommerceOrderServiceImpl.fetchCommerceOrder(CommerceOrderServiceImpl.java:192)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:498)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
	com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:203)
	com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:94)
	com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.RetryAdvice.invoke(RetryAdvice.java:47)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:39)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.cache.thread.local.ThreadLocalCacheAdvice.invoke(ThreadLocalCacheAdvice.java:48)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:125)
	com.sun.proxy.$Proxy886.fetchCommerceOrder(Unknown Source)
	com.liferay.commerce.internal.order.CommerceOrderHttpHelperImpl._getCurrentCommerceOrder(CommerceOrderHttpHelperImpl.java:398)
	com.liferay.commerce.internal.order.CommerceOrderHttpHelperImpl.getCurrentCommerceOrder(CommerceOrderHttpHelperImpl.java:227)
	com.liferay.commerce.internal.context.CommerceContextHttpImpl.getCommerceOrder(CommerceContextHttpImpl.java:164)
	com.liferay.commerce.frontend.taglib.servlet.taglib.AccountSelectorTag.doStartTag(AccountSelectorTag.java:99)
	freemarker.ext.jsp.TagTransformModel$TagWriter.onStart(TagTransformModel.java:335)
	freemarker.core.Environment.visitAndTransform(Environment.java:422)
	freemarker.core.UnifiedCall.accept(UnifiedCall.java:107)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.MixedContent.accept(MixedContent.java:54)
	freemarker.core.Environment.visitByHiddingParent(Environment.java:345)
	freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.MixedContent.accept(MixedContent.java:54)
	freemarker.core.Environment.visitByHiddingParent(Environment.java:345)
	freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.MixedContent.accept(MixedContent.java:54)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.Environment.include(Environment.java:2072)
	freemarker.core.Include.accept(Include.java:167)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.MixedContent.accept(MixedContent.java:54)
	freemarker.core.Environment.visitByHiddingParent(Environment.java:345)
	freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.MixedContent.accept(MixedContent.java:54)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.Environment.process(Environment.java:302)
	freemarker.template.Template.process(Template.java:325)
	com.liferay.portal.template.freemarker.internal.FreeMarkerTemplate.processTemplate(FreeMarkerTemplate.java:128)
	com.liferay.portal.template.AbstractSingleResourceTemplate.processTemplate(AbstractSingleResourceTemplate.java:96)
	com.liferay.taglib.util.ThemeUtil.doIncludeFTL(ThemeUtil.java:280)
	com.liferay.taglib.util.ThemeUtil.doDispatch(ThemeUtil.java:158)
	com.liferay.taglib.util.ThemeUtil.includeFTL(ThemeUtil.java:97)
	com.liferay.taglib.util.ThemeUtil.include(ThemeUtil.java:82)
	com.liferay.taglib.theme.IncludeTag.doEndTag(IncludeTag.java:34)
	org.apache.jsp.html.common.themes.portal_jsp._jspx_meth_liferay_002dtheme_005finclude_005f1(portal_jsp.java:763)
	org.apache.jsp.html.common.themes.portal_jsp._jspService(portal_jsp.java:693)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	com.liferay.portal.servlet.DirectRequestDispatcher.forward(DirectRequestDispatcher.java:49)
	com.liferay.portal.servlet.DirectRequestDispatcherFactoryImpl$IndirectRequestDispatcher.forward(DirectRequestDispatcherFactoryImpl.java:185)
	com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:82)
	com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.forward(ClassLoaderRequestDispatcherWrapper.java:45)
	com.liferay.portal.struts.StrutsUtil.forward(StrutsUtil.java:73)
	com.liferay.portal.struts.PortalRequestProcessor._internalModuleRelativeForward(PortalRequestProcessor.java:546)
	com.liferay.portal.struts.PortalRequestProcessor._process(PortalRequestProcessor.java:659)
	com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:194)
	com.liferay.portal.servlet.MainServlet.process(MainServlet.java:1066)
	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
	com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:597)
	com.liferay.portal.servlet.MainServlet.service(MainServlet.java:574)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
	com.liferay.portal.servlet.filters.password.modified.PasswordModifiedFilter.processFilter(PasswordModifiedFilter.java:58)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.servlet.filters.lockout.LockoutFilter.processFilter(LockoutFilter.java:58)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:339)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:178)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:101)
	com.liferay.friendly.url.internal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:392)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	com.liferay.portal.servlet.ServletAdapter.service(ServletAdapter.java:98)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:341)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:360)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.servlet.filters.password.modified.PasswordModifiedFilter.processFilter(PasswordModifiedFilter.java:58)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.servlet.filters.lockout.LockoutFilter.processFilter(LockoutFilter.java:58)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:339)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:88)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:258)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:88)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:265)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:178)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
	org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
	org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
	org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)
	com.liferay.portal.servlet.filters.urlrewrite.UrlRewriteFilter.processFilter(UrlRewriteFilter.java:65)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:101)

Root Cause

com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near the keyword 'DISTINCT'.
	com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:217)
	com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1635)
	com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(SQLServerPreparedStatement.java:426)
	com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(SQLServerPreparedStatement.java:372)
	com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:6276)
	com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1793)
	com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:184)
	com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:159)
	com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.executeQuery(SQLServerPreparedStatement.java:284)
	com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52)
	com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeQuery(HikariProxyPreparedStatement.java)
	org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208)
	org.hibernate.loader.Loader.getResultSet(Loader.java:1953)
	org.hibernate.loader.Loader.doQuery(Loader.java:802)
	org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)
	org.hibernate.loader.Loader.doList(Loader.java:2542)
	org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)
	org.hibernate.loader.Loader.list(Loader.java:2271)
	org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:316)
	org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1842)
	org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:165)
	org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:157)
	com.liferay.portal.dao.orm.hibernate.SQLQueryImpl.list(SQLQueryImpl.java:176)
	com.liferay.portal.dao.orm.hibernate.SQLQueryImpl.list(SQLQueryImpl.java:168)
	com.liferay.portal.kernel.dao.orm.QueryUtil.list(QueryUtil.java:84)
	com.liferay.portal.kernel.dao.orm.QueryUtil.list(QueryUtil.java:53)
	com.liferay.commerce.service.persistence.impl.CommerceOrderFinderImpl.fetchByG_U_C_O_S_First(CommerceOrderFinderImpl.java:187)
	com.liferay.commerce.service.impl.CommerceOrderLocalServiceImpl.fetchCommerceOrder(CommerceOrderLocalServiceImpl.java:436)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:498)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
	com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:203)
	com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:94)
	com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.RetryAdvice.invoke(RetryAdvice.java:47)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:39)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.cache.thread.local.ThreadLocalCacheAdvice.invoke(ThreadLocalCacheAdvice.java:48)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:125)
	com.sun.proxy.$Proxy871.fetchCommerceOrder(Unknown Source)
	com.liferay.commerce.service.impl.CommerceOrderServiceImpl.fetchCommerceOrder(CommerceOrderServiceImpl.java:192)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:498)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
	com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:203)
	com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:94)
	com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.RetryAdvice.invoke(RetryAdvice.java:47)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:39)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.cache.thread.local.ThreadLocalCacheAdvice.invoke(ThreadLocalCacheAdvice.java:48)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
	com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
	com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:125)
	com.sun.proxy.$Proxy886.fetchCommerceOrder(Unknown Source)
	com.liferay.commerce.internal.order.CommerceOrderHttpHelperImpl._getCurrentCommerceOrder(CommerceOrderHttpHelperImpl.java:398)
	com.liferay.commerce.internal.order.CommerceOrderHttpHelperImpl.getCurrentCommerceOrder(CommerceOrderHttpHelperImpl.java:227)
	com.liferay.commerce.internal.context.CommerceContextHttpImpl.getCommerceOrder(CommerceContextHttpImpl.java:164)
	com.liferay.commerce.frontend.taglib.servlet.taglib.AccountSelectorTag.doStartTag(AccountSelectorTag.java:99)
	freemarker.ext.jsp.TagTransformModel$TagWriter.onStart(TagTransformModel.java:335)
	freemarker.core.Environment.visitAndTransform(Environment.java:422)
	freemarker.core.UnifiedCall.accept(UnifiedCall.java:107)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.MixedContent.accept(MixedContent.java:54)
	freemarker.core.Environment.visitByHiddingParent(Environment.java:345)
	freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.MixedContent.accept(MixedContent.java:54)
	freemarker.core.Environment.visitByHiddingParent(Environment.java:345)
	freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.MixedContent.accept(MixedContent.java:54)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.Environment.include(Environment.java:2072)
	freemarker.core.Include.accept(Include.java:167)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.MixedContent.accept(MixedContent.java:54)
	freemarker.core.Environment.visitByHiddingParent(Environment.java:345)
	freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.MixedContent.accept(MixedContent.java:54)
	freemarker.core.Environment.visit(Environment.java:324)
	freemarker.core.Environment.process(Environment.java:302)
	freemarker.template.Template.process(Template.java:325)
	com.liferay.portal.template.freemarker.internal.FreeMarkerTemplate.processTemplate(FreeMarkerTemplate.java:128)
	com.liferay.portal.template.AbstractSingleResourceTemplate.processTemplate(AbstractSingleResourceTemplate.java:96)
	com.liferay.taglib.util.ThemeUtil.doIncludeFTL(ThemeUtil.java:280)
	com.liferay.taglib.util.ThemeUtil.doDispatch(ThemeUtil.java:158)
	com.liferay.taglib.util.ThemeUtil.includeFTL(ThemeUtil.java:97)
	com.liferay.taglib.util.ThemeUtil.include(ThemeUtil.java:82)
	com.liferay.taglib.theme.IncludeTag.doEndTag(IncludeTag.java:34)
	org.apache.jsp.html.common.themes.portal_jsp._jspx_meth_liferay_002dtheme_005finclude_005f1(portal_jsp.java:763)
	org.apache.jsp.html.common.themes.portal_jsp._jspService(portal_jsp.java:693)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	com.liferay.portal.servlet.DirectRequestDispatcher.forward(DirectRequestDispatcher.java:49)
	com.liferay.portal.servlet.DirectRequestDispatcherFactoryImpl$IndirectRequestDispatcher.forward(DirectRequestDispatcherFactoryImpl.java:185)
	com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.doDispatch(ClassLoaderRequestDispatcherWrapper.java:82)
	com.liferay.portal.servlet.ClassLoaderRequestDispatcherWrapper.forward(ClassLoaderRequestDispatcherWrapper.java:45)
	com.liferay.portal.struts.StrutsUtil.forward(StrutsUtil.java:73)
	com.liferay.portal.struts.PortalRequestProcessor._internalModuleRelativeForward(PortalRequestProcessor.java:546)
	com.liferay.portal.struts.PortalRequestProcessor._process(PortalRequestProcessor.java:659)
	com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:194)
	com.liferay.portal.servlet.MainServlet.process(MainServlet.java:1066)
	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
	com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:597)
	com.liferay.portal.servlet.MainServlet.service(MainServlet.java:574)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
	com.liferay.portal.servlet.filters.password.modified.PasswordModifiedFilter.processFilter(PasswordModifiedFilter.java:58)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.servlet.filters.lockout.LockoutFilter.processFilter(LockoutFilter.java:58)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:339)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:178)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:101)
	com.liferay.friendly.url.internal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:392)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	com.liferay.portal.servlet.ServletAdapter.service(ServletAdapter.java:98)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:341)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:360)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.servlet.filters.password.modified.PasswordModifiedFilter.processFilter(PasswordModifiedFilter.java:58)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.servlet.filters.lockout.LockoutFilter.processFilter(LockoutFilter.java:58)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:339)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:88)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:258)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:88)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:265)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
	com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:178)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
	org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
	org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
	org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)
	com.liferay.portal.servlet.filters.urlrewrite.UrlRewriteFilter.processFilter(UrlRewriteFilter.java:65)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
	com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:101)

Note The full stack trace of the root cause is available in the server logs.


Apache Tomcat/9.0.6