commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srijan Bhatnagar (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IMAGING-202) java.io.IOException: Could not read block
Date Wed, 08 Mar 2017 10:52:38 GMT
Srijan Bhatnagar created IMAGING-202:
----------------------------------------

             Summary: java.io.IOException: Could not read block
                 Key: IMAGING-202
                 URL: https://issues.apache.org/jira/browse/IMAGING-202
             Project: Commons Imaging
          Issue Type: Bug
          Components: Format: JPEG, Format: TIFF
    Affects Versions: 1.0
            Reporter: Srijan Bhatnagar
            Priority: Critical


Some images could not be read with imaging. The following exception appears - 
{code}
java.io.IOException: Could not read block (block start: 1024, block length: 211680000, data
length: 108598491).
	at org.apache.commons.imaging.common.bytesource.ByteSourceInputStream.getBlock(ByteSourceInputStream.java:216)
	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:144)
	at com.day.cq.dam.commons.handler.StandardImageHandler.extractMetadata(StandardImageHandler.java:385)
	at com.day.cq.dam.commons.handler.StandardImageHandler.extractMetadata(StandardImageHandler.java:201)
	at com.day.cq.dam.core.process.MetadataExtractor.extractMetadata(MetadataExtractor.java:82)
	at com.day.cq.dam.core.process.MetadataProcessorProcess.execute(MetadataProcessorProcess.java:121)
	at com.day.cq.workflow.compatibility.CQWorkflowProcessRunner.execute(CQWorkflowProcessRunner.java:93)
	at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:189)
	at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:244)
	at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:500)
	at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:291)
	at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:58)
	at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:227)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
{code}

PFA the attached TIF file as well as the underlying JPEG



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message