on ‎2018 Feb 20 4:00 PM
I am running a fresh instance of Hybris 6.6 which I installed using the installer recipe b2c_acc_ymkt. Additionally, I have added the following extensions:
<extension name='addonsupport' />
<extension name='acceleratorstorefrontcommons' />
<extension name='subscriptioncockpits' />
<extension name='subscriptionfacades' />
<extension name='subscriptionservices' />
<extension name='configurablebundlefacades' />
<extension name='configurablebundleservices' />
<extension name='configurablebundleaddon' />
<extension name='configurablebundlecockpits' />
<extension name='subscriptionbundlefacades' />
<extension name='subscriptionbundleservices' />
After adding an example bundle to my cart, I attempt to edit an accessory component and I receive a server error with the following stack trace:
java.lang.NullPointerException at com.hybris.ymkt.recentvieweditemsaddon.interceptors.beforeview.RecentViewedItemsBeforeViewHandlerAdaptee.beforeView(RecentViewedItemsBefore ViewHandlerAdaptee.java:68)
The issue seems to be it thinks the PageModel to load is a category page, but I think it should be going to a Product page as the component to add is camera lens.
What could be causing this issue to occur? My intent is to run hybris marketing and use the bundle feature to grouping products to sell. Thanks for any insight!
Request clarification before answering.
else if (pageModel instanceof CategoryPageModel) {
final RequestContextData requestContextData = SpringHelper.getSpringBean(request, "requestContextData", RequestContextData.class, true);
final CategoryModel category = requestContextData.getCategory();
recentViewedItemsService.productVisited(null, category.getCode()); // <- Line 68
}
It appears that the CategoryPageModel returns a null category which is a scenario overlooked during testing.
I'll follow up and create an issue for this.
With regards to the bundle related navigation, leading to a category page instead of a product page, I cannot comment on this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| 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.