on ‎2019 Jun 11 2:19 PM
SmartEdit is throwing NullPointerException when the ProductDetailsPage is accessed.
giu 11, 2019 1:13:17 PM org.apache.catalina.core.StandardWrapperValve invoke
GRAVE: Servlet.service() for servlet [DispatcherServlet] in context with path [/store] threw exception [Error while processing internal filterchain. Exception occurred at chain position: 7 of 16. Current filter: 'com.client.storefront.filters.cms.CMSSiteFilter@22e03680'!; nested exception is java.lang.NullPointerException] with root cause
java.lang.NullPointerException
at de.hybris.platform.commerceservices.url.impl.DefaultProductModelUrlResolver.getKey(DefaultProductModelUrlResolver.java:80)
at de.hybris.platform.commerceservices.url.impl.DefaultProductModelUrlResolver.getKey(DefaultProductModelUrlResolver.java:1)
at de.hybris.platform.commerceservices.url.impl.AbstractUrlResolver.resolve(AbstractUrlResolver.java:112)
at com.client.storefront.url.DefaultPreviewDataModelUrlResolver.resolve(DefaultPreviewDataModelUrlResolver.java:101)
at com.client.storefront.url.DefaultPreviewDataModelUrlResolver.resolve(DefaultPreviewDataModelUrlResolver.java:1)
at com.client.storefront.filters.cms.CMSSiteFilter.generatePreviewUrl(CMSSiteFilter.java:310)
at com.client.storefront.filters.cms.CMSSiteFilter.processPreviewRequest(CMSSiteFilter.java:230)
at com.client.storefront.filters.cms.CMSSiteFilter.doFilterInternal(CMSSiteFilter.java:105)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
Issue lies in this method and easily fixable through override of DefaultProductModelUrlResolver but it seems like something that should be fixed OOTB.
@Override
protected String getKey(final ProductModel source)
{
return CACHE_KEY + "." + source.getPk().toString();
}
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
, Can you solve the problem? I have the same problem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
we started to work around the different NPE but in the end had to skip this since it seems something to be fixed in the underlying architecture. I remember there was some official info in regards to Smartedit being unable to use catalogs different than Staged/Online versions but can't find it out anymore.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.