[
https://issues.apache.org/jira/browse/SANSELAN-55?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13128999#comment-13128999
]
Chka Davaadorj commented on SANSELAN-55:
----------------------------------------
Thank you for help.
This patch worked for me. Does the ignored blocks affect to the metadata of
image?
> ArrayIndexOutOfBounds exception throwing when get metadata
> ----------------------------------------------------------
>
> Key: SANSELAN-55
> URL: https://issues.apache.org/jira/browse/SANSELAN-55
> Project: Commons Sanselan
> Issue Type: Bug
> Affects Versions: 0.94-incubator
> Environment: Ubuntu 11.04/Liftweb/SBT
> Reporter: Chka Davaadorj
> Fix For: 0.94-incubator
>
> Attachments: stupidpic.jpg, tiff-patch.txt
>
>
> This is the executed script: Sanselan.getMetadata(new File(filePath))
> But, this throws following exception:
> Caught and thrown by:
> Message: java.lang.ArrayIndexOutOfBoundsException
> java.lang.System.arraycopy(Native Method)
>
> org.apache.sanselan.common.byteSources.ByteSourceArray.getBlock(ByteSourceArray.java:52)
>
> org.apache.sanselan.formats.tiff.TiffField.fillInValue(TiffField.java:309)
>
> org.apache.sanselan.formats.tiff.TiffReader.readDirectory(TiffReader.java:195)
>
> org.apache.sanselan.formats.tiff.TiffReader.readDirectory(TiffReader.java:110)
>
> org.apache.sanselan.formats.tiff.TiffReader.readDirectories(TiffReader.java:101)
> org.apache.sanselan.formats.tiff.TiffReader.read(TiffReader.java:448)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira