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

2020-08-26 17:14发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)大家好, 我们在租户系统方面面...

         点击此处--->   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条回答
蓋茨
2020-08-26 17:57

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

一周热门 更多>