SAP Knowledge Base Article - Preview

2369555 - SAP Retail Integration: Broken Cart cause NULLPointerException during login to B2B Accelerator

Symptom

Exception occur sometime when user login to Accelerator:

java.lang.NullPointerExceptionorg.springframework.web.util.NestedServletException: Error while processing internal filterchain. Exception occurred at chain position: 8 of 18. Current filter: 'FilterChainProxy[Filter Chains: [[ Ant [pattern='/_ui/**'], []], [ Ant [pattern='/checkout/**'], [org.springframework.security.web.access.channel.ChannelProcessingFilter@1aa0b08, org.springframework.security.web.context.SecurityContextPersistenceFilter@d0714f2, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@7e907cdf, org.springframework.security.web.authentication.logout.LogoutFilter@41be8d, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@51e207c6, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@6477298c, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@197cd759, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@14c4b72d, org.springframework.security.web.session.SessionManagementFilter@55595e44, org.springframework.security.web.access.ExceptionTranslationFilter@8bf262a, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@7786ee7b]], [ de.hybris.platform.yb2bacceleratorstorefront.security.ExcludeUrlRequestMatcher@2e32a208, [org.springframework.security.web.access.channel.ChannelProcessingFilter@28f61598, org.springframework.security.web.context.SecurityContextPersistenceFilter@7a7baa3c, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@6ff07c6c, org.springframework.security.web.authentication.logout.LogoutFilter@5469a178, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@4cab24b8, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@6b265d5b, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@7595f4f, org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter@1e225cbd, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@b393525, org.springframework.security.web.session.SessionManagementFilter@52ac6d9c, org.springframework.security.web.access.ExceptionTranslationFilter@1fc2f3a1, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@13098350]], [ Ant [pattern='/my-company/**'], [org.springframework.security.web.access.channel.ChannelProcessingFilter@2d1e453f, org.springframework.security.web.context.SecurityContextPersistenceFilter@97f7bca, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@3f42b1cf, org.springframework.security.web.authentication.logout.LogoutFilter@70c9b768, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@2fa123f3, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@5df2bce6, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@7714b25e, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@4adb3923, org.springframework.security.web.session.SessionManagementFilter@6cc32530, org.springframework.security.web.access.ExceptionTranslationFilter@241eb1c2, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@764a615d]]]]'!; nested exception is java.lang.NullPointerException
de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:232)
de.hybris.platform.yb2bacceleratorstorefront.filters.UrlEncoderFilter.doFilterInternal(UrlEncoderFilter.java:77)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
de.hybris.platform.yb2bacceleratorstorefront.filters.StorefrontFilter.doFilterInternal(StorefrontFilter.java:81)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
de.hybris.platform.yb2bacceleratorstorefront.filters.cms.CMSSiteFilter.doFilterInternal(CMSSiteFilter.java:102)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
de.hybris.platform.yb2bacceleratorstorefront.filters.RequestLoggerFilter.doFilterInternal(RequestLoggerFilter.java:74)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
de.hybris.platform.yb2bacceleratorstorefront.filters.AcceleratorAddOnFilter.doFilter(AcceleratorAddOnFilter.java:92)
de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
de.hybris.platform.servicelayer.web.SessionFilter.doFilter(SessionFilter.java:71)
de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
de.hybris.platform.servicelayer.web.Log4JFilter.doFilter(Log4JFilter.java:45)
de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain.doFilterInternal(AbstractPlatformFilterChain.java:154)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
de.hybris.platform.yb2bacceleratorstorefront.filters.UrlPathFilter.doFilterInternal(UrlPathFilter.java:85)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:85)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
de.hybris.platform.yb2bacceleratorstorefront.filters.AcceleratorAddOnFilter.doFilter(AcceleratorAddOnFilter.java:92)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
de.hybris.platform.servicelayer.web.XSSFilter.processPatternsAndDoFilter(XSSFilter.java:293)
de.hybris.platform.servicelayer.web.XSSFilter.doFilter(XSSFilter.java:247)
root cause

de.hybris.platform.sap.sapordermgmtservices.cart.impl.DefaultCartRestorationService.createItemsFromCart(DefaultCartRestorationService.java:98)
de.hybris.platform.sap.sapordermgmtservices.cart.impl.DefaultCartRestorationService.restoreCart(DefaultCartRestorationService.java:73)
de.hybris.platform.sap.sapordermgmtb2bfacades.cart.impl.DefaultCartRestorationFacade.restoreSavedCart(DefaultCartRestorationFacade.java:77)
de.hybris.platform.sap.sapordermgmtb2bfacades.order.impl.DefaultSapCartFacade.restoreSavedCart(DefaultSapCartFacade.java:468)
de.hybris.platform.acceleratorstorefrontcommons.security.StorefrontAuthenticationSuccessHandler.restoreSavedCart(StorefrontAuthenticationSuccessHandler.java:123)
de.hybris.platform.acceleratorstorefrontcommons.security.StorefrontAuthenticationSuccessHandler.onAuthenticationSuccess(StorefrontAuthenticationSuccessHandler.java:101)
de.hybris.platform.yb2bacceleratorstorefront.security.GUIDAuthenticationSuccessHandler.onAuthenticationSuccess(GUIDAuthenticationSuccessHandler.java:42)
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.successfulAuthentication(AbstractAuthenticationProcessingFilter.java:331)
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.successfulAuthentication(AbstractAuthenticationProcessingFilter.java:298)
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:235)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:144)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
de.hybris.platform.yb2bacceleratorstorefront.filters.UrlEncoderFilter.doFilterInternal(UrlEncoderFilter.java:77)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
de.hybris.platform.yb2bacceleratorstorefront.filters.StorefrontFilter.doFilterInternal(StorefrontFilter.java:81)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
de.hybris.platform.yb2bacceleratorstorefront.filters.cms.CMSSiteFilter.doFilterInternal(CMSSiteFilter.java:102)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
de.hybris.platform.yb2bacceleratorstorefront.filters.RequestLoggerFilter.doFilterInternal(RequestLoggerFilter.java:74)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
de.hybris.platform.yb2bacceleratorstorefront.filters.AcceleratorAddOnFilter.doFilter(AcceleratorAddOnFilter.java:92)
de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
de.hybris.platform.servicelayer.web.SessionFilter.doFilter(SessionFilter.java:71)
de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
de.hybris.platform.servicelayer.web.Log4JFilter.doFilter(Log4JFilter.java:45)
de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain$InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:224)
de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain.doFilterInternal(AbstractPlatformFilterChain.java:154)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
de.hybris.platform.yb2bacceleratorstorefront.filters.UrlPathFilter.doFilterInternal(UrlPathFilter.java:85)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:85)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
de.hybris.platform.yb2bacceleratorstorefront.filters.AcceleratorAddOnFilter.doFilter(AcceleratorAddOnFilter.java:92)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
de.hybris.platform.servicelayer.web.XSSFilter.processPatternsAndDoFilter(XSSFilter.java:293)
de.hybris.platform.servicelayer.web.XSSFilter.doFilter(XSSFilter.java:247)


Read more...

Environment

Hybris Commerce Suite, SAP Retail Integration

Product

SAP Hybris Commerce 6.0 ; SAP Hybris Commerce 6.1 ; SAP Hybris Commerce, integration package for SAP for Retail 1.1 ; SAP Hybris Commerce, integration package for SAP for Retail 2.0 ; SAP hybris Commerce 5.7 ; SAP hybris Commerce, integration package for SAP for Retail 1.0

Keywords

KBA , CEC-COM-BSC-OAA , Retail Omnichannel Article Availability (SAP Commerce) , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.