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

Store locator search functionality not working.

Former Member
721

Hi,

I'm using Hybris 6.5.0.0, On the store locator page when i type in a store and click on search I get no results and the following error in my console. (Shown below)

I have added this to my extension-spring.xml -

bean id="defaultCommerceMockGeoWebServiceWrapper" class="de.hybris.platform.storelocator.impl.GoogleMapsServiceWrapper">

Any help would be greatly appreciated.

Error: [DefaultStoreFinderService] Failed to resolve location for [(What was typed in the search)] de.hybris.platform.storelocator.exception.GeoServiceWrapperException: null at de.hybris.platform.storelocator.impl.GoogleMapTools.geocodeAddress(GoogleMapTools.java:206) ~[basecommerceserver.jar:?] at de.hybris.platform.storelocator.impl.GoogleMapsServiceWrapper.geocodeAddress(GoogleMapsServiceWrapper.java:56) ~[basecommerceserver.jar:?] at de.hybris.platform.commerceservices.storefinder.impl.DefaultStoreFinderService.locationSearch(DefaultStoreFinderService.java:132) [classes/:?] at de.hybris.platform.commercefacades.storefinder.impl.DefaultStoreFinderFacade.locationSearch(DefaultStoreFinderFacade.java:108) [classes/:?] at de.hybris.platform.yb2bacceleratorstorefront.controllers.pages.StoreLocatorPageController.setUpSearchResultsForLocationQuery(StoreLocatorPageController.java:221) [classes/:?] at de.hybris.platform.yb2bacceleratorstorefront.controllers.pages.StoreLocatorPageController.findStores(StoreLocatorPageController.java:130) [classes/:?] at sun.reflect.GeneratedMethodAccessor858.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_112] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_112] at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221) [spring-web-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136) [spring-web-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:114) [spring-webmvc-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827) [spring-webmvc-4.3.3.RELEASE.jar:4.3.3.RELEASE]

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

make sure property "googleGeocodingApiKey=" is set in local.properties. Hope this will work.

former_member1320010
Participant
0 Likes

I assume you have injected the googleMapTools to this bean , don't have 6.5 with me right now to check the exact failure.

     <!-- storelocator beans -->
     <alias alias="googleMapsGeoServiceWrapper" name="defaultGoogleMapsGeoServiceWrapper"/>
     <bean id="defaultGoogleMapsGeoServiceWrapper"
           class="de.hybris.platform.storelocator.impl.GoogleMapsServiceWrapper">
         <property name="googleMapTools" ref="googleMapTools"/>
     </bean>