You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Dear team,
It looks like a dependency is missing, when trying to load an encrypted pdf
https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk15on/1.64
Best regards
Giovanni
The text was updated successfully, but these errors were encountered: