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 | 6 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
    This exception normally means you either have to add the said class to your dependencies or you miswrote it. Look in the documentation of your library how to add it as a dependency.
  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 with the following: <groupId>com.fasterxml</groupId> <artifactId>classmate</artifactId> <version>1.0</version>
  6. 0
    samebug tip
    This was caused by a failure to instantiate Kafka broker. Check your dependencies.

  1. rsprangemeijer 6 times, last 4 days ago
  2. marcbouvierdav 26 times, last 5 days ago
  3. batwalrus76 12 times, last 6 days ago
  4. musketyr 1 times, last 6 days ago
  5. SteVio1989 4 times, last 7 days ago
69 more registered users
26 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