You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Damjan Jovanovic (JIRA)" <ji...@apache.org> on 2012/12/04 05:39:58 UTC

[jira] [Resolved] (IMAGING-99) java.io.IOException: Could not read block

     [ https://issues.apache.org/jira/browse/IMAGING-99?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Damjan Jovanovic resolved IMAGING-99.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0

Thank you, fixed.

                
> java.io.IOException: Could not read block
> -----------------------------------------
>
>                 Key: IMAGING-99
>                 URL: https://issues.apache.org/jira/browse/IMAGING-99
>             Project: Commons Imaging
>          Issue Type: Bug
>          Components: Format: JPEG
>    Affects Versions: 0.97
>            Reporter: st.h
>             Fix For: 1.0
>
>
> We have found that certain images could not be read with imaging, even they usually appear to be fine. This is the stack trace:
> {code}
> java.io.IOException: Could not read block (block start: 442, block length: 8861, data length: 9301).
> 	at org.apache.commons.imaging.common.bytesource.ByteSourceArray.getBlock(ByteSourceArray.java:46)
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.getJpegRawImageData(TiffReader.java:491)
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.readDirectory(TiffReader.java:216)
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.readDirectory(TiffReader.java:103)
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.readDirectory(TiffReader.java:272)
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.readDirectory(TiffReader.java:103)
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.readDirectories(TiffReader.java:95)
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.read(TiffReader.java:421)
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.readContents(TiffReader.java:412)
> 	at org.apache.commons.imaging.formats.tiff.TiffImageParser.getMetadata(TiffImageParser.java:132)
> 	at org.apache.commons.imaging.ImageParser.getMetadata(ImageParser.java:203)
> 	at org.apache.commons.imaging.formats.jpeg.JpegImageParser.getExifMetadata(JpegImageParser.java:335)
> 	at org.apache.commons.imaging.formats.jpeg.JpegImageParser.getMetadata(JpegImageParser.java:295)
> 	at org.apache.commons.imaging.formats.jpeg.JpegImageParser.getImageInfo(JpegImageParser.java:668)
> 	at org.apache.commons.imaging.Imaging.getImageInfo(Imaging.java:683)
> 	at org.apache.commons.imaging.Imaging.getImageInfo(Imaging.java:615)
> {code}
> Further research showed that these images usually are made with a certain type of camera. I have searched flicker and found a image which shows the same problems. (This image does not belong to me, but I guess this should be fine for testing purposes)
> http://www.flickr.com/photos/sara-net/3880941727/sizes/o/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira