cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Bundles with YMKT

richpa
Explorer
0 Likes
312

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!

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member224482
Active Contributor
0 Likes
 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.