Dear Geoserver-users,
I am fairly new to geoservers WFS and I have deployed the 1.5.0-war
successfully in my tomcat. Everything works nicely but when trying to
access geoserver-wfs with a simple GetFeature-POST-Request on the
sampple-data, geoserver dies with a NPE:
Request:
<?xml version="1.0" encoding="ISO-8859-1"?>
<wfs:GetFeature xmlns:ogc="http://www.opengis.net/ogc"
xmlns:gml="http://www.opengis.net/gml"
xmlns:wfs="http://www.opengis.net/wfs"
outputFormat="GML2"
version="1.0.0"> <wfs:Query xmlns:topp="http://www.openplans.org/topp"
typeName="topp:states">
<wfs:PropertyName>
topp:the_geom</wfs:PropertyName>
<wfs:PropertyName>
topp:STATE_NAME</wfs:PropertyName>
</wfs:Query>
</wfs:GetFeature>
Adding service="WFS" to the GetFeature-request returns the results
though.
Exception:
<html><head><title>GeoServer - Exception</title> <meta
content="text/css" http-equiv="content-style-type"> <style
type="text/css"> <!-- @import url("/geoserver/style.css"); -->
</style> <link type="image/gif" href="gs.gif" rel="icon"><!-- mozilla
--> <link href="gs.ico" rel="SHORTCUT ICON"><!-- ie
--></head><body><h1>GeoServer - Exception</h1>The following exception
was thrown:<br><i><code>java.lang.NullPointerException</code></i>
</body></html>
AFAIK it should return something, that service="WFS" is missing in the
request, but no NPE.
Is this a known problem?
Stephan
--
Stephan Holl <stephan.holl@anonymised.com>, http://intevation.de/~stephan
Tel: +49 (0)541-33 50 8 32 | Intevation GmbH | AG Osnabrück - HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
Stephan Holl ha scritto:
Dear Geoserver-users,
I am fairly new to geoservers WFS and I have deployed the 1.5.0-war
successfully in my tomcat. Everything works nicely but when trying to
access geoserver-wfs with a simple GetFeature-POST-Request on the
sampple-data, geoserver dies with a NPE:
Request:
<?xml version="1.0" encoding="ISO-8859-1"?>
<wfs:GetFeature xmlns:ogc="http://www.opengis.net/ogc"
xmlns:gml="http://www.opengis.net/gml"
xmlns:wfs="http://www.opengis.net/wfs" outputFormat="GML2" version="1.0.0"> <wfs:Query xmlns:topp="http://www.openplans.org/topp"
typeName="topp:states"> <wfs:PropertyName>
topp:the_geom</wfs:PropertyName> <wfs:PropertyName>
topp:STATE_NAME</wfs:PropertyName>
</wfs:Query>
</wfs:GetFeature>
Adding service="WFS" to the GetFeature-request returns the results
though.
Exception:
<html><head><title>GeoServer - Exception</title> <meta
content="text/css" http-equiv="content-style-type"> <style
type="text/css"> <!-- @import url("/geoserver/style.css"); -->
</style> <link type="image/gif" href="gs.gif" rel="icon"><!-- mozilla
--> <link href="gs.ico" rel="SHORTCUT ICON"><!-- ie
--></head><body><h1>GeoServer - Exception</h1>The following exception
was thrown:<br><i><code>java.lang.NullPointerException</code></i>
</body></html>
AFAIK it should return something, that service="WFS" is missing in the
request, but no NPE.
Yep, we should state the request is invalid according to the WFS GetFeature xml schema, that mandates the attribute specification:
...
<xsd:attribute name="service" type="xsd:string" use="required" fixed="WFS"/>
...
I've opened an issue to track this, we'll fix it by 1.5.1:
http://jira.codehaus.org/browse/GEOS-1069
Thanks for reporting 
Cheers
Andrea
Andrea,
This is a dupe of http://jira.codehaus.org/browse/GEOS-1059
I've got the fix running on my computer, and i'll commit before the end of the day.
--saul
________________________________
From: geoserver-users-bounces@lists.sourceforge.net on behalf of Andrea Aime
Sent: Mon 4/30/2007 9:24 AM
To: Stephan Holl
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] WFS Exception
Stephan Holl ha scritto:
Dear Geoserver-users,
I am fairly new to geoservers WFS and I have deployed the 1.5.0-war
successfully in my tomcat. Everything works nicely but when trying to
access geoserver-wfs with a simple GetFeature-POST-Request on the
sampple-data, geoserver dies with a NPE:
Request:
<?xml version="1.0" encoding="ISO-8859-1"?>
<wfs:GetFeature xmlns:ogc="http://www.opengis.net/ogc"
xmlns:gml="http://www.opengis.net/gml"
xmlns:wfs="http://www.opengis.net/wfs"
outputFormat="GML2"
version="1.0.0"> <wfs:Query xmlns:topp="http://www.openplans.org/topp"
typeName="topp:states">
<wfs:PropertyName>
topp:the_geom</wfs:PropertyName>
<wfs:PropertyName>
topp:STATE_NAME</wfs:PropertyName>
</wfs:Query>
</wfs:GetFeature>
Adding service="WFS" to the GetFeature-request returns the results
though.
Exception:
<html><head><title>GeoServer - Exception</title> <meta
content="text/css" http-equiv="content-style-type"> <style
type="text/css"> <!-- @import url("/geoserver/style.css"); -->
</style> <link type="image/gif" href="gs.gif" rel="icon"><!-- mozilla
--> <link href="gs.ico" rel="SHORTCUT ICON"><!-- ie
--></head><body><h1>GeoServer - Exception</h1>The following exception
was thrown:<br><i><code>java.lang.NullPointerException</code></i>
</body></html>
AFAIK it should return something, that service="WFS" is missing in the
request, but no NPE.
Yep, we should state the request is invalid according to the WFS
GetFeature xml schema, that mandates the attribute specification:
...
<xsd:attribute name="service" type="xsd:string" use="required" fixed="WFS"/>
...
I've opened an issue to track this, we'll fix it by 1.5.1:
http://jira.codehaus.org/browse/GEOS-1069
Thanks for reporting 
Cheers
Andrea
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Farber, Saul (ENV) ha scritto:
Andrea,
This is a dupe of http://jira.codehaus.org/browse/GEOS-1059
I've got the fix running on my computer, and i'll commit before the end of the day.
Ah-ha, thank you :).
Well, in fact looking at the issue commit logs, it seems you already committed a fix, cool... is it only a partial fix?
Ah, btw, I don't see the forward port to trunk.
Cheers
Andrea
I'm pretty sure it's not relevant to trunk (the dispatching system is TOTALLY different) but I'll know for sure soon.
Also if I've committed the fix, I'll bet it's the whole fix.
Let me double-check that and then close both JIRAs if needed.
--saul
________________________________
From: Andrea Aime [mailto:aaime@anonymised.com]
Sent: Mon 4/30/2007 10:01 AM
To: Farber, Saul (ENV)
Cc: Stephan Holl; geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] WFS Exception
Farber, Saul (ENV) ha scritto:
Andrea,
This is a dupe of http://jira.codehaus.org/browse/GEOS-1059
I've got the fix running on my computer, and i'll commit before the end of the day.
Ah-ha, thank you :).
Well, in fact looking at the issue commit logs, it seems you already
committed a fix, cool... is it only a partial fix?
Ah, btw, I don't see the forward port to trunk.
Cheers
Andrea
Farber, Saul (ENV) ha scritto:
I'm pretty sure it's not relevant to trunk (the dispatching system is TOTALLY different) but I'll know for sure soon.
Ouch, right.... I probably need a holiday :-p
Anyways, double checked, and in fact could not reproduce on trunk.
Cheers
Andrea