commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chicheng.C.Tsai (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IMAGING-177) java.io.IOException: Could not read block
Date Mon, 30 Nov 2015 02:34:11 GMT

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

Chicheng.C.Tsai updated IMAGING-177:
------------------------------------
    Description: 
We have found that certain images could not be read with imaging.

{noformat}
.jpgException in thread "main" java.io.IOException: Could not read block (block start: 8,
block length: 8895, data length: 2602).
	at org.apache.commons.imaging.common.bytesource.ByteSourceArray.getBlock(ByteSourceArray.java:47)
	at org.apache.commons.imaging.formats.tiff.TiffReader.getTiffRawImageData(TiffReader.java:447)
	at org.apache.commons.imaging.formats.tiff.TiffReader.readDirectory(TiffReader.java:224)
	at org.apache.commons.imaging.formats.tiff.TiffReader.readDirectory(TiffReader.java:122)
	at org.apache.commons.imaging.formats.tiff.TiffReader.readDirectories(TiffReader.java:115)
	at org.apache.commons.imaging.formats.tiff.TiffReader.read(TiffReader.java:427)
	at org.apache.commons.imaging.formats.tiff.TiffReader.readContents(TiffReader.java:419)
	at org.apache.commons.imaging.formats.tiff.TiffImageParser.getMetadata(TiffImageParser.java:123)
	at org.apache.commons.imaging.ImageParser.getMetadata(ImageParser.java:220)
	at org.apache.commons.imaging.formats.jpeg.JpegImageParser.getExifMetadata(JpegImageParser.java:355)
	at org.apache.commons.imaging.formats.jpeg.JpegImageParser.getMetadata(JpegImageParser.java:312)
	at org.apache.commons.imaging.Imaging.getMetadata(Imaging.java:1116)
	at org.apache.commons.imaging.Imaging.getMetadata(Imaging.java:1009)
	at org.apache.commons.imaging.Imaging.getMetadata(Imaging.java:984)
	at com.neweggtech.thumbnailgenerator.factory.ThumbnailGenerator.initMimeAndPicinfo(ThumbnailGenerator.java:113)
	at com.neweggtech.thumbnailgenerator.factory.ThumbnailGenerator.<init>(ThumbnailGenerator.java:85)
	at MainClass.main(MainClass.java:38)
{noformat}

  was:
We have found that certain images could not be read with imaging.

{noformat}
.jpgException in thread "main" java.io.IOException: Could not read block (block start: 8,
block length: 8895, data length: 2602).
	at org.apache.commons.imaging.common.bytesource.ByteSourceArray.getBlock(ByteSourceArray.java:47)
	at org.apache.commons.imaging.formats.tiff.TiffReader.getTiffRawImageData(TiffReader.java:447)
	at org.apache.commons.imaging.formats.tiff.TiffReader.readDirectory(TiffReader.java:224)
	at org.apache.commons.imaging.formats.tiff.TiffReader.readDirectory(TiffReader.java:122)
	at org.apache.commons.imaging.formats.tiff.TiffReader.readDirectories(TiffReader.java:115)
	at org.apache.commons.imaging.formats.tiff.TiffReader.read(TiffReader.java:427)
	at org.apache.commons.imaging.formats.tiff.TiffReader.readContents(TiffReader.java:419)
	at org.apache.commons.imaging.formats.tiff.TiffImageParser.getMetadata(TiffImageParser.java:123)
	at org.apache.commons.imaging.ImageParser.getMetadata(ImageParser.java:220)
	at org.apache.commons.imaging.formats.jpeg.JpegImageParser.getExifMetadata(JpegImageParser.java:355)
	at org.apache.commons.imaging.formats.jpeg.JpegImageParser.getMetadata(JpegImageParser.java:312)
	at org.apache.commons.imaging.Imaging.getMetadata(Imaging.java:1116)
	at org.apache.commons.imaging.Imaging.getMetadata(Imaging.java:1009)
	at org.apache.commons.imaging.Imaging.getMetadata(Imaging.java:984)
	at com.neweggtech.thumbnailgenerator.factory.ThumbnailGenerator.initMimeAndPicinfo(ThumbnailGenerator.java:113)
	at com.neweggtech.thumbnailgenerator.factory.ThumbnailGenerator.<init>(ThumbnailGenerator.java:85)
	at MainClass.main(MainClass.java:38)
{noformat}

http://imgur.com/ECsHbrw


> java.io.IOException: Could not read block
> -----------------------------------------
>
>                 Key: IMAGING-177
>                 URL: https://issues.apache.org/jira/browse/IMAGING-177
>             Project: Commons Imaging
>          Issue Type: Bug
>          Components: Format: JPEG
>    Affects Versions: 1.0
>            Reporter: Chicheng.C.Tsai
>         Attachments: JPEG.jpeg
>
>
> We have found that certain images could not be read with imaging.
> {noformat}
> .jpgException in thread "main" java.io.IOException: Could not read block (block start:
8, block length: 8895, data length: 2602).
> 	at org.apache.commons.imaging.common.bytesource.ByteSourceArray.getBlock(ByteSourceArray.java:47)
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.getTiffRawImageData(TiffReader.java:447)
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.readDirectory(TiffReader.java:224)
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.readDirectory(TiffReader.java:122)
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.readDirectories(TiffReader.java:115)
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.read(TiffReader.java:427)
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.readContents(TiffReader.java:419)
> 	at org.apache.commons.imaging.formats.tiff.TiffImageParser.getMetadata(TiffImageParser.java:123)
> 	at org.apache.commons.imaging.ImageParser.getMetadata(ImageParser.java:220)
> 	at org.apache.commons.imaging.formats.jpeg.JpegImageParser.getExifMetadata(JpegImageParser.java:355)
> 	at org.apache.commons.imaging.formats.jpeg.JpegImageParser.getMetadata(JpegImageParser.java:312)
> 	at org.apache.commons.imaging.Imaging.getMetadata(Imaging.java:1116)
> 	at org.apache.commons.imaging.Imaging.getMetadata(Imaging.java:1009)
> 	at org.apache.commons.imaging.Imaging.getMetadata(Imaging.java:984)
> 	at com.neweggtech.thumbnailgenerator.factory.ThumbnailGenerator.initMimeAndPicinfo(ThumbnailGenerator.java:113)
> 	at com.neweggtech.thumbnailgenerator.factory.ThumbnailGenerator.<init>(ThumbnailGenerator.java:85)
> 	at MainClass.main(MainClass.java:38)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message