Uploaded image for project: 'GeoServer'
  1. GEOS-8137

Metatiling may throw a ClassCastException: Raster cannot be cast to WritableRaster

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.10.3, 2.11.0
    • Fix Version/s: 2.10.4, 2.11.1
    • Component/s: WMS
    • Labels:
      None

      Description

      MetatileMapOutputFormat may throw a
      java.lang.ClassCastException: java.awt.image.Raster cannot be cast to java.awt.image.WritableRaster
      when dealing with PlanarImage.

      There is a piece of code getting a translatedChild from the PlanarImage metaTile, which is cast to WritableRaster. An exception occurs in case the returned Child is not a WritableRaster but simply Raster instead.

        Attachments

          Activity

            People

            • Assignee:
              dany111 Daniele Romagnoli
              Reporter:
              dany111 Daniele Romagnoli
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: