Skip to content
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

Investigate errors from itextpdf when reading some pdfs #6

Open
pgarrison opened this issue Mar 28, 2014 · 3 comments
Open

Investigate errors from itextpdf when reading some pdfs #6

pgarrison opened this issue Mar 28, 2014 · 3 comments
Labels

Comments

@pgarrison
Copy link
Owner

Some stack traces:

java.lang.NoClassDefFoundError: org.bouncycastle.crypto.engines.AESFastEngine
at com.itextpdf.text.pdf.crypto.AESCipher.(AESCipher.java:62)
at com.itextpdf.text.pdf.StandardDecryption.update(StandardDecryption.java:84)
at com.itextpdf.text.pdf.PdfEncryption.decryptByteArray(PdfEncryption.java:746)
at com.itextpdf.text.pdf.PdfString.decrypt(PdfString.java:218)
at com.itextpdf.text.pdf.PdfReader.readDecryptedDocObj(PdfReader.java:804)
at com.itextpdf.text.pdf.PdfReader.readDocObj(PdfReader.java:1152)
at com.itextpdf.text.pdf.PdfReader.readPdf(PdfReader.java:512)
at com.itextpdf.text.pdf.PdfReader.(PdfReader.java:172)
at com.itextpdf.text.pdf.PdfReader.(PdfReader.java:161)
at com.speedreader.Options$14.run(Options.java:448)

java.lang.NoClassDefFoundError: org.bouncycastle.crypto.engines.AESFastEngine
at com.itextpdf.text.pdf.crypto.AESCipher.(AESCipher.java:62)
at com.itextpdf.text.pdf.StandardDecryption.update(StandardDecryption.java:84)
at com.itextpdf.text.pdf.PdfEncryption.decryptByteArray(PdfEncryption.java:746)
at com.itextpdf.text.pdf.PdfReader.getStreamBytesRaw(PdfReader.java:2365)
at com.itextpdf.text.pdf.PdfReader.getStreamBytes(PdfReader.java:2310)
at com.itextpdf.text.pdf.PdfReader.readObjStm(PdfReader.java:1215)
at com.itextpdf.text.pdf.PdfReader.readDocObj(PdfReader.java:1157)
at com.itextpdf.text.pdf.PdfReader.readPdf(PdfReader.java:512)
at com.itextpdf.text.pdf.PdfReader.(PdfReader.java:172)
at com.itextpdf.text.pdf.PdfReader.(PdfReader.java:161)
at com.speedreader.Options$14.run(Options.java:448)

@pgarrison pgarrison added the bug label Mar 28, 2014
@moonandroid
Copy link

i got this error,

java.lang.NoClassDefFoundError: org.spongycastle.crypto.engines.AESFastEngine
at com.itextpdf.text.pdf.crypto.AESCipher.(AESCipher.java:62)
at com.itextpdf.text.pdf.StandardDecryption.update(StandardDecryption.java:84)
at com.itextpdf.text.pdf.PdfEncryption.decryptByteArray(PdfEncryption.java:772)
at com.itextpdf.text.pdf.PdfString.decrypt(PdfString.java:221)
at com.itextpdf.text.pdf.PdfReader.readDecryptedDocObj(PdfReader.java:943)
at com.itextpdf.text.pdf.PdfReader.readDocObj(PdfReader.java:1307)
at com.itextpdf.text.pdf.PdfReader.readPdf(PdfReader.java:641)
at com.itextpdf.text.pdf.PdfReader.(PdfReader.java:176)
at com.itextpdf.text.pdf.PdfReader.(PdfReader.java:214)
at com.itextpdf.text.pdf.PdfReader.(PdfReader.java:202)
at com.itextpdf.text.pdf.PdfReader.(PdfReader.java:192)

How can fix this issue.

@sathiyaselvam
Copy link

Add dependency jar with correct format,
dependency
groupId-com.itextpdf
artifactId - itextpdf
version-5.5.4
optional-true

// Bouncycastle dependencies necessary as they are optional = true
// in itextpdf ... but they're not-so-optional in reality
dependency
groupId-org.bouncycastle
artifactId-bcprov-jdk15on
version-1.49

dependency
groupId-org.bouncycastle
artifactId-bcpkix-jdk15on
version-1.49

@moonandroid
Copy link

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants