商店定位器无效。我对以下代码行的响应为null:
gps = getGeoWebServiceWrapper().geocodeAddress(generateGeoAddressForSearchQuery(currentBaseStore, address));**
下面的 generateGeoAddressForSearchQuery()是这样的方法,其中i正在设置的国家和城市名,的 geocodeAddress()是类的一个方法的 MockedGeoServiceWrapper.java 。在这个方法中,我得到了以下代码行的GeoServiceWrapperException。
final GPS gpsAddress = geoMap.get(StringUtils.lowerCase(address.getCity()));
错误:
de.hybris.platform.storelocator.exception.GeoServiceWrapperException:org.springframework.web.client.ResourceAccessException:" https://maps.googleapis.com/maps/api/geocode/xml?address=scottsdale%2BUS&sensor=true&key=AIzaSyDq6glaTkn6dXSJ1OwAv75qkMAE1vGXqZw"的GET请求发生I / O错误:拒绝连接:连接;嵌套异常是java.net.ConnectException:Connecti
请在下面找到完整的错误日志。
错误日志:
错误[hybrisHTTP21] [SetStoreFilter] [UserSessionId:89FD76C573C4A389D84083D24F967E37]无法获得GeoLocaion.For输入字符串:" 0:0:0:0:0:0:0:1" 错误[hybrisHTTP24] [SetStoreFilter] [UserSessionId:89FD76C573C4A389D84083D24F967E37]无法获得GeoLocaion.For输入字符串:" 0:0:0:0:0:0:0:1" 错误[hybrisHTTP5] [DefaultDTStoreFinderService] [UserSessionId:89FD76C573C4A389D84083D24F967E37]无法解析[scottsdale]的位置 de.hybris.platform.storelocator.exception.GeoServiceWrapperException:org.springframework.web.client.ResourceAccessException:对GET请求&#34的I / O错误; https://maps.googleapis.com/maps/api/geocode/xml?address=scottsdale%2BUS&sensor=true&key=AIzaSyDq6glaTkn6dXSJ1OwAv75qkMAE1vGXqZw":连接被拒绝:连接;嵌套异常是java.net.ConnectException:Connecti at de.hybris.platform.storelocator.impl.GoogleMapTools.geocodeAddress(GoogleMapTools.java:166) at de.hybris.platform.storelocator.impl.GoogleMapsServiceWrapper.geocodeAddress(GoogleMapsServiceWrapper.java:59) at com.discounttire.integration.services.storefinder.impl.DefaultDTStoreFinderService.getPointByAddress(DefaultDTStoreFinderService.java:297) at com.discounttire.facades.storefinder.impl.DefaultDTStoreFinderFacade.getPointByAddress(DefaultDTStoreFinderFacade.java:76) 在com.discounttire.storefront.controllers.pages.StoreLocatorPageController.findStores(StoreLocatorPageController.java:216) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在java.lang.reflect.Method.invoke(Method.java:497)
答案 0 :(得分:0)
您是否检查过发送给Google Geocoding Api的请求数量? 对于免费帐户,Google有一些限制(每日和每秒)。