1

我正在使用 hybris 5.2。当我访问我的后台应用程序并登录时,我得到下面的 NullpointerException。

这甚至在创建扩展以扩展 hybris 商务套件附带的后台扩展之前。

看起来某些上下文缺少站点,但我不确定哪个上下文以及如何为其设置站点。

另外,我以管理员身份登录,所以我不知道为什么ImpersonationService. 我认为管理员应该可以访问所有内容。

这是来自控制台的错误消息:

INFO   | jvm 1    | main    | 2014/08/17 18:39:52.984 | [0;31mERROR [hybrisHTTP6] [DefaultImpersonationService] Couldn't determine the site from the context. Hence the site related session state won't be adjusted.
INFO   | jvm 1    | main    | 2014/08/17 18:39:52.985 | [m[0;31mERROR [hybrisHTTP1] [DefaultImpersonationService] Couldn't determine the site from the context. Hence the site related session state won't be adjusted.
INFO   | jvm 1    | main    | 2014/08/17 18:39:53.487 | [m
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.298 | Aug 17, 2014 6:39:54 PM org.zkoss.zk.ui.impl.UiEngineImpl handleError:1352
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.298 | SEVERE: >>java.lang.NullPointerException
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.299 | >>  at de.hybris.commercesearchbackoffice.widgets.siteselector.data.SiteInternalData.<init>(SiteInternalData.java:33)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.299 | >>  at de.hybris.commercesearchbackoffice.widgets.siteselector.controller.SiteSelectorController.setDefaults(SiteSelectorController.java:105)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.299 | >>  at de.hybris.commercesearchbackoffice.widgets.siteselector.controller.SiteSelectorController$1.onEvent(SiteSelectorController.java:93)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.299 | >>  at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2742)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.299 | >>  at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2713)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.299 | >>  at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2654)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.299 | >>  at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.299 | >>  at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1710)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.299 | >>  at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1495)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.299 | >>  at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:464)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.299 | >>  at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:316)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.299 | >>  at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:214)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.299 | >>  at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:135)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.299 | >>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.299 | >>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.299 | >>  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.299 | >>  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.299 | >>  at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.299 | >>  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.299 | >>  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.299 | >>  at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.299 | >>  at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.299 | >>  at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.300 | >>  at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.300 | >>  at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.300 | >>  at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.300 | >>  at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.300 | >>  at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.300 | >>  at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
INFO   | jvm 1    | main    | 2014/08/17 18:39:54.300 | >>  at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
4

1 回答 1

1

看起来是由commercesearchbackoffice扩展引起的。

如果您现在可以不使用它,则可以将其从localextensions.xml文件中注释掉。您将不得不在没有它添加到后台的漂亮视角和小部件的情况下凑合,但因为这些无论如何都不起作用......

您可能还想查看 hybris wiki 上的搜索和导航模块,看看您是否没有错过任何所需的配置。

于 2014-08-20T11:35:46.840 回答