Page 1 of 1

ERROR: Preparing file:

PostPosted: Sun Nov 30, 2014 5:28 pm
by benhz4s
Would like to use regain to index my collection of PDF and other files in my Reference Library but have run into a problem when indexing some of my purchased PDF content. These typical error message is below. Do you have any suggestions?

Thanks in advanced.
-Ben

2014-11-30 10:26:21 [Thread-26] ERROR: Preparing file://C%3A/Users/abc/d123/References/C ... 3-2010.pdf with preparator net.sf.regain.crawler.preparator.PdfBoxPreparator failed
net.sf.regain.RegainException: Preparing file://C%3A/Users/abc/d123/References/C ... 3-2010.pdf with preparator net.sf.regain.crawler.preparator.PdfBoxPreparator failed
at net.sf.regain.crawler.document.DocumentFactory.createDocument(DocumentFactory.java:336)
at net.sf.regain.crawler.document.DocumentFactory.createDocument(DocumentFactory.java:251)
at net.sf.regain.crawler.IndexWriterManager.createNewIndexEntry(IndexWriterManager.java:749)
at net.sf.regain.crawler.IndexWriterManager.addToIndex(IndexWriterManager.java:732)
at net.sf.regain.crawler.Crawler.run(Crawler.java:575)
at net.sf.regain.ui.desktop.IndexUpdateManager.checkUpdate(IndexUpdateManager.java:214)
at net.sf.regain.ui.desktop.IndexUpdateManager.checkThreadRun(IndexUpdateManager.java:158)
at net.sf.regain.ui.desktop.IndexUpdateManager$1.run(IndexUpdateManager.java:81)
Caused by: net.sf.regain.RegainException: Error reading document: file://C%3A/Users/abc/d123/References/C ... 3-2010.pdf
at net.sf.regain.crawler.preparator.PdfBoxPreparator.prepare(PdfBoxPreparator.java:172)
at net.sf.regain.crawler.document.DocumentFactory.createDocument(DocumentFactory.java:319)
... 7 more
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:233)
at javax.crypto.CipherInputStream.read(CipherInputStream.java:209)
at org.apache.pdfbox.pdmodel.encryption.SecurityHandler.encryptData(SecurityHandler.java:313)
at org.apache.pdfbox.pdmodel.encryption.SecurityHandler.decryptStream(SecurityHandler.java:412)
at org.apache.pdfbox.pdmodel.encryption.SecurityHandler.decrypt(SecurityHandler.java:384)
at org.apache.pdfbox.pdmodel.encryption.SecurityHandler.decryptObject(SecurityHandler.java:358)
at org.apache.pdfbox.pdmodel.encryption.SecurityHandler.proceedDecryption(SecurityHandler.java:195)
at org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.decryptDocument(StandardSecurityHandler.java:156)
at org.apache.pdfbox.pdmodel.PDDocument.openProtection(PDDocument.java:1366)
at net.sf.regain.crawler.preparator.PdfBoxPreparator.prepare(PdfBoxPreparator.java:92)
... 8 more
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:913)
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:824)
at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:436)
at javax.crypto.Cipher.doFinal(Cipher.java:2004)
at javax.crypto.CipherInputStream.getMoreData(CipherInputStream.java:112)
... 18 more