Skip to Content
Former Member
Jul 24, 2014 at 09:27 PM

Access REST Web Service throws DefaultBaseSiteService Null pointer exception



I have an extension of yCommerceWebServices and am trying to access "CatalogsController" Rest Web Service from a Rest Client using the URL : **http://localhost:9001/spiitintegration/v1/spiit/catalogs** and Method Type : GET

CatalogsController is defined as @Controller @RequestMapping(value = "/v1/{baseSiteId}/catalogs") public class CatalogsController extends BaseController

And I've been getting the exception as below. I get this exception for accessing all such controllers

java.lang.NullPointerException de.hybris.platform.commercefacades.catalog.impl.DefaultCatalogFacade.getProductCatalogModelsForBaseSite( de.hybris.platform.commercefacades.catalog.impl.DefaultCatalogFacade.getAllProductCatalogsForCurrentSite( com.spiit.hybris.integration.controller.CatalogsController.getCatalogs(

Can you please help with what needs to be set to have the BaseSite is not null?