[OpenLayers-Users] wfs request in Openlayer from Geoserver gives NullPointerException

Jack Gibb jlebear at gmail.com
Tue Aug 25 17:36:00 EDT 2009


I've found the problem and it's with Geoserver.  WMS, KML all work except
for for GML.
Jack

2009/8/25 jlebear <jlebear at gmail.com>

>
> 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.
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090825/019c3290/attachment.html


More information about the Users mailing list