metadata-extractor icon indicating copy to clipboard operation
metadata-extractor copied to clipboard

InvocationTargetException com.drew.metadata.xmp.XmpReader.extract line 165

Open vincemoley opened this issue 8 years ago • 3 comments

Using the attached image causes com.drew.metadata.xmp.XmpReader.extract(@NotNull final byte[] xmpBytes, int offset, int length, @NotNull Metadata metadata, @Nullable Directory parentDirectory) to throw an InvocationTargetException on line 165 "xmpMeta = XMPMetaFactory.parseFromBuffer(xmpBytes);"

1497292455659167

vincemoley avatar Jun 14 '17 19:06 vincemoley

I was able to extract data from this image fine. For XMP data, I got Photoshop date created, XMP create date, XMP creator tool, and XMP modify date.

payton avatar Jun 30 '17 13:06 payton

I also don't see any issue. Are you sure you have the XMP JAR on your classpath, at the expected version?

It is possible that GitHub has modified the attached image though.

Can you provide more information about the exception? Does it occur on all images that contain XMP?

drewnoakes avatar Jul 11 '17 22:07 drewnoakes

xmpcore:5.1.3 is available in classpath

Here is link to original file: https://drive.google.com/open?id=0B7lRGhKHQjTvVnRJY1JfaXlWNFE

Not sure if other XMP files existed in our tests

Hopefully, the original image (attached) helps, but let me know of any other information I can provide

vincemoley avatar Jul 12 '17 18:07 vincemoley