Hi Nicola,

I found the cause of this problem after searching for similar problem on the
web.  The ClassCastException only occurs when the TRANSPARENT = TRUE.  It
worked when I set TRANSPARENT=FALSE.  I wonder what was the value of your
WMS request's TRANSPARENT parameter when you tested on your side?  I tested
with GeoServer-2.4.4, 2.4.5 and 2.5-RC2 and they all got ClassCastException
when TRANSPARENT to TRUE and it seems to happen with this kind of GeoTiff
imagery.  I am able to view other GeoTiff files.  I hope this helps to
identify the problem.

Below is the Tomcat log of the request when TRANSPARENT=FALSE:
12 Mar 16:12:58 INFO [org.geoserver.wms] - 
Request: getMap
        Time = []
        Buffer = 0
        Filters = null
        Filter = null
        Width = 512
        Format = image/png
        Height = 512
        Palette = null
        Tiled = false
        SRS = CRS:84
        FeatureVersion = null
        Styles = [StyleImpl[ name=raster]]
        Layers = [org.geoserver.wms.MapLayerInfo@3aad70ed]
        MaxFeatures = null
        Crs = GEOGCS["WGS84", 
  DATUM["WGS84", 
    SPHEROID["WGS84", 6378137.0, 298.257223563]], 
  PRIMEM["Greenwich", 0.0], 
  UNIT["degree", 0.017453292519943295], 
  AXIS["Geodetic longitude", EAST], 
  AXIS["Geodetic latitude", NORTH], 
  AUTHORITY["Web Map Service CRS","84"]]
        Bbox = SRSEnvelope[-144.0 : -108.0, 18.0 : 54.0]
        RemoteOwsType = null
        RemoteOwsURL = null
        Env = {}
        FormatOptions = {}
        Angle = 0.0
        CQLFilter = null
        Elevation = []
        FeatureId = null
        StartIndex = null
        ViewParams = null
        BgColor = java.awt.Color[r=255,g=255,b=255]
        Transparent = false
        SldBody = null
        ValidateSchema = false
        Sld = null
        SldVersion = null
        TilesOrigin = null
        Exceptions = SE_XML
        Version = 1.3.0
        Request = GetMap
        RawKvp = {CRS=CRS:84, BBOX=-144.0,18.0,-108.0,54.0, TRANSPARENT=FALSE,
VERSION=1.3.0, FORMAT=image/png, SERVICE=WMS, HEIGHT=512, REQUEST=GetMap,
LAYERS=geotiff:LC80420362014047LGN00_B10, STYLES=, WIDTH=512}
        BaseUrl = http://172.16.203.202:8081/geoserver/
        Get = true
        RequestCharset = UTF-8
12 Mar 16:12:58 DEBUG [org.geoserver.wms.map] - Writing png image ...
12 Mar 16:12:58 DEBUG [org.geoserver.config.impl] - Could not locate service
of type interface org.geoserver.wms.WMSInfo in workspace
WorkspaceInfoImpl[geotiff], available services were [WMSInfoImpl[WMS],
WFSInfoImpl[WFS], WCSInfoImpl[WCS]]
12 Mar 16:12:58 DEBUG [org.geoserver.wms.map] - Writing png image ... done!
12 Mar 16:12:58 DEBUG [org.geoserver.filters] - Not compressing output for
mimetype: image/png
12 Mar 16:12:58 DEBUG
[org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1]
- SecurityContextHolder now cleared, as request processing completed


Best regards,
Tam



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Got-ClassCastException-rendering-Landsat-GeoTIFF-image-tp5106677p5128597.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to