Ticket #35 (closed enhancement: fixed)
NPE when hitting GWT with random gmaps coordinates
| Reported by: | aaime | Owned by: | arneke |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.8 |
| Component: | core | Version: | |
| Keywords: | Cc: |
Description
Trying to hit gmaps with a hand made, out of the blue request like:
results in a null pointer exception with the following stack trace:
java.lang.NullPointerException?
at org.geowebcache.util.wms.GridCalculator?.locationWithinBounds(GridCalc?
ulator.java:245)
at org.geowebcache.layer.wms.WMSLayer.getResponse(WMSLayer.java:226)
at org.geowebcache.GeoWebCacheDispatcher?.handleServiceRequest(GeoWebCach?
eDispatcher.java:242)
at org.geowebcache.GeoWebCacheDispatcher?.handleRequestInternal(GeoWebCac?
heDispatcher.java:141)
at org.springframework.web.servlet.mvc.AbstractController?.handleRequest(
AbstractController?.java:139)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter?.ha
ndle(SimpleControllerHandlerAdapter?.java:44)
at org.springframework.web.servlet.DispatcherServlet?.doDispatch(Dispatch
erServlet.java:684)
at org.springframework.web.servlet.DispatcherServlet?.doService(Dispatche
rServlet.java:625)
at org.springframework.web.servlet.FrameworkServlet?.processRequest(Frame
workServlet.java:392)
This is probably due to the x/y coordinates to be out of the acceptable range for that layer, nevertheless a better error message would be advisable (something like "requested area outside of valid bounds for layer xxx" or something like that).
