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

Missing dependency #3

Open
giovanni-annunzio opened this issue Jan 13, 2020 · 0 comments
Open

Missing dependency #3

giovanni-annunzio opened this issue Jan 13, 2020 · 0 comments

Comments

@giovanni-annunzio
Copy link

Dear team,

It looks like a dependency is missing, when trying to load an encrypted pdf

Exception in thread "main" java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider
at org.apache.pdfbox.pdmodel.encryption.PDEncryption.(PDEncryption.java:96)
at org.apache.pdfbox.pdfparser.PDFParser.prepareDecryption(PDFParser.java:282)
at org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:199)
at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:249)
at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:847)
at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:803)
at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:757)
at pdfact.core.pipes.parse.stream.pdfbox.PdfBoxPdfStreamsParser.parse(PdfBoxPdfStreamsParser.java:182)
at pdfact.core.pipes.parse.PlainParsePdfStreamsPipe.parsePdf(PlainParsePdfStreamsPipe.java:65)
at pdfact.core.pipes.parse.PlainParsePdfStreamsPipe.execute(PlainParsePdfStreamsPipe.java:48)
at pdfact.core.util.pipeline.PlainPipeline.process(PlainPipeline.java:37)
at pdfact.core.pipes.PlainPdfActCorePipe.execute(PlainPdfActCorePipe.java:248)
at pdfact.core.util.pipeline.PlainPipeline.process(PlainPipeline.java:37)
at pdfact.cli.pipes.PlainPdfActServicePipe.execute(PlainPdfActServicePipe.java:202)
at pdfact.cli.PdfActCLI.run(PdfActCLI.java:116)
at pdfact.cli.PdfActCLI.main(PdfActCLI.java:144)
Caused by: java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 16 more

https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk15on/1.64

Best regards
Giovanni

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

No branches or pull requests

1 participant