You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Dominic Brügger <br...@puzzle.ch> on 2006/10/02 13:55:43 UTC
LUT has improper length error
I'm getting an error when loading the attached PNG image (see below).
The image is available at the correct location.
Could the reason of the error be the transparent background? Or is it a
problem of FOP?
Regards
Dominic
2006-10-02 13:36:39,245 [main] ERROR
org.apache.fop.image.AbstractFopImage - Error while loading image: LUT
has improper length!
java.lang.IllegalArgumentException: LUT has improper length!
at
javax.imageio.ImageTypeSpecifier$Indexed.<init>(ImageTypeSpecifier.java:866)
at
javax.imageio.ImageTypeSpecifier.createIndexed(ImageTypeSpecifier.java:955)
at
com.sun.imageio.plugins.png.PNGImageReader.getImageTypes(PNGImageReader.java:1463)
at
com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1348)
at
com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1530)
at org.apache.fop.image.ImageIOImage.loadBitmap(ImageIOImage.java:96)
[...]
2006-10-02 13:36:39,283 [main] ERROR org.apache.fop.fo.FONode - Cannot
read image dimensions: file:[...]/image_ext.png
2006-10-02 13:36:44,980 [main] ERROR
org.apache.fop.image.AbstractFopImage - Error while loading image: null
java.lang.NullPointerException
at org.apache.fop.image.ImageIOImage.loadBitmap(ImageIOImage.java:86)
at org.apache.fop.image.ImageIOImage.loadDimensions(ImageIOImage.java:66)
at org.apache.fop.image.AbstractFopImage.load(AbstractFopImage.java:160)
at org.apache.fop.render.pdf.PDFRenderer.putImage(PDFRenderer.java:1421)
[...]
Re: LUT has improper length error
Posted by Paul Loy <pa...@peoplesarchive.com>.
if you look here: http://www.widsets.com/forum/posts/list/287.page
(googled for "LUT has improper length")
you'll find it says: 'This error is due to an internal bug on currently
used JDKs ImageIO class'
what version of java do you have? May be worth updating. Or if you can't
update, then you'll have to change the format of the png.
Paul.
Dominic Brügger wrote:
> I'm getting an error when loading the attached PNG image (see below).
> The image is available at the correct location.
>
> Could the reason of the error be the transparent background? Or is it
> a problem of FOP?
>
> Regards
> Dominic
>
> 2006-10-02 13:36:39,245 [main] ERROR
> org.apache.fop.image.AbstractFopImage - Error while loading image: LUT
> has improper length!
> java.lang.IllegalArgumentException: LUT has improper length!
> at
> javax.imageio.ImageTypeSpecifier$Indexed.<init>(ImageTypeSpecifier.java:866)
>
> at
> javax.imageio.ImageTypeSpecifier.createIndexed(ImageTypeSpecifier.java:955)
>
> at
> com.sun.imageio.plugins.png.PNGImageReader.getImageTypes(PNGImageReader.java:1463)
>
> at
> com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1348)
>
> at
> com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1530)
> at org.apache.fop.image.ImageIOImage.loadBitmap(ImageIOImage.java:96)
> [...]
> 2006-10-02 13:36:39,283 [main] ERROR org.apache.fop.fo.FONode - Cannot
> read image dimensions: file:[...]/image_ext.png
> 2006-10-02 13:36:44,980 [main] ERROR
> org.apache.fop.image.AbstractFopImage - Error while loading image: null
> java.lang.NullPointerException
> at org.apache.fop.image.ImageIOImage.loadBitmap(ImageIOImage.java:86)
> at
> org.apache.fop.image.ImageIOImage.loadDimensions(ImageIOImage.java:66)
> at
> org.apache.fop.image.AbstractFopImage.load(AbstractFopImage.java:160)
> at
> org.apache.fop.render.pdf.PDFRenderer.putImage(PDFRenderer.java:1421)
> [...]
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
This email has been scanned by Postini.
For more information please visit http://www.postini.com