java.lang.IllegalStateException:没有租户处于活动状态

2020-08-26 17:14发布

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


大家好,

我们在租户系统方面面临一些问题。 当我单击"在本地设备框中将商品添加到购物车"时,出现以下错误:

INFO | task-scheduler-9 | | | 2015-10-11 23:05:26 [TenantActivationAspect]:64-在当前线程Thread [task-scheduler-9,5,main]上设置租户<> task-scheduler-9 | | | 2015-10-11 23:05:26 [TenantActivationAspect]:64-在当前线程Thread [task-scheduler-9,5,main]上设置租户<> task-scheduler-9 | | | 2015-10-11 23:05:26 [TenantActivationAspect]:64-在当前线程Thread [task-scheduler-9,5,main]上设置租户<> 任务计划程序2 | | | 2015-10-11 23:05:26 [TenantActivationAspect]:64-在当前线程Thread [task-scheduler-2,5,main]上设置租户<> 任务计划程序3 | | | 2015-10-11 23:05:26 [TenantActivationAspect]:64-在当前线程Thread [task-scheduler-3,5,main]上设置租户<> 任务计划程序3 | | | 2015-10-11 23:05:26 [TenantActivationAspect]:64-在当前线程Thread [task-scheduler-3,5,main]上设置租户<> 任务计划程序3 | | | 2015-10-11 23:05:26 [TenantActivationAspect]:64-在当前线程Thread [task-scheduler-3,5,main]上设置租户<> 任务计划程序3 | | | 2015-10-11 23:05:26 [TenantActivationAspect]:64-在当前线程Thread [task-scheduler-3,5,main]上设置租户<> hybrisHTTP33 |匿名| 2766FD561723B16F10112F88B4BFFCED | 2015-10-11 23:05:39 [RequestLoggerFilter]:193-执行过滤器所需的总时间为215毫秒 hybrisHTTP33 |匿名| 2766FD561723B16F10112F88B4BFFCED | 2015-10-11 23:05:39 [TWMUserLocationFilter]:803-X-Real-IPnull信息| hybrisHTTP33 |匿名| 2766FD561723B16F10112F88B4BFFCED | 2015-10-11 23:05:39 [TWMUserLocationFilter]:804-X-Forwardnull INFO | hybrisHTTP33 |匿名| 2766FD561723B16F10112F88B4BFFCED | 2015-10-11 23:05:39 [TWMUserLocationFilter]:805-请求远程地址0:0:0:0:0:0:0:1 INFO | hybrisHTTP33 |匿名| 2766FD561723B16F10112F88B4BFFCED | 2015-10-11 23:05:39 [TWMUserLocationFilter]:806-remoteTestIPAddress--RequestURL- http://本地主机:9001/购物车/添加信息| hybrisHTTP33 |匿名| 2766FD561723B16F10112F88B4BFFCED | 2015-10-11 23:05:39 [TWMUserLocationFilter]:232-收到的IpAddress:因此设置系统会将其设置为默认网上商店。 信息| hybrisHTTP33 |匿名| 2766FD561723B16F10112F88B4BFFCED | 2015-10-11 23:05:39 [TWMUserLocationFilter]:243-LARE RuleApplied :: true入站IP地址:WARN | hybrisHTTP33 |匿名| 2766FD561723B16F10112F88B4BFFCED | 2015-10-11 23:05:39 [DefaultFindPaymentCostStrategy]:45-由于以下原因,找不到订单[02329001]的paymentCost:空...正在跳过! 错误| hybrisHTTP33 |匿名| 2766FD561723B16F10112F88B4BFFCED | 2015-10-11 23:05:39 [TrimFilter]:410-org.springframework.web.util.NestedServletException:请求处理失败; 嵌套的异常为de.hybris.platform.servicelayer.exceptions.ModelTypeNotSupportedException:没有为模型类类java.util.Collections $ EmptyList注册任何转换器。 hybrisHTTP33 |匿名| 2766FD561723B16F10112F88B4BFFCED | 2015-10-11 23:05:39 [[DispatcherServlet]]:856-路径为[]的上下文中Servlet [DispatcherServlet]的Servlet.service()引发异常[请求处理失败; 嵌套异常是java.lang.IllegalStateException:没有租户处于活动状态。 如果您不想使用租户,请调用Registry.activateMasterTenant()以确保主租户处于活动状态。]根本原因是java.lang.IllegalStateException:没有租户处于活动状态。 如果您不想使用租户,请调用Registry.activateMasterTenant()以确保主租户处于活动状态。 在de.hybris.platform.core.Registry.getCurrentTenant(Registry.java:718)在com.totalwine.storefront.util.CSRFHandlerInterceptor.isCSRFExemptUrl的de.hybris.platform.util.Config.getParameter(Config.java:222) (CSRFHandlerInterceptor.java:112)在com.totalwine.storefront.util.CSRFHandlerInterceptor.shouldCheckCSRFTokenForRequest(CSRFHandlerInterceptor.java:98)在com.totalwine.storefront.util.CSRFHandlerInterceptor.preHandle(CSRFHandlerInterceptor.java:60)在org.springframework。 位于org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)处的web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:914)位于org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java: 882)在org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)在javax.servlet.http.HttpServlet.service(HttpServlet.java:646)在javax.servlet.http.HttpServlet.service(HttpServlet) .java:727),请访问org.apache.catalina.core.ApplicationFilterChain。 org.org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)处的内部DoFilter(ApplicationFilterChain.java:303)com.totalwine.storefront.filters.trim.TrimFilter.doFilter(TrimFilter.java:411)处的org.apache.catalina.core。 位于org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)的.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)在org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter .java:88),位于org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241),位于org.apache.catalina.core.Application.org.org.spring.org.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)。 org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFi)上com.totalwine.storefront.filters.AcceleratorAddOnFilter.doFilter(AcceleratorAddOnFilter.java:120)上的core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) lterProxy.java:343)位于org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)位于org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)位于org.apache.catalina org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java)的de.hybris.platform.servicelayer.web.XSSFilter.doFilter(XSSFilter.java:230)处的.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) :241),位于org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208),位于com.totalwine.storefront.filters.TWMApplicationSecurityFilter.doFilter(TWMApplicationSecurityFilter.java:107),位于org.apache.catalina.core。 org.org.apache.catalina.core上的ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)在org.org上的org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)上的ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) .apache.catalina。 org.apache.catalina.com的core.StandardContextValve.invoke(StandardContextValve.java:122).org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)的core.StandardHostValve.invoke(StandardHostValve.java:171) 在org.apache.catalina.valv.AccessLogValve.invoke(AccessLogValve.java:950)的org.apache.catalina.valv.AccessLogValve.invoke(AccessLogValve.java:950)的org.apache.catalina.connector.CoyoteAdapter.service处 (CoyoteAdapter.java:408)在org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)在org.apache.coyote.AbstractProtocol $ AbstractConnectionHandler.process(AbstractProtocol.java:611)在org.apache。 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)上的tomcat.util.net.JIoEndpoint $ SocketProcessor.run(JIoEndpoint.java:314)在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor。 java:615)在org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run(TaskThread.java:61)在 java.lang.Thread.run(Thread.java:744)

