Uploaded image for project: 'XMLGraphicsCommons'
  1. XMLGraphicsCommons
  2. XGC-119

Problem with openjdk 11 and tiff (gray)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.3
    • Component/s: image codecs
    • Labels:
      None
    • Flags:
      Patch

      Description

      Hello,

      I use fop to create pdf files from ".fo"

      I have a conversion problem with openjdk 11 and tiff (gray).

      here is the exception:

      java.lang.UnsupportedOperationException: null
      at com.sun.imageio.plugins.tiff.TIFFImageReader.readRaster(TIFFImageReader.java:927) ~[?:?]
      at org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderImageIO.getFallbackBufferedImage(ImageLoaderImageIO.java:377) ~[xmlgraphics-commons-2.3.jar:2.3]
      at org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderImageIO.loadImage(ImageLoaderImageIO.java:159) ~[xmlgraphics-commons-2.3.jar:2.3]
      at org.apache.xmlgraphics.image.loader.pipeline.ImageProviderPipeline.execute(ImageProviderPipeline.java:153) ~[xmlgraphics-commons-2.3.jar:2.3]
      at org.apache.xmlgraphics.image.loader.pipeline.ImageProviderPipeline.execute(ImageProviderPipeline.java:98) ~[xmlgraphics-commons-2.3.jar:2.3]
      at org.apache.xmlgraphics.image.loader.ImageManager.getImage(ImageManager.java:269) ~[xmlgraphics-commons-2.3.jar:2.3]
      at org.apache.fop.render.intermediate.AbstractIFPainter.drawImageUsingImageHandler(AbstractIFPainter.java:159) ~[fop-core-7.0.jar:?]
      at org.apache.fop.render.pdf.PDFPainter.drawImageUsingURI(PDFPainter.java:218) ~[fop-core-7.0.jar:?]
      

      with openjdk 11, in the class TIFFImageReader the method "readRaster" throw  UnsupportedOperationException

      in xmlgraphics-commons, there is a call to the method "javax.imageio.ImageReader.readRaster (pageIndex, param)", which throw  the exception.

       thank you.

        Attachments

        1. test.tif
          15 kB
          zouari
        2. test.fo
          0.5 kB
          zouari
        3. patch.patch
          3 kB
          zouari

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nour-eddine zouari
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: