I've found the problem and it's with Geoserver. WMS, KML all work except for for GML.<br>Jack<br><br><div class="gmail_quote">2009/8/25 jlebear <span dir="ltr"><<a href="mailto:jlebear@gmail.com">jlebear@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
I'm running Windows Vista, Geoserver 2.0 RC1, Openlayers 2.8<br>
<br>
I've published a layer in Geoserver<br>
maplelake:Trail displayed in the GetCapabilities file<br>
<a href="http://localhost:8080/geoserver/ows?service=wfs&version=1.0.0&request=GetCapabilities" target="_blank">http://localhost:8080/geoserver/ows?service=wfs&version=1.0.0&request=GetCapabilities</a><br>
</FeatureType><br>
−<br>
<FeatureType><br>
<Name>maplelake:Trail</Name><br>
<Title>Trails</Title><br>
<Abstract>Sequin Trail</Abstract><br>
<Keywords>Trail</Keywords><br>
<SRS>EPSG:EPSG:4269</SRS><br>
<LatLongBoundingBox minx="-79.817" miny="45.352" maxx="-79.78"<br>
maxy="45.386"/><br>
</FeatureType><br>
<br>
This is my Openlayers statement<br>
<br>
WFSlayer = new OpenLayers.Layer.WFS( "Trail",<br>
"<a href="http://localhost:8080/geoserver/wfs" target="_blank">http://localhost:8080/geoserver/wfs</a>",<br>
{typename:'maplelake:Trail'},<br>
);<br>
map.addLayer(WFSlayer);<br>
<br>
>From Firebug param<br>
<br>
urlhttp://localhost:8080/geoserver/wfs?typename=maplelake%3ATrail&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A4326&BBOX=-79.852788407898,45.35006894165,-79.722411592102,45.38955105835<br>
<br>
>From Firebug response<br>
<br>
<?xml version="1.0" ?><br>
<ServiceExceptionReport<br>
version="1.2.0"<br>
xmlns="<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.net/ogc</a>"<br>
xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"<br>
xsi:schemaLocation="<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.net/ogc</a><br>
<a href="http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd" target="_blank">http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd</a>"><br>
<ServiceException><br>
java.lang.NullPointerException<br>
null<br>
</ServiceException></ServiceExceptionReport><br>
<br>
What am I doing wrong?<br>
Thanks for all replies<br>
<br>
Jack<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://n2.nabble.com/wfs-request-in-Openlayer-from-Geoserver-gives-NullPointerException-tp3511346p3511346.html" target="_blank">http://n2.nabble.com/wfs-request-in-Openlayer-from-Geoserver-gives-NullPointerException-tp3511346p3511346.html</a><br>
Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
</font></blockquote></div><br>