Re: LUT has improper length error

2006-10-02 Thread Dominic Br
> if you look here: http://www.widsets.com/forum/posts/list/287.page
> (googled for "LUT has improper length")

Sorry for not having asked google before writing to the mailing list...

> 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.
>

Yes, with JDK 1.5.0_09 the error does not occur anymore.

Thanks




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: LUT has improper length error

2006-10-02 Thread Paul Loy




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.(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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]