[OpenLayers-Users] wfs request in Openlayer from Geoserver gives
NullPointerException
jlebear
jlebear at gmail.com
Tue Aug 25 12:54:16 EDT 2009
I'm running Windows Vista, Geoserver 2.0 RC1, Openlayers 2.8
I've published a layer in Geoserver
maplelake:Trail displayed in the GetCapabilities file
http://localhost:8080/geoserver/ows?service=wfs&version=1.0.0&request=GetCapabilities
</FeatureType>
−
<FeatureType>
<Name>maplelake:Trail</Name>
<Title>Trails</Title>
<Abstract>Sequin Trail</Abstract>
<Keywords>Trail</Keywords>
<SRS>EPSG:EPSG:4269</SRS>
<LatLongBoundingBox minx="-79.817" miny="45.352" maxx="-79.78"
maxy="45.386"/>
</FeatureType>
This is my Openlayers statement
WFSlayer = new OpenLayers.Layer.WFS( "Trail",
"http://localhost:8080/geoserver/wfs",
{typename:'maplelake:Trail'},
);
map.addLayer(WFSlayer);
>From Firebug param
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
>From Firebug response
<?xml version="1.0" ?>
<ServiceExceptionReport
version="1.2.0"
xmlns="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/ogc
http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd">
<ServiceException>
java.lang.NullPointerException
null
</ServiceException></ServiceExceptionReport>
What am I doing wrong?
Thanks for all replies
Jack
--
View this message in context: http://n2.nabble.com/wfs-request-in-Openlayer-from-Geoserver-gives-NullPointerException-tp3511346p3511346.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list