ICEpdf
  1. ICEpdf
  2. PDF-24

CCITTFax image loading error

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 4.1.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows XP

      Description

      The attached PDF document renders as a blank page. It renders fine with adobe. No errors were thrown when it was loaded.

        Activity

        Hide
        Mark Collette added a comment -

        Can we have them confirm that they have the JAI JARs in their classpath, or installed in their JRE?

        Show
        Mark Collette added a comment - Can we have them confirm that they have the JAI JARs in their classpath, or installed in their JRE?
        Hide
        Patrick Corless added a comment -

        JAI or not the error still occur. Here's the stack track.

        13-Jan-2010 8:47:42 PM org.icepdf.core.pobjects.filters.CCITTFax deriveBufferedImageFromTIFFBytes
        FINE: deriveBufferedImageFromTIFFBytes() : Could not derive image from data bytes:
        java.lang.Error: Invalid code encountered while decoding 2D group 4 compressed data.
        at com.sun.media.jai.codecimpl.TIFFFaxDecoder.decodeT6(TIFFFaxDecoder.java:1093)
        at com.sun.media.jai.codecimpl.TIFFImage.getTile(TIFFImage.java:1067)
        at javax.media.jai.RenderedImageAdapter.getTile(RenderedImageAdapter.java:156)
        at javax.media.jai.NullOpImage.computeTile(NullOpImage.java:170)
        at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:912)
        at javax.media.jai.OpImage.getTile(OpImage.java:1139)
        at javax.media.jai.RenderedOp.getTile(RenderedOp.java:2268)
        at org.icepdf.core.pobjects.filters.CCITTFax.deriveBufferedImageFromTIFFBytes(CCITTFax.java:834)
        at org.icepdf.core.pobjects.filters.CCITTFax.attemptDeriveBufferedImageFromBytes(CCITTFax.java:741)
        at org.icepdf.core.pobjects.Stream.nonDecodeCCITTMakeImage(Stream.java:1479)
        at org.icepdf.core.pobjects.Stream.decodeCCITTFaxDecodeOrDCTDecodeOrJBIG2DecodeImage(Stream.java:533)
        at org.icepdf.core.pobjects.Stream.getImage(Stream.java:1741)
        at org.icepdf.core.pobjects.Stream.getImage(Stream.java:1704)
        at org.icepdf.core.pobjects.Resources.getImage(Resources.java:261)
        at org.icepdf.core.util.ContentParser.parse(ContentParser.java:453)
        at org.icepdf.core.pobjects.Page.init(Page.java:377)
        at org.icepdf.core.views.swing.PageViewComponentImpl$PageInitilizer.run(PageViewComponentImpl.java:1122)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
        13-Jan-2010 8:47:42 PM org.icepdf.core.pobjects.filters.CCITTFax deriveBufferedImageFromTIFFBytes
        FINE: deriveBufferedImageFromTIFFBytes() : Could not derive image from data bytes:
        java.lang.Error: Invalid code encountered.
        at com.sun.media.jai.codecimpl.TIFFFaxDecoder.decodeNextScanline(TIFFFaxDecoder.java:621)
        at com.sun.media.jai.codecimpl.TIFFFaxDecoder.decode1D(TIFFFaxDecoder.java:583)
        at com.sun.media.jai.codecimpl.TIFFImage.getTile(TIFFImage.java:1060)
        at javax.media.jai.RenderedImageAdapter.getTile(RenderedImageAdapter.java:156)
        at javax.media.jai.NullOpImage.computeTile(NullOpImage.java:170)
        at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:912)
        at javax.media.jai.OpImage.getTile(OpImage.java:1139)
        at javax.media.jai.RenderedOp.getTile(RenderedOp.java:2268)
        at org.icepdf.core.pobjects.filters.CCITTFax.deriveBufferedImageFromTIFFBytes(CCITTFax.java:834)
        at org.icepdf.core.pobjects.filters.CCITTFax.attemptDeriveBufferedImageFromBytes(CCITTFax.java:758)
        at org.icepdf.core.pobjects.Stream.nonDecodeCCITTMakeImage(Stream.java:1479)
        at org.icepdf.core.pobjects.Stream.decodeCCITTFaxDecodeOrDCTDecodeOrJBIG2DecodeImage(Stream.java:533)
        at org.icepdf.core.pobjects.Stream.getImage(Stream.java:1741)
        at org.icepdf.core.pobjects.Stream.getImage(Stream.java:1704)
        at org.icepdf.core.pobjects.Resources.getImage(Resources.java:261)
        at org.icepdf.core.util.ContentParser.parse(ContentParser.java:453)
        at org.icepdf.core.pobjects.Page.init(Page.java:377)
        at org.icepdf.core.views.swing.PageViewComponentImpl$PageInitilizer.run(PageViewComponentImpl.java:1122)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
        13-Jan-2010 8:47:42 PM 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)
        at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:912)
        at javax.media.jai.OpImage.getTile(OpImage.java:1139)
        at javax.media.jai.RenderedOp.getTile(RenderedOp.java:2268)
        at org.icepdf.core.pobjects.filters.CCITTFax.deriveBufferedImageFromTIFFBytes(CCITTFax.java:834)
        at org.icepdf.core.pobjects.filters.CCITTFax.attemptDeriveBufferedImageFromBytes(CCITTFax.java:758)
        at org.icepdf.core.pobjects.Stream.nonDecodeCCITTMakeImage(Stream.java:1479)
        at org.icepdf.core.pobjects.Stream.decodeCCITTFaxDecodeOrDCTDecodeOrJBIG2DecodeImage(Stream.java:533)
        at org.icepdf.core.pobjects.Stream.getImage(Stream.java:1741)
        at org.icepdf.core.pobjects.Stream.getImage(Stream.java:1704)
        at org.icepdf.core.pobjects.Resources.getImage(Resources.java:261)
        at org.icepdf.core.util.ContentParser.parse(ContentParser.java:453)
        at org.icepdf.core.pobjects.Page.init(Page.java:377)
        at org.icepdf.core.views.swing.PageViewComponentImpl$PageInitilizer.run(PageViewComponentImpl.java:1122)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
        13-Jan-2010 8:47:43 PM org.icepdf.core.util.ContentParser parse
        FINER: End of Content Stream

        Show
        Patrick Corless added a comment - JAI or not the error still occur. Here's the stack track. 13-Jan-2010 8:47:42 PM org.icepdf.core.pobjects.filters.CCITTFax deriveBufferedImageFromTIFFBytes FINE: deriveBufferedImageFromTIFFBytes() : Could not derive image from data bytes: java.lang.Error: Invalid code encountered while decoding 2D group 4 compressed data. at com.sun.media.jai.codecimpl.TIFFFaxDecoder.decodeT6(TIFFFaxDecoder.java:1093) at com.sun.media.jai.codecimpl.TIFFImage.getTile(TIFFImage.java:1067) at javax.media.jai.RenderedImageAdapter.getTile(RenderedImageAdapter.java:156) at javax.media.jai.NullOpImage.computeTile(NullOpImage.java:170) at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:912) at javax.media.jai.OpImage.getTile(OpImage.java:1139) at javax.media.jai.RenderedOp.getTile(RenderedOp.java:2268) at org.icepdf.core.pobjects.filters.CCITTFax.deriveBufferedImageFromTIFFBytes(CCITTFax.java:834) at org.icepdf.core.pobjects.filters.CCITTFax.attemptDeriveBufferedImageFromBytes(CCITTFax.java:741) at org.icepdf.core.pobjects.Stream.nonDecodeCCITTMakeImage(Stream.java:1479) at org.icepdf.core.pobjects.Stream.decodeCCITTFaxDecodeOrDCTDecodeOrJBIG2DecodeImage(Stream.java:533) at org.icepdf.core.pobjects.Stream.getImage(Stream.java:1741) at org.icepdf.core.pobjects.Stream.getImage(Stream.java:1704) at org.icepdf.core.pobjects.Resources.getImage(Resources.java:261) at org.icepdf.core.util.ContentParser.parse(ContentParser.java:453) at org.icepdf.core.pobjects.Page.init(Page.java:377) at org.icepdf.core.views.swing.PageViewComponentImpl$PageInitilizer.run(PageViewComponentImpl.java:1122) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) 13-Jan-2010 8:47:42 PM org.icepdf.core.pobjects.filters.CCITTFax deriveBufferedImageFromTIFFBytes FINE: deriveBufferedImageFromTIFFBytes() : Could not derive image from data bytes: java.lang.Error: Invalid code encountered. at com.sun.media.jai.codecimpl.TIFFFaxDecoder.decodeNextScanline(TIFFFaxDecoder.java:621) at com.sun.media.jai.codecimpl.TIFFFaxDecoder.decode1D(TIFFFaxDecoder.java:583) at com.sun.media.jai.codecimpl.TIFFImage.getTile(TIFFImage.java:1060) at javax.media.jai.RenderedImageAdapter.getTile(RenderedImageAdapter.java:156) at javax.media.jai.NullOpImage.computeTile(NullOpImage.java:170) at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:912) at javax.media.jai.OpImage.getTile(OpImage.java:1139) at javax.media.jai.RenderedOp.getTile(RenderedOp.java:2268) at org.icepdf.core.pobjects.filters.CCITTFax.deriveBufferedImageFromTIFFBytes(CCITTFax.java:834) at org.icepdf.core.pobjects.filters.CCITTFax.attemptDeriveBufferedImageFromBytes(CCITTFax.java:758) at org.icepdf.core.pobjects.Stream.nonDecodeCCITTMakeImage(Stream.java:1479) at org.icepdf.core.pobjects.Stream.decodeCCITTFaxDecodeOrDCTDecodeOrJBIG2DecodeImage(Stream.java:533) at org.icepdf.core.pobjects.Stream.getImage(Stream.java:1741) at org.icepdf.core.pobjects.Stream.getImage(Stream.java:1704) at org.icepdf.core.pobjects.Resources.getImage(Resources.java:261) at org.icepdf.core.util.ContentParser.parse(ContentParser.java:453) at org.icepdf.core.pobjects.Page.init(Page.java:377) at org.icepdf.core.views.swing.PageViewComponentImpl$PageInitilizer.run(PageViewComponentImpl.java:1122) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) 13-Jan-2010 8:47:42 PM 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) at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:912) at javax.media.jai.OpImage.getTile(OpImage.java:1139) at javax.media.jai.RenderedOp.getTile(RenderedOp.java:2268) at org.icepdf.core.pobjects.filters.CCITTFax.deriveBufferedImageFromTIFFBytes(CCITTFax.java:834) at org.icepdf.core.pobjects.filters.CCITTFax.attemptDeriveBufferedImageFromBytes(CCITTFax.java:758) at org.icepdf.core.pobjects.Stream.nonDecodeCCITTMakeImage(Stream.java:1479) at org.icepdf.core.pobjects.Stream.decodeCCITTFaxDecodeOrDCTDecodeOrJBIG2DecodeImage(Stream.java:533) at org.icepdf.core.pobjects.Stream.getImage(Stream.java:1741) at org.icepdf.core.pobjects.Stream.getImage(Stream.java:1704) at org.icepdf.core.pobjects.Resources.getImage(Resources.java:261) at org.icepdf.core.util.ContentParser.parse(ContentParser.java:453) at org.icepdf.core.pobjects.Page.init(Page.java:377) at org.icepdf.core.views.swing.PageViewComponentImpl$PageInitilizer.run(PageViewComponentImpl.java:1122) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) 13-Jan-2010 8:47:43 PM org.icepdf.core.util.ContentParser parse FINER: End of Content Stream
        Hide
        Patrick Corless added a comment -

        Closing issue, appears to be fixed in 4.1.1

        Show
        Patrick Corless added a comment - Closing issue, appears to be fixed in 4.1.1

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: