java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/bouncycastle/asn1/DEREncodable

Mirth Project | K.A. Lehmann | 3 years ago
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    [MIRTH-3110] PDF Writer gives NoClassDefFoundError when using Encrypted=Yes - Mirth Project | 8 months ago java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/bouncycastle/asn1/DEREncodable
  2. 0

    When using the options encrypted=Yes and Document type='PDF' with a Document Writer Destination in Mirth 3.0.1 (upgraded from 2.2.3) it gives the following error when running the channel: ( On Mirth version 2.2.3 there are no Errors, and the channel works correct.) [2014-01-07 11:59:14,252] ERROR ( Error processing message. java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/bouncycastle/asn1/DEREncodable at at at at com.mirth.connect.connectors.jdbc.DatabaseReceiver.processRecord( at com.mirth.connect.connectors.jdbc.DatabaseReceiver.processResultSet( at com.mirth.connect.connectors.jdbc.DatabaseReceiver.poll( at$ at java.util.TimerThread.mainLoop( at by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/bouncycastle/asn1/DEREncodable at at at ... 8 moreCaused by: java.lang.NoClassDefFoundError: org/bouncycastle/asn1/DEREncodable at com.lowagie.text.pdf.PdfEncryption.<init>(Unknown Source) at com.lowagie.text.pdf.PdfWriter.setEncryption(Unknown Source) at com.lowagie.text.pdf.PdfStamper.setEncryption(Unknown Source) at com.lowagie.text.pdf.PdfStamper.setEncryption(Unknown Source) at com.lowagie.text.pdf.PdfEncryptor.encrypt(Unknown Source) at com.mirth.connect.connectors.doc.DocumentDispatcher.writeDocument( at com.mirth.connect.connectors.doc.DocumentDispatcher.send( at at at at ... 9 moreCaused by: java.lang.ClassNotFoundException: org.bouncycastle.asn1.DEREncodable at$ at$ at Method) at at java.lang.ClassLoader.loadClass( at java.lang.ClassLoader.loadClass( ... 20 more

    Mirth Project | 3 years ago | K.A. Lehmann java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/bouncycastle/asn1/DEREncodable
  3. 0
    samebug tip
    A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.
  6. 0
    samebug tip
    Check if you didn't forget to instantiate your topic in the kafka broker.

  1. Alebey 2 times, last 1 week ago
  2. Unknown User 1 times, last 1 week ago
  3. ivanszkypeter 4 times, last 1 week ago
  4. andyglick 2 times, last 2 weeks ago
  5. stigkj 4 times, last 2 weeks ago
83 more registered users
12 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
    3. Method)
    5. java.lang.ClassLoader.loadClass(
    6. java.lang.ClassLoader.loadClass(
    6 frames
  3. iText-4.2.1
    1. com.lowagie.text.pdf.PdfEncryption.<init>(Unknown Source)
    2. com.lowagie.text.pdf.PdfWriter.setEncryption(Unknown Source)
    3. com.lowagie.text.pdf.PdfStamper.setEncryption(Unknown Source)
    4. com.lowagie.text.pdf.PdfStamper.setEncryption(Unknown Source)
    5. com.lowagie.text.pdf.PdfEncryptor.encrypt(Unknown Source)
    5 frames
  4. com.mirth.connect
    1. com.mirth.connect.connectors.doc.DocumentDispatcher.writeDocument(
    2. com.mirth.connect.connectors.doc.DocumentDispatcher.send(
    10. com.mirth.connect.connectors.jdbc.DatabaseReceiver.processRecord(
    11. com.mirth.connect.connectors.jdbc.DatabaseReceiver.processResultSet(
    12. com.mirth.connect.connectors.jdbc.DatabaseReceiver.poll(
    13 frames
  5. Java RT
    1. java.util.TimerThread.mainLoop(
    2 frames