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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: