Hi,

I'm trying to make a request with format KML and it always returns
nullpointerexception.

VERSION: Geoserver 2.10.0

At geoserver web, in Demo requests, WMS_getMap.xml:

URL: http://localhost/geoserver/wms

BODY:
<?xml version="1.0" encoding="UTF-8"?>
<ogc:GetMap xmlns:ogc="http://www.opengis.net/ows";
            xmlns:gml="http://www.opengis.net/gml";
   version="1.1.1" service="WMS">
   <StyledLayerDescriptor version="1.0.0">
      <NamedLayer>
        <Name>OSP:CELL</Name>
        <NamedStyle><Name>cell</Name></NamedStyle> 
      </NamedLayer> 
   </StyledLayerDescriptor>
   <BoundingBox srsName="http://www.opengis.net/gml/srs/epsg.xml#4326";>
      <gml:coord><gml:X>-130</gml:X><gml:Y>24</gml:Y></gml:coord>
      <gml:coord><gml:X>-55</gml:X><gml:Y>50</gml:Y></gml:coord>
   </BoundingBox>
   <Output>
      <Format>kml</Format>
      <Size><Width>550</Width><Height>250</Height></Size>
   </Output>
</ogc:GetMap>

If i define the Format with "image/png" it works. Changing to KML it throws
an exception:

15 mar 18:08:31 ERROR [geoserver.ows] -
java.lang.NullPointerException
        at
org.geoserver.kml.KmlEncodingContext.computeKMAttr(KmlEncodingContext.java:213)
        at
org.geoserver.kml.KmlEncodingContext.<init>(KmlEncodingContext.java:121)
        at
org.geoserver.kml.KMLMapOutputFormat.produceMap(KMLMapOutputFormat.java:84)
        at
org.geoserver.kml.KMLMapOutputFormat.produceMap(KMLMapOutputFormat.java:30)
        at org.geoserver.wms.GetMap.executeInternal(GetMap.java:623)

I tested with Geoserver version 2.3.5 and it works.

Any idea?

Thanks in advance!

Tiago




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/WMS-POST-outputFormat-KML-Error-tp5312524.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to