-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JPEG: "Validation ended prematurely" #456
Comments
Hi @rgfeldman, thanks for reporting this. Please do send the sample as I think @tledoux has provided a fix and I'm testing/merging it. I have an example myself but would like to see if the fix covers this case. |
This was a jpg rather than a tiff, and too big to send as an attachment You should be able to access the file here: |
Hi @rgfeldman I believe that RC1.24 will fix this issue, please test and confirm as I can no longer access the test file. |
Thank you for the notification.
Access to the original file mentioned earlier has been restored
https://drive.google.com/file/d/1si0fth1007u8FDnIEHWiKEH9tlzoxZAs/view?usp=sharing
I have downloaded (and changed the name to test1), along with the new RC
1.24
JHOVE results:
./jhove.bat : Exception in thread "main" java.lang.NoSuchMethodError:
java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer;
At line:1 char:1
+ ./jhove.bat test1.jpg 2> tmp.txt
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Exception in
th...nio/ByteBuffer;:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
at
edu.harvard.hul.ois.jhove.NisoImageMetadata.extractIccProfileDescription(NisoImageMetadata.java:2278)
at
edu.harvard.hul.ois.jhove.module.JpegModule.readAPP2(JpegModule.java:1320)
at edu.harvard.hul.ois.jhove.module.JpegModule.parse(JpegModule.java:674)
at edu.harvard.hul.ois.jhove.JhoveBase.processFile(JhoveBase.java:824)
at edu.harvard.hul.ois.jhove.JhoveBase.process(JhoveBase.java:610)
at edu.harvard.hul.ois.jhove.JhoveBase.dispatch(JhoveBase.java:464)
at Jhove.main(Jhove.java:281)
Something still does not seem to work correctly with this file.
…On Tue, Dec 10, 2019 at 6:53 PM Carl Wilson ***@***.***> wrote:
Hi @rgfeldman <https://github.com/rgfeldman> I believe that RC1.24 will
fix this issue, please test and confirm as I can no longer access the test
file.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#456?email_source=notifications&email_token=AC277U2JMRYIVA3EBK34VY3QYATY5A5CNFSM4HJGHNQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGRLY2Y#issuecomment-564313195>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC277U2BH7M4MKQ7VATIHMDQYATY5ANCNFSM4HJGHNQQ>
.
--
Robert G. Feldman
Applications / Web Developer
Phone: 443.283.2128
Quotient-Inc.com
|
Hi @rgfeldman this is a bug with a new feature #518, I'm going to get in touch with the developer and see about a new RC for early next week. |
Further to the above I see that the issue is caused by this problem: jetty/jetty.project#3244 so Java 9 has broken this. I think that it's fixable by using ByteUtils instead so will make the patch for Monday. |
And finally @rgfeldman is it OK to add this file to the JHOVE test set for regressions once this is fixed? |
Really finally (or I hope so on this issue) @rgfeldman I've now managed to fix this simply by rebuilding the RC using Java 8, you can download and test here: https://software.openpreservation.org/releases/jhove-installer-rc.jar |
hi @carlwilson I didn't have a better forum to ask without a new ticket - did 1.20 get released with a Java 8 build, or do you have any ideas why there might be different results on different machines? I'm seeing this in a 1.20 JHOVE and TIFF module. Before we head down the path of compiling in Java 8 I just wanted to see if a public release incorporated it.
|
I have a few jpeg files that were successfully validated with version 1.20, however they are unable to validate with the new version 1.22 (which comes with jpeg-hul-1.5.1.jar)., so this may be a new issue that was recently introduced.
JHOVE ended abruptly (never completed)
The output is below:
Apr 29, 2019 3:31:54 PM edu.harvard.hul.ois.jhove.JhoveBase process
SEVERE: Validation ended prematurely due to an unhandled exception.
java.lang.IllegalArgumentException: Cannot format given Object as a Number
at java.text.DecimalFormat.format(Unknown Source)
at java.text.Format.format(Unknown Source)
at java.text.MessageFormat.subformat(Unknown Source)
at java.text.MessageFormat.format(Unknown Source)
at java.text.Format.format(Unknown Source)
at java.text.MessageFormat.format(Unknown Source)
at edu.harvard.hul.ois.jhove.module.tiff.IFD.addIntegerProperty(IFD.java:417)
at edu.harvard.hul.ois.jhove.module.tiff.ExifIFD.getProperty(ExifIFD.java:513)
at edu.harvard.hul.ois.jhove.module.jpeg.JpegExif.readExifData(JpegExif.java:164)
at edu.harvard.hul.ois.jhove.module.JpegModule.readAPP1(JpegModule.java:1112)
at edu.harvard.hul.ois.jhove.module.JpegModule.parse(JpegModule.java:650)
at edu.harvard.hul.ois.jhove.JhoveBase.processFile(JhoveBase.java:788)
at edu.harvard.hul.ois.jhove.JhoveBase.process(JhoveBase.java:560)
at edu.harvard.hul.ois.jhove.JhoveBase.dispatch(JhoveBase.java:432)
at edu.harvard.hul.ois.jhove.viewer.JhoveWindow.openAndParse(JhoveWindow.java:618)
at edu.harvard.hul.ois.jhove.viewer.JhoveWindow.pickAndAnalyzeFile1(JhoveWindow.java:391)
at edu.harvard.hul.ois.jhove.viewer.JhoveWindow$ParseThread.run(JhoveWindow.java:877)
Can provide file that caused issue if requested.
The text was updated successfully, but these errors were encountered: