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

ICEsoft JIRA Issue Tracker | Arran Mccullough | 3 years ago
  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
  3. 0

    IllegalArgumentException

    GitHub | 5 months ago | DreierF
    java.lang.IllegalArgumentException: width and height must be > 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    From glide file to direct share without creating more image on smartphone...

    GitHub | 3 months ago | juani21
    java.lang.RuntimeException: An error occurred while executing doInBackground()
  6. 0

    Issue in Backend camera while capturing the Image

    Stack Overflow | 6 months ago | mayurvpatel110
    java.lang.RuntimeException: Unable to resume activity {com.mayur.demo/com.mayur.demo.ActivityRegistration}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=3, result=-1, data=Intent { act=inline-data dat=content://media/external/images/media/286844 (has extras) }} to activity {com.mayur.demo/com.mayur.demo.ActivityRegistration}: java.lang.IllegalArgumentException: width and height must be > 0

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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