com.mirth.connect.donkey.server.channel.ChannelException

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

Samebug tips9

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.

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.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web3

  • via Mirth Project by K.A. Lehmann, 9 months ago
    java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/bouncycastle/asn1/DEREncodable
  • The owner protected this stack trace.
  • via Mirth Project by K.A. Lehmann, 1 year ago
    java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/bouncycastle/asn1/DEREncodable
  • Stack trace

    • 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 more Caused 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 more Caused 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

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Once, 3 months ago
    Unknown user
    2 times, 9 months ago
    Unknown user
    Once, 10 months ago
    2363 more bugmates