java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider

Apache's JIRA Issue Tracker | Ken Krugler | 7 years ago
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola . Or join the community to write better ones.
  1. 0
    samebug tip
    Look for missing class files, specially org.I0Itec.zkclient.IZkStateListener.
  2. 0

    [SOLR-1819] Upgrade to Tika 0.7 - ASF JIRA | 1 year ago
    java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider
  3. 0

    See title.

    Apache's JIRA Issue Tracker | 7 years ago | Tricia Jenkins
    java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    While processing a bunch of PDFs off the web, I ran into a ClassNotFoundException thrown inside of PDFBox: java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider at org.apache.pdfbox.pdmodel.PDDocument.openProtection( at org.apache.pdfbox.pdmodel.PDDocument.decrypt( at org.apache.pdfbox.util.PDFTextStripper.writeText( at org.apache.pdfbox.util.PDFTextStripper.getText( at org.apache.tika.parser.pdf.PDF2XHTML.process( at org.apache.tika.parser.pdf.PDFParser.parse( at org.apache.tika.parser.CompositeParser.parse( at org.apache.tika.parser.AutoDetectParser.parse( at org.apache.tika.parser.AutoDetectParser.parse( at bixo.parser.SimpleParser.parse( Caused by: java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider at$ at Method) at at java.lang.ClassLoader.loadClass( at sun.misc.Launcher$AppClassLoader.loadClass( at java.lang.ClassLoader.loadClass( I believe the issue is that the PDFBox pom.xml declares the dependency on the missing BouncyCastleProvider jar as "optional". <dependency> <groupId>bouncycastle</groupId> <artifactId>bcprov-jdk14</artifactId> <version>136</version> <optional>true</optional> </dependency> As explained in the Maven documentation, this means that Tika needs to explicitly include the jar: I see a few other optional dependencies in the PDFBox pom.xml, but perhaps the only one that's really critical is the above.

    Apache's JIRA Issue Tracker | 7 years ago | Ken Krugler
    java.lang.NoClassDefFoundError: org/bouncycastle/jce/provider/BouncyCastleProvider
  6. 0

    ViewPager Injection not working

    GitHub | 3 years ago | airblaster
    java.lang.ClassNotFoundException: android.view.ViewGroup

  1. iferca 3 times, last 2 weeks ago
  2. andyglick 1 times, last 3 weeks ago
  3. Andreas Häber 2 times, last 3 weeks ago
  4. carloscharx 6 times, last 4 weeks ago
  5. poroszd 1 times, last 4 weeks ago
68 more registered users
27 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException


  2. Java RT
    2. Method)
    4. java.lang.ClassLoader.loadClass(
    5. sun.misc.Launcher$AppClassLoader.loadClass(
    6. java.lang.ClassLoader.loadClass(
    6 frames