2012-11-23 40 views
0

從我的Hybris Admin工具(http:// localhost:9001/admin),當我運行命令「更新正在運行的hybris Multichannel Suite」時,只有選項「Localize types 「選中,我得到以下錯誤:Hybris Admin - 「本地化類型」失敗,出現NullPointerException

11:19:31,146 [hybrisHTTP5] INFO [Initialization] Localizing types ... 
11:19:32,481 [hybrisHTTP5] INFO [EJBTools] pk 8796118941778 does no longer exist. 
java.lang.NullPointerException 
     at de.hybris.platform.jalo.type.CollectionType.isAssignableFrom(CollectionType.java:545) 
     at de.hybris.platform.util.localization.TypeLocalization.resortTypes(TypeLocalization.java:520) 
     at de.hybris.platform.util.localization.TypeLocalization.localizeTypes(TypeLocalization.java:177) 
     at de.hybris.platform.util.localization.TypeLocalization.localizeTypes(TypeLocalization.java:143) 
     at de.hybris.platform.core.Initialization.doInitialize(Initialization.java:374) 
     at org.apache.jsp.init_005finitialize_jsp._jspService(init_005finitialize_jsp.java:476) 
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) 
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) 
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) 
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) 
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) 
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:366) 
     at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) 
     at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) 
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378) 
     at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) 
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378) 
     at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) 
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378) 
     at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) 
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378) 
     at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:11 
9) 

有誰知道如何解決這個問題?

回答

2

錯誤情況發生的原因是什麼以前記錄爲「INFO」:

INFO [EJBTools] pk 8796118941778 does no longer exist. 

要解決這個問題: 1.運行對採用hybris數據庫以下查詢。

SELECT * 
    FROM collectiontypes 
    WHERE elementtypepk NOT IN (SELECT pk FROM composedtypes 
           UNION ALL 
           SELECT pk FROM ATOMICTYPES); 
  1. 返回的行引用不再存在,在某種程度上以前升級的工件類型。
  2. 刪除這些行應該可以解決問題。
  3. 更新Hybris。
0

當您創建一個Item類型時,需要運行「ant all」,然後重新啓動服務器並更新勾選本地化項目類型的系統。在此之前,您是否使用Hmc來定位您創建的類型?您需要導出類型,將內容複製粘貼到* locales-en.properties中。

相關問題