java.lang.IllegalArgumentException: Numbers of source Raster bands and source color space components do not match

pdfbox-users | Joel Hirsh | 10 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

    Re: Exception caused by logo image

    pdfbox-users | 10 months ago | Joel Hirsh
    java.lang.IllegalArgumentException: Numbers of source Raster bands and source color space components do not match
  2. 0

    Java生成缩略图之Thumbnailator - Fish Where The Fish Are - ITeye技术网站

    iteye.com | 6 months ago
    java.lang.IllegalArgumentException: Numbers of source Raster bands and source color space components do not match

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Numbers of source Raster bands and source color space components do not match

      at java.awt.image.ColorConvertOp.filter()
    2. Java RT
      ImageReader.read
      1. java.awt.image.ColorConvertOp.filter(Unknown Source)
      2. com.sun.imageio.plugins.jpeg.JPEGImageReader.acceptPixels(Unknown Source)
      3. com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(Native Method)
      4. com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(Unknown Source)
      5. com.sun.imageio.plugins.jpeg.JPEGImageReader.read(Unknown Source)
      6. javax.imageio.ImageReader.read(Unknown Source)
      6 frames
    3. Apache PDFBox
      PDStream.createInputStream
      1. org.apache.pdfbox.filter.DCTFilter.decode(DCTFilter.java:83)
      2. org.apache.pdfbox.cos.COSInputStream.create(COSInputStream.java:69)
      3. org.apache.pdfbox.cos.COSStream.createInputStream(COSStream.java:163)
      4. org.apache.pdfbox.pdmodel.common.PDStream.createInputStream(PDStream.java:235)
      4 frames
    4. org.apache.pdfbox
      PDImageXObject.<init>
      1. org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.<init>(PDImageXObject.java:147)
      1 frame
    5. Apache PDFBox
      PDResources.getXObject
      1. org.apache.pdfbox.pdmodel.graphics.PDXObject.createXObject(PDXObject.java:70)
      2. org.apache.pdfbox.pdmodel.PDResources.getXObject(PDResources.java:385)
      2 frames