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

Access REST Web Service throws DefaultBaseSiteService Null pointer exception

500 Views

Hi,

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.site.impl.DefaultBaseSiteService.getProductCatalogs(DefaultBaseSiteService.java:114) de.hybris.platform.commercefacades.catalog.impl.DefaultCatalogFacade.getProductCatalogModelsForBaseSite(DefaultCatalogFacade.java:156) de.hybris.platform.commercefacades.catalog.impl.DefaultCatalogFacade.getAllProductCatalogsForCurrentSite(DefaultCatalogFacade.java:119) com.spiit.hybris.integration.controller.CatalogsController.getCatalogs(CatalogsController.java:51)

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