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 | 6 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
    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

    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