The org.bouncycastle.jce.provider.BouncyCastleProvider class is loaded reflectively by the core library and is optional. The viewer RI uses org.bouncycastle.jce.provider.BouncyCastleProvider to verify digital signatures and is a dependency of the viewer and is not optional. This can be seen the ./maven/icepdf-viewer.pom. The Bouncy jars that are needed can be found in the ./lib folder of the bundle.
My best guess is that you have a file that has an embedded digital signature and the Viewer RI is throwing the exception.
Thx Patrick, after adding the pom to the repository directory it didn't get this error anymore. But i get a new error:
2017-05-29 12:41:07 ERROR [ICEpdf-thread-pool] SYSERR:167 - Mai 29, 2017 12:41:07 PM org.icepdf.ri.common.views.AbstractPageViewComponent$PageImageCaptureTask call
WARNUNG: Error during page capture task: org/icepdf/core/util/content/b 0
java.lang.NoClassDefFoundError: org/icepdf/core/util/content/b
at org.icepdf.core.util.content.ContentParserFactory.getContentParser(Unknown Source)
at org.icepdf.core.pobjects.Page.init(Unknown Source)
at org.icepdf.ri.common.views.AbstractPageViewComponent$PageImageCaptureTask.call(Unknown Source)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
I looked in the jar and i can't find a class named 'b' in the corresponding package. Do you have any hints, how i can avoid this error?
(i'm using the community version)
You need to make sure that you are using the all the icepdf-*.jars from the official 6.2.4 bundle. If the jars from the trial release are mixed with the official release there will be class not found errors.
Also make sure that the following jars are on your class path: