java.lang.IllegalArgumentException: Width (0) and height (7) must be > 0

ICEsoft JIRA Issue Tracker | Arran Mccullough | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    The following error is thrown when trying to print the provided PDF: Exception in thread "Thread-8" java.lang.IllegalArgumentException: Width (0) and height (7) must be > 0 at java.awt.image.SampleModel.<init>(SampleModel.java:108) at java.awt.image.ComponentSampleModel.<init>(ComponentSampleModel.java:128) at java.awt.image.PixelInterleavedSampleModel.<init>(PixelInterleavedSampleModel.java:69) at java.awt.image.Raster.createInterleavedRaster(Raster.java:638) at java.awt.image.Raster.createInterleavedRaster(Raster.java:265) at java.awt.image.BufferedImage.<init>(BufferedImage.java:365) at sun.print.PSPathGraphics.redrawRegion(PSPathGraphics.java:626) at sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:1969) at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1431) at sun.print.UnixPrintJob.printableJob(UnixPrintJob.java:618) at sun.print.UnixPrintJob.print(UnixPrintJob.java:475) at org.icepdf.ri.common.PrintHelper.cancelablePrint(PrintHelper.java:478) at org.icepdf.ri.common.PrinterTask.run(PrinterTask.java:54) at org.icepdf.ri.common.SwingController.startBackgroundPrinting(SwingController.java:3118) at org.icepdf.ri.common.SwingController.initialisePrinting(SwingController.java:2979) at org.icepdf.ri.common.SwingController.access$500(SwingController.java:87) at org.icepdf.ri.common.SwingController$4.run(SwingController.java:2922) at java.lang.Thread.run(Thread.java:662)

    ICEsoft JIRA Issue Tracker | 3 years ago | Arran Mccullough
    java.lang.IllegalArgumentException: Width (0) and height (7) must be > 0
  2. 0

    The following error is thrown when trying to print the provided PDF: Exception in thread "Thread-8" java.lang.IllegalArgumentException: Width (0) and height (7) must be > 0 at java.awt.image.SampleModel.<init>(SampleModel.java:108) at java.awt.image.ComponentSampleModel.<init>(ComponentSampleModel.java:128) at java.awt.image.PixelInterleavedSampleModel.<init>(PixelInterleavedSampleModel.java:69) at java.awt.image.Raster.createInterleavedRaster(Raster.java:638) at java.awt.image.Raster.createInterleavedRaster(Raster.java:265) at java.awt.image.BufferedImage.<init>(BufferedImage.java:365) at sun.print.PSPathGraphics.redrawRegion(PSPathGraphics.java:626) at sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:1969) at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1431) at sun.print.UnixPrintJob.printableJob(UnixPrintJob.java:618) at sun.print.UnixPrintJob.print(UnixPrintJob.java:475) at org.icepdf.ri.common.PrintHelper.cancelablePrint(PrintHelper.java:478) at org.icepdf.ri.common.PrinterTask.run(PrinterTask.java:54) at org.icepdf.ri.common.SwingController.startBackgroundPrinting(SwingController.java:3118) at org.icepdf.ri.common.SwingController.initialisePrinting(SwingController.java:2979) at org.icepdf.ri.common.SwingController.access$500(SwingController.java:87) at org.icepdf.ri.common.SwingController$4.run(SwingController.java:2922) at java.lang.Thread.run(Thread.java:662)

    ICEsoft JIRA Issue Tracker | 3 years ago | Arran Mccullough
    java.lang.IllegalArgumentException: Width (0) and height (7) must be > 0

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Width (0) and height (7) must be > 0

      at java.awt.image.SampleModel.<init>()
    2. Java RT
      UnixPrintJob.print
      1. java.awt.image.SampleModel.<init>(SampleModel.java:108)
      2. java.awt.image.ComponentSampleModel.<init>(ComponentSampleModel.java:128)
      3. java.awt.image.PixelInterleavedSampleModel.<init>(PixelInterleavedSampleModel.java:69)
      4. java.awt.image.Raster.createInterleavedRaster(Raster.java:638)
      5. java.awt.image.Raster.createInterleavedRaster(Raster.java:265)
      6. java.awt.image.BufferedImage.<init>(BufferedImage.java:365)
      7. sun.print.PSPathGraphics.redrawRegion(PSPathGraphics.java:626)
      8. sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:1969)
      9. sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1431)
      10. sun.print.UnixPrintJob.printableJob(UnixPrintJob.java:618)
      11. sun.print.UnixPrintJob.print(UnixPrintJob.java:475)
      11 frames
    3. org.icepdf.ri
      SwingController$4.run
      1. org.icepdf.ri.common.PrintHelper.cancelablePrint(PrintHelper.java:478)
      2. org.icepdf.ri.common.PrinterTask.run(PrinterTask.java:54)
      3. org.icepdf.ri.common.SwingController.startBackgroundPrinting(SwingController.java:3118)
      4. org.icepdf.ri.common.SwingController.initialisePrinting(SwingController.java:2979)
      5. org.icepdf.ri.common.SwingController.access$500(SwingController.java:87)
      6. org.icepdf.ri.common.SwingController$4.run(SwingController.java:2922)
      6 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)
      1 frame