[Geoserver-users] GS 2.5 - Error Exporting to KML format within XML Body

Hi,

I'm trying to export to KML format from "Demos" window with Geoserver 2.5
and got an error.
I also tested in Geoserver 2.4.4 and got the same error.
With Geoserver 2.1.4 the export to KML has been successful.

*The Test:*
-> Installed Geoserver 2.5 Stable;
-> Go to "Demos" window; --> Request: WMS_getMap.xml
-> Change the <Output><Format> to:
--> kml
--> application/vnd.google-earth.kmz+xml
--> application/vnd.google-earth.kml+xml

*Example:*
/<?xml version="1.0" encoding="UTF-8"?>
<ogc:GetMap xmlns:ogc="http://www.opengis.net/ows&quot;
            xmlns:gml="http://www.opengis.net/gml&quot;
   version="1.1.1" service="WMS">
   <StyledLayerDescriptor version="1.0.0">
      <NamedLayer>
        <Name>topp:states</Name>
        <NamedStyle><Name>population</Name></NamedStyle>
      </NamedLayer>
   </StyledLayerDescriptor>
   <BoundingBox srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
      <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>image/png</Format>
      <Size><Width>550</Width><Height>250</Height></Size>
   </Output>
</ogc:GetMap>
/

With all the three format options i get this error:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE
ServiceExceptionReport SYSTEM
&quot;http://localhost:8081/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd&quot;&gt;
<ServiceExceptionReport version="1.1.1" > <ServiceException>
      java.lang.NullPointerException
null
</ServiceException></ServiceExceptionReport>

Can anyone help?

Thanks

Tiago Vieira

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GS-2-5-Error-Exporting-to-KML-format-within-XML-Body-tp5132293.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,

I get the same errors with POST requests and GS 2.5.

GET returns data

http://localhost:8080/geoserver/wms?bbox=-130,24,-66,50&styles=population&Format=application/vnd.google-earth.kml+xml&request=GetMap&layers=topp:states&width=550&height=250&srs=EPSG:4326

-Jukka Rahkonen-

T. Vieira wrote:

Hi,

I'm trying to export to KML format from "Demos" window with Geoserver 2.5
and got an error.
I also tested in Geoserver 2.4.4 and got the same error.
With Geoserver 2.1.4 the export to KML has been successful.

*The Test:*
-> Installed Geoserver 2.5 Stable;
-> Go to "Demos" window; --> Request: WMS_getMap.xml Change the
-> <Output><Format> to:
--> kml
--> application/vnd.google-earth.kmz+xml
--> application/vnd.google-earth.kml+xml

*Example:*
/<?xml version="1.0" encoding="UTF-8"?>
<ogc:GetMap xmlns:ogc="http://www.opengis.net/ows&quot;
            xmlns:gml="http://www.opengis.net/gml&quot;
   version="1.1.1" service="WMS">
   <StyledLayerDescriptor version="1.0.0">
      <NamedLayer>
        <Name>topp:states</Name>
        <NamedStyle><Name>population</Name></NamedStyle>
      </NamedLayer>
   </StyledLayerDescriptor>
   <BoundingBox srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
      <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>image/png</Format>
      <Size><Width>550</Width><Height>250</Height></Size>
   </Output>
</ogc:GetMap>
/

With all the three format options i get this error:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE
ServiceExceptionReport SYSTEM
&quot;http://localhost:8081/geoserver/schemas/wms/1.1.1/WMS_exception_1
_1_1.dtd&quot;>
<ServiceExceptionReport version="1.1.1" > <ServiceException>
      java.lang.NullPointerException
null
</ServiceException></ServiceExceptionReport>

Can anyone help?

Thanks

Tiago Vieira

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GS-2-5-
Error-Exporting-to-KML-format-within-XML-Body-tp5132293.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Rahkonen,

Can you open a ticket (defect) on Geoserver JIRA with that information?

Thank you

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GS-2-5-Error-Exporting-to-KML-format-within-XML-Body-tp5132293p5133543.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Issue: https://jira.codehaus.org/browse/GEOS-6446

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GS-2-5-Error-Exporting-to-KML-format-within-XML-Body-tp5132293p5134414.html
Sent from the GeoServer - User mailing list archive at Nabble.com.