Hi Nick,
The build is working for me on linux and Windows with Java 1.7. Can you tell which file
is causing the problem? I wonder if the upgrade to PDFBox 1.8.7 caused the issue?
-----Original Message-----
From: Nick Burch [mailto:nick@apache.org]
Sent: Wednesday, October 29, 2014 4:40 PM
To: dev@tika.apache.org
Subject: PDF test failing on trunk
Hi All
Just tried to build trunk, and got a test failure:
Tests in error:
testSequentialParser(org.apache.tika.parser.pdf.PDFParserTest): Unable
to extract PDF content
Tests run: 547, Failures: 0, Errors: 1, Skipped: 7
The exception in the log is:
Caused by: java.io.IOException: javax.crypto.IllegalBlockSizeException:
Input length must be multiple of 16 when decrypting with padded cipher
at
javax.crypto.CipherInputStream.getMoreData(CipherInputStream.java:115)
at javax.crypto.CipherInputStream.read(CipherInputStream.java:236)
at javax.crypto.CipherInputStream.read(CipherInputStream.java:212)
at
org.apache.pdfbox.pdmodel.encryption.SecurityHandler.encryptData(SecurityHandler.java:316)
at
org.apache.pdfbox.pdmodel.encryption.SecurityHandler.decryptStream(SecurityHandler.java:421)
at
org.apache.pdfbox.pdmodel.encryption.SecurityHandler.decrypt(SecurityHandler.java:390)
at
org.apache.pdfbox.pdmodel.encryption.SecurityHandler.decryptObject(SecurityHandler.java:365)
at
org.apache.pdfbox.pdmodel.encryption.SecurityHandler.proceedDecryption(SecurityHandler.java:196)
at
org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.decryptDocument(StandardSecurityHandler.java:158)
at
org.apache.pdfbox.pdmodel.PDDocument.openProtection(PDDocument.java:1595)
Caused by: javax.crypto.IllegalBlockSizeException: Input length must be
multiple of 16 when decrypting with padded cipher
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:750)
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:676)
at
com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:423)
at javax.crypto.Cipher.doFinal(Cipher.java:1708)
at
javax.crypto.CipherInputStream.getMoreData(CipherInputStream.java:112)
Is anyone else seeing this one?
Nick
|