在尝试下订单后创建新用户时,我们在生产中遇到了以下错误。

错误| hybrisHTTP28 |匿名| CE9D74846B8B9A84150B64A7ED5FAA79 | 2015-10-07 16:30:47 [[DispatcherServlet]]:856-路径为[]的上下文中Servlet [DispatcherServlet]的Servlet.service()引发异常[请求处理失败; 嵌套异常是java.lang.IllegalStateException:没有租户处于活动状态。 如果您不想使用租户,请调用Registry.activateMasterTenant()以确保主租户处于活动状态。]根本原因是java.lang.IllegalStateException:没有租户处于活动状态。 如果您不想使用租户,请调用Registry.activateMasterTenant()以确保主租户处于活动状态。 在de.hybris.platform.core.Registry.getCurrentTenant(Registry.java:718)在com.totalwine.storefront.util.CSRFHandlerInterceptor.isCSRFExemptUrl的de.hybris.platform.util.Config.getParameter(Config.java:222) (CSRFHandlerInterceptor.java:112)在com.totalwine.storefront.util.CSRFHandlerInterceptor.shouldCheckCSRFTokenForRequest(CSRFHandlerInterceptor.java:98)在com.totalwine.storefront.util.CSRFHandlerInterceptor.preHandle(CSRFHandlerInterceptor.java:60)在org.springframework。 位于org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)处的web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:914)位于org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java: 882)在org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)在javax.servlet.http.HttpServlet.service(HttpServlet.java:646)在javax.servlet.http.HttpServlet.service(HttpServlet) .java:727),请访问org.apache.catalina.core.ApplicationFilterChain。 org.org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)处的内部DoFilter(ApplicationFilterChain.java:303)com.totalwine.storefront.filters.trim.TrimFilter.doFilter(TrimFilter.java:411)处的org.apache.catalina.core。 位于org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)的.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)在org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter .java:88),位于org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241),位于org.apache.catalina.core.Application.org.org.spring.org.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)。 org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFi)上com.totalwine.storefront.filters.AcceleratorAddOnFilter.doFilter(AcceleratorAddOnFilter.java:120)上的core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) lterProxy.java:343)位于org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)位于org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)位于org.apache.catalina org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java)的de.hybris.platform.servicelayer.web.XSSFilter.doFilter(XSSFilter.java:230)处的.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) :241),位于org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208),位于com.totalwine.storefront.filters.TWMApplicationSecurityFilter.doFilter(TWMApplicationSecurityFilter.java:107),位于org.apache.catalina.core。 org.org.apache.catalina.core上的ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)在org.org上的org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)上的ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) .apache.catalina。 org.apache.catalina.com的core.StandardContextValve.invoke(StandardContextValve.java:122).org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)的core.StandardHostValve.invoke(StandardHostValve.java:171) 在org.apache.catalina.valv.AccessLogValve.invoke(AccessLogValve.java:950)的org.apache.catalina.valv.AccessLogValve.invoke(AccessLogValve.java:950)的org.apache.catalina.connector.CoyoteAdapter.service处 (CoyoteAdapter.java:408)在org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)在org.apache.coyote.AbstractProtocol $ AbstractConnectionHandler.process(AbstractProtocol.java:611)在org.apache。 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)上的tomcat.util.net.JIoEndpoint $ SocketProcessor.run(JIoEndpoint.java:316)在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor。 java:615)在org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run(TaskThread.java:61)在 java.lang.Thread.run(Thread.java:744)

请帮助我们。

感谢。

感谢RAM

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


大家好,

我们在租户系统方面面临一些问题。 当我单击"在本地设备框中将商品添加到购物车"时,出现以下错误:

INFO | task-scheduler-9 | | | 2015-10-11 23:05:26 [TenantActivationAspect]:64-在当前线程Thread [task-scheduler-9,5,main]上设置租户<> task-scheduler-9 | | | 2015-10-11 23:05:26 [TenantActivationAspect]:64-在当前线程Thread [task-scheduler-9,5,main]上设置租户<> task-scheduler-9 | | | 2015-10-11 23:05:26 [TenantActivationAspect]:64-在当前线程Thread [task-scheduler-9,5,main]上设置租户<> 任务计划程序2 | | | 2015-10-11 23:05:26 [TenantActivationAspect]:64-在当前线程Thread [task-scheduler-2,5,main]上设置租户<> 任务计划程序3 | | | 2015-10-11 23:05:26 [TenantActivationAspect]:64-在当前线程Thread [task-scheduler-3,5,main]上设置租户<> 任务计划程序3 | | | 2015-10-11 23:05:26 [TenantActivationAspect]:64-在当前线程Thread [task-scheduler-3,5,main]上设置租户<> 任务计划程序3 | | | 2015-10-11 23:05:26 [TenantActivationAspect]:64-在当前线程Thread [task-scheduler-3,5,main]上设置租户<> 任务计划程序3 | | | 2015-10-11 23:05:26 [TenantActivationAspect]:64-在当前线程Thread [task-scheduler-3,5,main]上设置租户<> hybrisHTTP33 |匿名| 2766FD561723B16F10112F88B4BFFCED | 2015-10-11 23:05:39 [RequestLoggerFilter]:193-执行过滤器所需的总时间为215毫秒 hybrisHTTP33 |匿名| 2766FD561723B16F10112F88B4BFFCED | 2015-10-11 23:05:39 [TWMUserLocationFilter]:803-X-Real-IPnull信息| hybrisHTTP33 |匿名| 2766FD561723B16F10112F88B4BFFCED | 2015-10-11 23:05:39 [TWMUserLocationFilter]:804-X-Forwardnull INFO | hybrisHTTP33 |匿名| 2766FD561723B16F10112F88B4BFFCED | 2015-10-11 23:05:39 [TWMUserLocationFilter]:805-请求远程地址0:0:0:0:0:0:0:1 INFO | hybrisHTTP33 |匿名| 2766FD561723B16F10112F88B4BFFCED | 2015-10-11 23:05:39 [TWMUserLocationFilter]:806-remoteTestIPAddress--RequestURL- http://本地主机:9001/购物车/添加信息| hybrisHTTP33 |匿名| 2766FD561723B16F10112F88B4BFFCED | 2015-10-11 23:05:39 [TWMUserLocationFilter]:232-收到的IpAddress:因此设置系统会将其设置为默认网上商店。 信息| hybrisHTTP33 |匿名| 2766FD561723B16F10112F88B4BFFCED | 2015-10-11 23:05:39 [TWMUserLocationFilter]:243-LARE RuleApplied :: true入站IP地址:WARN | hybrisHTTP33 |匿名| 2766FD561723B16F10112F88B4BFFCED | 2015-10-11 23:05:39 [DefaultFindPaymentCostStrategy]:45-由于以下原因,找不到订单[02329001]的paymentCost:空...正在跳过! 错误| hybrisHTTP33 |匿名| 2766FD561723B16F10112F88B4BFFCED | 2015-10-11 23:05:39 [TrimFilter]:410-org.springframework.web.util.NestedServletException:请求处理失败; 嵌套的异常为de.hybris.platform.servicelayer.exceptions.ModelTypeNotSupportedException:没有为模型类类java.util.Collections $ EmptyList注册任何转换器。 hybrisHTTP33 |匿名| 2766FD561723B16F10112F88B4BFFCED | 2015-10-11 23:05:39 [[DispatcherServlet]]:856-路径为[]的上下文中Servlet [DispatcherServlet]的Servlet.service()引发异常[请求处理失败; 嵌套异常是java.lang.IllegalStateException:没有租户处于活动状态。 如果您不想使用租户,请调用Registry.activateMasterTenant()以确保主租户处于活动状态。]根本原因是java.lang.IllegalStateException:没有租户处于活动状态。 如果您不想使用租户,请调用Registry.activateMasterTenant()以确保主租户处于活动状态。 在de.hybris.platform.core.Registry.getCurrentTenant(Registry.java:718)在com.totalwine.storefront.util.CSRFHandlerInterceptor.isCSRFExemptUrl的de.hybris.platform.util.Config.getParameter(Config.java:222) (CSRFHandlerInterceptor.java:112)在com.totalwine.storefront.util.CSRFHandlerInterceptor.shouldCheckCSRFTokenForRequest(CSRFHandlerInterceptor.java:98)在com.totalwine.storefront.util.CSRFHandlerInterceptor.preHandle(CSRFHandlerInterceptor.java:60)在org.springframework。 位于org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)处的web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:914)位于org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java: 882)在org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)在javax.servlet.http.HttpServlet.service(HttpServlet.java:646)在javax.servlet.http.HttpServlet.service(HttpServlet) .java:727),请访问org.apache.catalina.core.ApplicationFilterChain。 org.org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)处的内部DoFilter(ApplicationFilterChain.java:303)com.totalwine.storefront.filters.trim.TrimFilter.doFilter(TrimFilter.java:411)处的org.apache.catalina.core。 位于org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)的.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)在org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter .java:88),位于org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241),位于org.apache.catalina.core.Application.org.org.spring.org.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)。 org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFi)上com.totalwine.storefront.filters.AcceleratorAddOnFilter.doFilter(AcceleratorAddOnFilter.java:120)上的core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) lterProxy.java:343)位于org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)位于org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)位于org.apache.catalina org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java)的de.hybris.platform.servicelayer.web.XSSFilter.doFilter(XSSFilter.java:230)处的.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) :241),位于org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208),位于com.totalwine.storefront.filters.TWMApplicationSecurityFilter.doFilter(TWMApplicationSecurityFilter.java:107),位于org.apache.catalina.core。 org.org.apache.catalina.core上的ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)在org.org上的org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)上的ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) .apache.catalina。 org.apache.catalina.com的core.StandardContextValve.invoke(StandardContextValve.java:122).org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)的core.StandardHostValve.invoke(StandardHostValve.java:171) 在org.apache.catalina.valv.AccessLogValve.invoke(AccessLogValve.java:950)的org.apache.catalina.valv.AccessLogValve.invoke(AccessLogValve.java:950)的org.apache.catalina.connector.CoyoteAdapter.service处 (CoyoteAdapter.java:408)在org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)在org.apache.coyote.AbstractProtocol $ AbstractConnectionHandler.process(AbstractProtocol.java:611)在org.apache。 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)上的tomcat.util.net.JIoEndpoint $ SocketProcessor.run(JIoEndpoint.java:314)在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor。 java:615)在org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run(TaskThread.java:61)在 java.lang.Thread.run(Thread.java:744)

在尝试下订单后创建新用户时,我们在生产中遇到了以下错误。

错误| hybrisHTTP28 |匿名| CE9D74846B8B9A84150B64A7ED5FAA79 | 2015-10-07 16:30:47 [[DispatcherServlet]]:856-路径为[]的上下文中Servlet [DispatcherServlet]的Servlet.service()引发异常[请求处理失败; 嵌套异常是java.lang.IllegalStateException:没有租户处于活动状态。 如果您不想使用租户,请调用Registry.activateMasterTenant()以确保主租户处于活动状态。]根本原因是java.lang.IllegalStateException:没有租户处于活动状态。 如果您不想使用租户,请调用Registry.activateMasterTenant()以确保主租户处于活动状态。 在de.hybris.platform.core.Registry.getCurrentTenant(Registry.java:718)在com.totalwine.storefront.util.CSRFHandlerInterceptor.isCSRFExemptUrl的de.hybris.platform.util.Config.getParameter(Config.java:222) (CSRFHandlerInterceptor.java:112)在com.totalwine.storefront.util.CSRFHandlerInterceptor.shouldCheckCSRFTokenForRequest(CSRFHandlerInterceptor.java:98)在com.totalwine.storefront.util.CSRFHandlerInterceptor.preHandle(CSRFHandlerInterceptor.java:60)在org.springframework。 位于org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)处的web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:914)位于org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java: 882)在org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)在javax.servlet.http.HttpServlet.service(HttpServlet.java:646)在javax.servlet.http.HttpServlet.service(HttpServlet) .java:727),请访问org.apache.catalina.core.ApplicationFilterChain。 org.org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)处的内部DoFilter(ApplicationFilterChain.java:303)com.totalwine.storefront.filters.trim.TrimFilter.doFilter(TrimFilter.java:411)处的org.apache.catalina.core。 位于org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)的.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)在org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter .java:88),位于org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241),位于org.apache.catalina.core.Application.org.org.spring.org.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)。 org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFi)上com.totalwine.storefront.filters.AcceleratorAddOnFilter.doFilter(AcceleratorAddOnFilter.java:120)上的core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) lterProxy.java:343)位于org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)位于org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)位于org.apache.catalina org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java)的de.hybris.platform.servicelayer.web.XSSFilter.doFilter(XSSFilter.java:230)处的.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) :241),位于org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208),位于com.totalwine.storefront.filters.TWMApplicationSecurityFilter.doFilter(TWMApplicationSecurityFilter.java:107),位于org.apache.catalina.core。 org.org.apache.catalina.core上的ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)在org.org上的org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)上的ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) .apache.catalina。 org.apache.catalina.com的core.StandardContextValve.invoke(StandardContextValve.java:122).org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)的core.StandardHostValve.invoke(StandardHostValve.java:171) 在org.apache.catalina.valv.AccessLogValve.invoke(AccessLogValve.java:950)的org.apache.catalina.valv.AccessLogValve.invoke(AccessLogValve.java:950)的org.apache.catalina.connector.CoyoteAdapter.service处 (CoyoteAdapter.java:408)在org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)在org.apache.coyote.AbstractProtocol $ AbstractConnectionHandler.process(AbstractProtocol.java:611)在org.apache。 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)上的tomcat.util.net.JIoEndpoint $ SocketProcessor.run(JIoEndpoint.java:316)在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor。 java:615)在org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run(TaskThread.java:61)在 java.lang.Thread.run(Thread.java:744)

请帮助我们。

感谢。

感谢RAM

付费偷看设置
发送
4条回答
蓋茨
1楼-- · 2020-08-26 17:57

嗨,Ram,您能为已安装的租户共享您的财产文件/hac值吗? 另外,您是否可以确保存在数据库连接(假设系统已正确初始化)。

追夢秋陽
2楼-- · 2020-08-26 17:55

您有解决方案吗? 我面临着同样的情况。 谢谢

空代码
3楼-- · 2020-08-26 18:03
我们试图为某些第三方供应商在没有用户的情况下创建报告,但有此例外。 当我们创建TenantAwareThreadFactory bean并将其添加到外观时,所有问题都得到解决。

<属性名称=" threadFactory" ref =" bacAuditReportThreadFactory"/>

<别名name =" defaultBacAuditReportThreadFactory" alias =" bacAuditReportThreadFactory"/>

ZJXianG
4楼-- · 2020-08-26 18:08

嗨,罗马,

我们面临类似的问题。 你可以分享你的建议吗? 下面的堆栈跟踪仅供参考。

[1; 31mERROR [pool-81-thread-2] [LocalAttributeProcessor]由于意外的异常而无法更新部件。 [partKeyId = 389913] [m de.hybris.platform.servicelayer.exceptions.ModelSavingException:没有租户处于活动状态。 如果您不想使用租户,请调用Registry.activateMasterTenant()以确保主租户处于活动状态。 在de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.saveAll(DefaultModelService.java:695)〜[coreserver.jar :?]在de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService处。 saveAll(DefaultModelService.java:648)〜[coreserver.jar :?] at de.hybris.platform.classification.strategy.impl.DefaultLoadStoreFeaturesStrategy.storeFeaturesInTx(DefaultLoadStoreFeaturesStrategy.java:203)〜[classes/:?] at de.hybris .platform.classification.strategy.impl.DefaultLoadStoreFeaturesStrategy $ 2.doInTransactionWithoutResult(DefaultLoadStoreFeaturesStrategy.java:171)〜[classes/:?] at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:34)〜[-spring tx-4.1.9.RELEASE.jar:4.1.9.RELEASE],位于org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)〜[spring-tx-4.1.9.RELEASE.jar:4.1 .9.RELEASE],位于de.hybris.platform.classification.strategy.impl.DefaultLoadStoreFeaturesStr ategy.replaceFeatures(DefaultLoadStoreFeaturesStrategy.java:166)〜[classes/:?]位于de.hybris.platform.classification.impl.DefaultClassificationService.replaceFeatures(DefaultClassificationService.java:126)〜[classes/:?],位于com.cc。 integration.inbound.LocalAttributeProcessor.processPartUpdates(LocalAttributeProcessor.java:498)〜[ccintegrationserver.jar :?]在com.cc.inboundtion.LocalAttributeProcessor.updatePartLocalAttributes(LocalAttributeProcessor.java:345)在com上的[ccintegrationserver.jar :?] .cc.integration.inbound.LocalAttributeProcessor $ 1.call(LocalAttributeProcessor.java:414)[ccintegrationserver.jar :?]位于com.cc.integration.inbound.LocalAttributeProcessor $ 1.call(LocalAttributeProcessor.java:1)[ccintegrationserver.jar: ?],位于java.util.concurrent.FutureTask.run(FutureTask.java:266)[?:1.8.0_91],位于java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_91] 在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)[?:1.8。 0_91],位于java.lang.Thread.run(Thread.java:745)[?:1.8.0_91]原因:java.lang.IllegalStateException:没有租户处于活动状态。 如果您不想使用租户,请调用Registry.activateMasterTenant()以确保主租户处于活动状态。 在de.hybris.platform.core.Registry.getCurrentTenant(Registry.java:795)〜[coreserver.jar :?]在de.hybris.platform.jalo.JaloSession.getCurrentSession(JaloSession.java:788)〜[coreserver。 jar :?]位于com.cc.core.platform.servicelayer.internal.converter.impl.CCItemModelConverter.createNewItem(CCItemModelConverter.java:134)〜[cccoreserver.jar :?]位于de.hybris.platform.servicelayer.internal。 converter.impl.ItemModelConverter.save(ItemModelConverter.java:810)〜[coreserver.jar :?]位于de.hybris.platform.servicelayer.internal.model.impl.wrapper.ModelWrapper.save(ModelWrapper.java:359)〜 [coreserver.jar :?]在de.hybris.platform.servicelayer.internal.model.impl.ResolvingModelPersister.saveNewOnes(ResolvingModelPersister.java:85)〜[coreserver.jar :?]在de.hybris.platform.servicelayer.internal .model.impl.ResolvingModelPersister.persist(ResolvingModelPersister.java:53)〜[coreserver.jar :?]位于de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.saveViaJalo(DefaultModelService.java:1173)〜[ coreserver.jar :?]位于de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.doJaloPersistence(DefaultModelService.java:734)〜[coreserver.jar :?]位于de.hybris.platform.servicelayer.internal。 model.impl.DefaultModelService.persistWrappers(DefaultModelService.java:1116)〜[coreserver.jar :?]位于de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.performPersistenceOperations(DefaultModelService.java:712)〜[coreserver .jar :?],位于de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.saveAllInternal(DefaultModelService.java:706)〜[coreserver.jar :?],位于de.hybris.platform.servicelayer.internal.model .impl.DefaultModelService.saveAll(DefaultModelService.java:686)〜[coreserver.jar :?] ...另外15个


作为参考,我们使用6.1.0.7版本的Hybris。

最佳| 灰烬

一周热门 更多>