[Geoserver-devel] [jira] Created: (GEOS-4544) GetCapabilities fails with Pk50095 layer

GetCapabilities fails with Pk50095 layer
----------------------------------------

                 Key: GEOS-4544
                 URL: http://jira.codehaus.org/browse/GEOS-4544
             Project: GeoServer
          Issue Type: Bug
    Affects Versions: 2.1-RC5
         Environment: Mac OSX 10.6.7
            Reporter: Andreas Hocevar
            Assignee: Andrea Aime

The GetCapabilities response of a fresh 2.1-rc5 installation is invalid. It contains the following exception:

{noformat}
curl "http://localhost:8080/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities"
...
      <SRS>EPSG:62746405</SRS>
      <SRS><?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE ServiceExceptionReport SYSTEM "http://localhost:8080/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd&quot;&gt; <ServiceExceptionReport version="1.1.1" > <ServiceException>
      javax.xml.transform.TransformerException: Translator error
Translator error
Error occurred trying to write out metadata for layer: Pk50095
Unable to acquire a reader for this coverage with format: WorldImage
</ServiceException></ServiceExceptionReport>
{noformat}

So the response starts as a correct GetCapabilities doc, and terminates with an exception response embedded in the SRS list. When using the &tiled=true param, the behavior is different:

{noformat}
curl "http://localhost:8080/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities&quot;

<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE ServiceExceptionReport SYSTEM "http://localhost:8080/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd&quot;&gt; <ServiceExceptionReport version="1.1.1" > <ServiceException>
      javax.xml.transform.TransformerException: Translator error
Translator error
Error occurred trying to write out metadata for layer: Pk50095
Unable to acquire a reader for this coverage with format: WorldImage
</ServiceException></ServiceExceptionReport>
{noformat}

In this case, the response is at least a valid exception document.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira