[Geoserver-devel] Filter on BBox

Hi Chris,

This returns a Null Pointer (included below). It appears to match the
spec, so was wondering if you had any ideas.

David

<?xml version="1.0" encoding="UTF-8"?>
<GetFeature xmlns="http://www.opengis.net/wfs&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot; version="1.0.0" service="WFS"
outputFormat="GML2"><Query
typeName="states"><ogc:PropertyName>the_geom</ogc:PropertyName>
<ogc:Filter><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName>
<gml:Box><gml:Box decimal="." cs="," ts=" ">-74.3635788113695,40.5
-73.70642118863049,40.94</gml:Box>
</gml:Box>
</ogc:BBOX>
</ogc:Filter>
</Query>
</GetFeature>

2083733 [WARNING] org.vfny.geoserver.ServiceException - encountered
error: java.lang.NullPointerException
StackTrace: java.lang.NullPointerException
        at
org.geotools.gml.GMLFilterGeometry.geometryEnd(GMLFilterGeometry.java:101)
        at
org.geotools.gml.GMLFilterDocument.endElement(GMLFilterDocument.java:253)
        at
org.xml.sax.helpers.ParserAdapter.endElement(ParserAdapter.java:625)
        at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
        at
org.xml.sax.helpers.ParserAdapter.parse(ParserAdapter.java:431)
        at
org.vfny.geoserver.requests.readers.wfs.GetFeatureXmlReader.read(GetFeatureXmlReader.java:72)
        at
org.vfny.geoserver.servlets.AbstractService.doPost(AbstractService.java:288)
        at
org.vfny.geoserver.servlets.wfs.WfsDispatcher.doResponse(WfsDispatcher.java:221)
        at
org.vfny.geoserver.servlets.wfs.WfsDispatcher.doPost(WfsDispatcher.java:110)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
        at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
        at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
        at org.mortbay.http.HttpServer.service(HttpServer.java:879)
        at
org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
        at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)
        at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
        at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)
        at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:276)
        at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)

David Zwiers wrote:

Hi Chris,

This returns a Null Pointer (included below). It appears to match the
spec, so was wondering if you had any ideas.

Note this keep UDIG 0.4 (not released yet) from opperating with the latest GeoServer 1.2.2 right out of the box (something I had wanted to do).
Jody

You're allowed to put a box inside another box? Thats seems a bit weird:

<gml:Box>
<gml:Box decimal="." cs="," ts=" ">-74.3635788113695,40.5 -73.70642118863049,40.94</gml:Box>
</gml:Box>

I generally just use one Box, and I'm pretty sure that's the normal way to
do it... All the WFS spec examples just use one, as far as I know.

Chris

On Tue, 12 Oct 2004, David Zwiers wrote:

Hi Chris,

This returns a Null Pointer (included below). It appears to match the
spec, so was wondering if you had any ideas.

David

<?xml version="1.0" encoding="UTF-8"?>
<GetFeature xmlns="http://www.opengis.net/wfs&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot; version="1.0.0" service="WFS"
outputFormat="GML2"><Query
typeName="states"><ogc:PropertyName>the_geom</ogc:PropertyName>
<ogc:Filter><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName>
<gml:Box><gml:Box decimal="." cs="," ts=" ">-74.3635788113695,40.5
-73.70642118863049,40.94</gml:Box>
</gml:Box>
</ogc:BBOX>
</ogc:Filter>
</Query>
</GetFeature>

2083733 [WARNING] org.vfny.geoserver.ServiceException - encountered
error: java.lang.NullPointerException
StackTrace: java.lang.NullPointerException
        at
org.geotools.gml.GMLFilterGeometry.geometryEnd(GMLFilterGeometry.java:101)
        at
org.geotools.gml.GMLFilterDocument.endElement(GMLFilterDocument.java:253)
        at
org.xml.sax.helpers.ParserAdapter.endElement(ParserAdapter.java:625)
        at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
        at
org.xml.sax.helpers.ParserAdapter.parse(ParserAdapter.java:431)
        at
org.vfny.geoserver.requests.readers.wfs.GetFeatureXmlReader.read(GetFeatureXmlReader.java:72)
        at
org.vfny.geoserver.servlets.AbstractService.doPost(AbstractService.java:288)
        at
org.vfny.geoserver.servlets.wfs.WfsDispatcher.doResponse(WfsDispatcher.java:221)
        at
org.vfny.geoserver.servlets.wfs.WfsDispatcher.doPost(WfsDispatcher.java:110)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
        at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
        at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
        at org.mortbay.http.HttpServer.service(HttpServer.java:879)
        at
org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
        at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)
        at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
        at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)
        at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:276)
        at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--

Well, I think you may have a point there :(.

On the good side, when you do switch to this parser it will be well
tested :wink:

David

On Tue, 2004-10-12 at 14:04, Chris Holmes wrote:

You're allowed to put a box inside another box? Thats seems a bit weird:

> <gml:Box>
> <gml:Box decimal="." cs="," ts=" ">-74.3635788113695,40.5 -73.70642118863049,40.94</gml:Box>
> </gml:Box>

I generally just use one Box, and I'm pretty sure that's the normal way to
do it... All the WFS spec examples just use one, as far as I know.

Chris

On Tue, 12 Oct 2004, David Zwiers wrote:

> Hi Chris,
>
> This returns a Null Pointer (included below). It appears to match the
> spec, so was wondering if you had any ideas.
>
> David
>
> <?xml version="1.0" encoding="UTF-8"?>
> <GetFeature xmlns="http://www.opengis.net/wfs&quot;
> xmlns:gml="http://www.opengis.net/gml&quot;
> xmlns:ogc="http://www.opengis.net/ogc&quot; version="1.0.0" service="WFS"
> outputFormat="GML2"><Query
> typeName="states"><ogc:PropertyName>the_geom</ogc:PropertyName>
> <ogc:Filter><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName>
> <gml:Box><gml:Box decimal="." cs="," ts=" ">-74.3635788113695,40.5
> -73.70642118863049,40.94</gml:Box>
> </gml:Box>
> </ogc:BBOX>
> </ogc:Filter>
> </Query>
> </GetFeature>
>
> 2083733 [WARNING] org.vfny.geoserver.ServiceException - encountered
> error: java.lang.NullPointerException
> StackTrace: java.lang.NullPointerException
> at
> org.geotools.gml.GMLFilterGeometry.geometryEnd(GMLFilterGeometry.java:101)
> at
> org.geotools.gml.GMLFilterDocument.endElement(GMLFilterDocument.java:253)
> at
> org.xml.sax.helpers.ParserAdapter.endElement(ParserAdapter.java:625)
> at
> org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
> at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
> Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source)
> at
> org.xml.sax.helpers.ParserAdapter.parse(ParserAdapter.java:431)
> at
> org.vfny.geoserver.requests.readers.wfs.GetFeatureXmlReader.read(GetFeatureXmlReader.java:72)
> at
> org.vfny.geoserver.servlets.AbstractService.doPost(AbstractService.java:288)
> at
> org.vfny.geoserver.servlets.wfs.WfsDispatcher.doResponse(WfsDispatcher.java:221)
> at
> org.vfny.geoserver.servlets.wfs.WfsDispatcher.doPost(WfsDispatcher.java:110)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
> at
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
> at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
> at
> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
> at org.mortbay.http.HttpServer.service(HttpServer.java:879)
> at
> org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
> at
> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)
> at
> org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
> at
> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)
> at
> org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:276)
> at
> org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> Use IT products in your business? Tell us what you think of them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Geoserver-devel mailing list
> Geoserver-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>