com.mirth.connect.donkey.server.channel.ChannelException: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/bouncycastle/asn1/DEREncodable

Mirth Project | K.A. Lehmann | 3 years ago
tip
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

    mirthcorp.com | 8 months ago
    com.mirth.connect.donkey.server.channel.ChannelException: 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 (com.mirth.connect.donkey.server.channel.Channel:1020): Error processing message. com.mirth.connect.donkey.server.channel.ChannelException: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/bouncycastle/asn1/DEREncodable at com.mirth.connect.donkey.server.channel.Channel.dispatchRawMessage(Channel.java:979) at com.mirth.connect.donkey.server.channel.SourceConnector.dispatchRawMessage(SourceConnector.java:177) at com.mirth.connect.donkey.server.channel.SourceConnector.dispatchRawMessage(SourceConnector.java:154) at com.mirth.connect.connectors.jdbc.DatabaseReceiver.processRecord(DatabaseReceiver.java:207) at com.mirth.connect.connectors.jdbc.DatabaseReceiver.processResultSet(DatabaseReceiver.java:173) at com.mirth.connect.connectors.jdbc.DatabaseReceiver.poll(DatabaseReceiver.java:122) at com.mirth.connect.donkey.server.channel.PollConnector$PollConnectorTask.run(PollConnector.java:141) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505)Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/bouncycastle/asn1/DEREncodable at com.mirth.connect.donkey.server.channel.Channel.handleDestinationChainThrowable(Channel.java:1497) at com.mirth.connect.donkey.server.channel.Channel.process(Channel.java:1424) at com.mirth.connect.donkey.server.channel.Channel.dispatchRawMessage(Channel.java:955) ... 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(DocumentDispatcher.java:171) at com.mirth.connect.connectors.doc.DocumentDispatcher.send(DocumentDispatcher.java:105) at com.mirth.connect.donkey.server.channel.DestinationConnector.handleSend(DestinationConnector.java:588) at com.mirth.connect.donkey.server.channel.DestinationConnector.process(DestinationConnector.java:336) at com.mirth.connect.donkey.server.channel.DestinationChain.call(DestinationChain.java:224) at com.mirth.connect.donkey.server.channel.Channel.process(Channel.java:1422) ... 9 moreCaused by: java.lang.ClassNotFoundException: org.bouncycastle.asn1.DEREncodable at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 20 more

    Mirth Project | 3 years ago | K.A. Lehmann
    com.mirth.connect.donkey.server.channel.ChannelException: 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 6 days 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

    org.bouncycastle.asn1.DEREncodable

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    6. java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    6 frames
  3. iText-4.2.1
    PdfEncryptor.encrypt
    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
    PollConnector$PollConnectorTask.run
    1. com.mirth.connect.connectors.doc.DocumentDispatcher.writeDocument(DocumentDispatcher.java:171)
    2. com.mirth.connect.connectors.doc.DocumentDispatcher.send(DocumentDispatcher.java:105)
    3. com.mirth.connect.donkey.server.channel.DestinationConnector.handleSend(DestinationConnector.java:588)
    4. com.mirth.connect.donkey.server.channel.DestinationConnector.process(DestinationConnector.java:336)
    5. com.mirth.connect.donkey.server.channel.DestinationChain.call(DestinationChain.java:224)
    6. com.mirth.connect.donkey.server.channel.Channel.process(Channel.java:1422)
    7. com.mirth.connect.donkey.server.channel.Channel.dispatchRawMessage(Channel.java:955)
    8. com.mirth.connect.donkey.server.channel.SourceConnector.dispatchRawMessage(SourceConnector.java:177)
    9. com.mirth.connect.donkey.server.channel.SourceConnector.dispatchRawMessage(SourceConnector.java:154)
    10. com.mirth.connect.connectors.jdbc.DatabaseReceiver.processRecord(DatabaseReceiver.java:207)
    11. com.mirth.connect.connectors.jdbc.DatabaseReceiver.processResultSet(DatabaseReceiver.java:173)
    12. com.mirth.connect.connectors.jdbc.DatabaseReceiver.poll(DatabaseReceiver.java:122)
    13. com.mirth.connect.donkey.server.channel.PollConnector$PollConnectorTask.run(PollConnector.java:141)
    13 frames
  5. Java RT
    TimerThread.run
    1. java.util.TimerThread.mainLoop(Timer.java:555)
    2. java.util.TimerThread.run(Timer.java:505)
    2 frames