I&#39;ve found the problem and it&#39;s with Geoserver.&nbsp; WMS, KML all work except for for GML.<br>Jack<br><br><div class="gmail_quote">2009/8/25 jlebear <span dir="ltr">&lt;<a href="mailto:jlebear@gmail.com">jlebear@gmail.com</a>&gt;</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&#39;m running Windows Vista, Geoserver 2.0 RC1, Openlayers 2.8<br>
<br>
I&#39;ve published a layer in Geoserver<br>
maplelake:Trail displayed in the GetCapabilities file<br>
<a href="http://localhost:8080/geoserver/ows?service=wfs&amp;version=1.0.0&amp;request=GetCapabilities" target="_blank">http://localhost:8080/geoserver/ows?service=wfs&amp;version=1.0.0&amp;request=GetCapabilities</a><br>

&lt;/FeatureType&gt;<br>
&minus;<br>
&lt;FeatureType&gt;<br>
&lt;Name&gt;maplelake:Trail&lt;/Name&gt;<br>
&lt;Title&gt;Trails&lt;/Title&gt;<br>
&lt;Abstract&gt;Sequin Trail&lt;/Abstract&gt;<br>
&lt;Keywords&gt;Trail&lt;/Keywords&gt;<br>
&lt;SRS&gt;EPSG:EPSG:4269&lt;/SRS&gt;<br>
&lt;LatLongBoundingBox minx=&quot;-79.817&quot; miny=&quot;45.352&quot; maxx=&quot;-79.78&quot;<br>
maxy=&quot;45.386&quot;/&gt;<br>
&lt;/FeatureType&gt;<br>
<br>
This is my Openlayers statement<br>
<br>
WFSlayer = new OpenLayers.Layer.WFS( &quot;Trail&quot;,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;<a href="http://localhost:8080/geoserver/wfs" target="_blank">http://localhost:8080/geoserver/wfs</a>&quot;,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{typename:&#39;maplelake:Trail&#39;},<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;);<br>
map.addLayer(WFSlayer);<br>
<br>
>From Firebug param<br>
<br>
urlhttp://localhost:8080/geoserver/wfs?typename=maplelake%3ATrail&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=GetFeature&amp;SRS=EPSG%3A4326&amp;BBOX=-79.852788407898,45.35006894165,-79.722411592102,45.38955105835<br>
<br>
>From Firebug response<br>
<br>
&lt;?xml version=&quot;1.0&quot; ?&gt;<br>
&lt;ServiceExceptionReport<br>
 &nbsp; version=&quot;1.2.0&quot;<br>
 &nbsp; xmlns=&quot;<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.net/ogc</a>&quot;<br>
 &nbsp; xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&quot;<br>
 &nbsp; xsi:schemaLocation=&quot;<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>&quot;&gt;<br>
 &nbsp; &lt;ServiceException&gt;<br>
 &nbsp; &nbsp; &nbsp;java.lang.NullPointerException<br>
null<br>
&lt;/ServiceException&gt;&lt;/ServiceExceptionReport&gt;<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>