[Geoserver-devel] [jira] Created: (GEOS-4759) ImagePyramid throws IllegalStateException: Unsupported data type when encountering missing data with OutputTransparentColour set to 000000

ImagePyramid throws IllegalStateException: Unsupported data type when encountering missing data with OutputTransparentColour set to 000000
------------------------------------------------------------------------------------------------------------------------------------------

                 Key: GEOS-4759
                 URL: https://jira.codehaus.org/browse/GEOS-4759
             Project: GeoServer
          Issue Type: Bug
          Components: WMS
    Affects Versions: 2.1.1, 2.1.0
         Environment: Build Information

    * Version 2.1.1
    * Subversion Revision 16080
    * Build Date 23-Jun-2011 10:45
    * GeoTools Version 2.7.2 (rev 37473)

uname -a

Linux acoustics_wms 2.6.27.54-0.2-default #1 SMP 2010-10-19 18:40:07 +0200 x86_64 x86_64 x86_64 GNU/Linux

/java -version

java version "1.6.0_27"
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode)

Jetty
            Reporter: Gordon Keith
            Assignee: Andrea Aime
            Priority: Minor
         Attachments: geoserver_public, test.tar.gz

In a sparse ImagePyramid if you specify a bounding box that includes no data in the GetMap request, the result is either:
- a black box (if OutputTransparentColour is blank) or
- a WMS ServiceException internalError:
"Rendering process failed
Unsupported data type."
(if OutputTransparentColour is 000000 and -Dorg.geoserver.render.raster.direct.disable=true) or
- a WMS ServiceException :
"Error rendering coverage on the fast path
java.lang.IllegalStateException: Unsupported data type.
Unsupported data type."
(if OutputTransparentColour is 000000 and fast render is enabled).

Attached is a tar of a test pyramid which caused the exception in the attached log.

The request that caused the exeption was:
"GET /geoserver/wms?SERVICE=WMS&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&TRANSPARENT=TRUE&SRS=EPSG:4326&STYLES=&FORMAT=image/png&LAYERS=swath:test&WIDTH=829&HEIGHT=1000&BBOX=136.00304414467323,-25.339138150674717,138.29726875062173,-22.79838678682269& HTTP/1.1"

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira