Skip to Content
0
Former Member
Aug 08, 2016 at 03:18 PM

NullPointer while accessing backoffice. Electronic store 6.0

254 Views

Hi,

I'm getting NPE while accessing /backoffice after initializing electronic store on hybris 6.0. The site itself is working all right as well as hmc. Do you have any ideas on fixing this issue? Here is the stack:

  SEVERE: Servlet.service() for servlet [zkLoader] in context with path [/backoffice] threw exception
  java.lang.NullPointerException
          at de.hybris.platform.servicelayer.session.impl.DefaultSessionService.executeInLocalView(DefaultSessionService.java:94)
          at de.hybris.platform.servicelayer.search.impl.DefaultFlexibleSearchService.getJaloResult(DefaultFlexibleSearchService.java:396)
          at de.hybris.platform.servicelayer.search.impl.DefaultFlexibleSearchService.search(DefaultFlexibleSearchService.java:168)
          at de.hybris.platform.servicelayer.search.impl.DefaultFlexibleSearchService.search(DefaultFlexibleSearchService.java:255)
          at de.hybris.platform.servicelayer.media.impl.DefaultMediaDao.findMediaByCode(DefaultMediaDao.java:120)
          at de.hybris.platform.servicelayer.media.impl.DefaultMediaService.getMedia(DefaultMediaService.java:716)
          at com.hybris.backoffice.config.impl.BackofficeWidgetPersistenceService.getWidgetsConfigMedia(BackofficeWidgetPersistenceService.java:146)
          at com.hybris.backoffice.config.impl.BackofficeWidgetPersistenceService.getOrCreateWidgetsConfigMedia(BackofficeWidgetPersistenceService.java:133)
          at com.hybris.backoffice.config.impl.BackofficeWidgetPersistenceService.loadWidgetTree(BackofficeWidgetPersistenceService.java:50)
          at com.hybris.cockpitng.engine.impl.DefaultCockpitWidgetEngine.getOrCreateInstance(DefaultCockpitWidgetEngine.java:283)
          at com.hybris.cockpitng.engine.impl.DefaultCockpitWidgetEngine.resolveWidgetInstance(DefaultCockpitWidgetEngine.java:269)
          at com.hybris.cockpitng.engine.impl.DefaultCockpitWidgetEngine.createWidgetView(DefaultCockpitWidgetEngine.java:188)
          at com.hybris.cockpitng.engine.impl.AdminmodeWidgetEngine.createWidgetView(AdminmodeWidgetEngine.java:93)
          at com.hybris.cockpitng.components.Widgetslot.updateView(Widgetslot.java:85)
          at com.hybris.cockpitng.components.Widgetslot.afterCompose(Widgetslot.java:77)
          at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:929)
          at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:877)
          at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:748)
          at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:709)
          at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:923)
          at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:877)
          at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:748)
          at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:822)
          at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:771)
          at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:709)
          at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:452)
          at org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:358)
          at org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:217)
          at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:136)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
          at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
          at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
          at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
          at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
          at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)


EDIT: I've found the thread with similar stack https://wiki.hybris.com/display/forum/error+while+using+flexiblesearch+service?focusedCommentId=231257632#comment-231257632

I can't see a connection though. The problem occurs on clean hybris 6.0, so the problem is probably with configuration or installation. I've already been using empty "installed.tenants" property.