java.lang.IllegalArgumentException: Number of color/alpha components should be 4 but length of bits array is 1

webmoli.com | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Pure Java Print PDF Open Source API | WebMoli - Rediscover the Basics

    webmoli.com | 1 year ago
    java.lang.IllegalArgumentException: Number of color/alpha components should be 4 but length of bits array is 1
  2. 0

    Pure Java Print PDF Open Source API | WebMoli - Rediscover the Basics

    webmoli.com | 7 months ago
    java.lang.IllegalArgumentException: Number of color/alpha components should be 4 but length of bits array is 1
  3. 0

    java.lang.IllegalArgumentException: Number of color/alpha components should be 4 but length of bits array is 1 - Atlassian Answers

    atlassian.com | 12 months ago
    java.lang.IllegalArgumentException: Number of color/alpha components should be 4 but length of bits array is 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Number of color/alpha components should be 4 but length of bits array is 1

      at java.awt.image.ColorModel.<init>()
    2. Java RT
      ComponentColorModel.<init>
      1. java.awt.image.ColorModel.<init>(ColorModel.java:318)
      2. java.awt.image.ComponentColorModel.<init>(ComponentColorModel.java:256)
      2 frames
    3. PDF Renderer
      BaseWatchable.run
      1. com.sun.pdfview.PDFImage$DecodeComponentColorModel.<init>(PDFImage.java:564)
      2. com.sun.pdfview.PDFImage.getColorModel(PDFImage.java:529)
      3. com.sun.pdfview.PDFImage.parseData(PDFImage.java:270)
      4. com.sun.pdfview.PDFImage.getImage(PDFImage.java:225)
      5. com.sun.pdfview.PDFRenderer.drawImage(PDFRenderer.java:273)
      6. com.sun.pdfview.PDFImageCmd.execute(PDFPage.java:643)
      7. com.sun.pdfview.PDFRenderer.iterate(PDFRenderer.java:570)
      8. com.sun.pdfview.BaseWatchable.run(BaseWatchable.java:101)
      8 frames
    4. Unknown
      PDFPrintPage.print
      1. PDFPrintPage.print(NewClass.java:42)
      1 frame
    5. Java RT
      RasterPrinterJob.print
      1. sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:1964)
      2. sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1431)
      3. sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1247)
      3 frames
    6. Unknown
      PrintPdf.main
      1. PrintPdf.print(PrintPdf.java:99)
      2. PrintPdf.main(PrintPdf.java:40)
      2 frames