ICEpdf
  1. ICEpdf
  2. PDF-406

JAI causing "End of data reached before next EOL encountered."

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.2
    • Fix Version/s: 4.3.4
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      Java Advanced Imaging library (attached).
    • Workaround Description:
      Remove JAI from the class path.

      Description

      The exception below is thrown when JAI is present on the classpath and when attempting to render the sample PDF (11063.pdf). The PDF rendering differs from that of Adobe.

      Mar 13, 2012 11:06:27 AM org.icepdf.core.pobjects.filters.CCITTFax deriveBufferedImageFromTIFFBytes
      FINE: deriveBufferedImageFromTIFFBytes() : Could not derive image from data bytes:
      java.lang.ArrayIndexOutOfBoundsException
      Mar 13, 2012 11:06:27 AM org.icepdf.core.pobjects.filters.CCITTFax deriveBufferedImageFromTIFFBytes
      FINE: deriveBufferedImageFromTIFFBytes() : Could not derive image from data bytes:
      java.lang.Error: End of data reached before next EOL encountered.
      at com.sun.media.jai.codecimpl.TIFFFaxDecoder.readEOL(TIFFFaxDecoder.java:1288)
      at com.sun.media.jai.codecimpl.TIFFFaxDecoder.decode2D(TIFFFaxDecoder.java:791)
      at com.sun.media.jai.codecimpl.TIFFImage.getTile(TIFFImage.java:1063)
      at javax.media.jai.RenderedImageAdapter.getTile(RenderedImageAdapter.java:156)
      at javax.media.jai.NullOpImage.computeTile(NullOpImage.java:170)

        Activity

        Tyler Johnson created issue -
        Tyler Johnson made changes -
        Field Original Value New Value
        Attachment JAI.zip [ 14171 ]
        Tyler Johnson made changes -
        Attachment 11063.pdf [ 14172 ]
        Tyler Johnson made changes -
        Attachment screenshot-1.jpg [ 14173 ]
        Tyler Johnson made changes -
        Salesforce Case [5007000000LEyZR]
        Patrick Corless made changes -
        Workaround Description Remove JAI from the class path.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Patrick Corless made changes -
        Fix Version/s 4.3.4 [ 10341 ]
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Tyler Johnson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: