java.lang.NoClassDefFoundError

org/bouncycastle/asn1/ASN1OctetString


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 web19099

Solution icon of web
via gmane.org by Unknown author, 1 year ago
org/bouncycastle/asn1/ASN1OctetString

Solution icon of web
The owner protected this stack trace.

Solution icon of github
org/bouncycastle/asn1/ASN1OctetString

Solution icon of github
org/bouncycastle/asn1/ASN1OctetString

Solution icon of stackoverflow
via Stack Overflow by Raj
, 1 year ago
org/bouncycastle/asn1/ASN1OctetString

Solution icon of stackoverflow
via Stack Overflow by mistletoe
, 7 months ago
org/bouncycastle/asn1/ASN1OctetString

Solution icon of web
The owner protected this stack trace.

Solution icon of stackoverflow
org/bouncycastle/asn1/ASN1OctetString

Solution icon of web
The owner protected this stack trace.

Solution icon of web
via sourceforge.net by Unknown author, 1 year ago
org/bouncycastle/asn1/ASN1OctetString

Stack trace

  • java.lang.NoClassDefFoundError: org/bouncycastle/asn1/ASN1OctetString at com.itextpdf.text.pdf.PdfEncryption.<init>(PdfEncryption.java:148) at com.itextpdf.text.pdf.PdfReader.readDecryptedDocObj(PdfReader.java:880) at com.itextpdf.text.pdf.PdfReader.readDocObj(PdfReader.java:1260) at com.itextpdf.text.pdf.PdfReader.readPdf(PdfReader.java:605) at com.itextpdf.text.pdf.PdfReader.<init>(PdfReader.java:171) at com.itextpdf.text.pdf.PdfReader.<init>(PdfReader.java:190) at com.itextpdf.text.pdf.PdfReader.<init>(PdfReader.java:180) at application.CSCoursesController.Pdfread(CSCoursesController.java:113) at application.CSCoursesController$4.handle(CSCoursesController.java:78) at application.CSCoursesController$4.handle(CSCoursesController.java:1) at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191) at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74) at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54) at javafx.event.Event.fireEvent(Event.java:198) at javafx.scene.Scene$MouseHandler.process(Scene.java:3757) at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485) at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762) at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494) at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:381) at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:295) at java.security.AccessController.doPrivileged(Native Method) at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$354(GlassViewEventHandler.java:417) at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389) at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:416) at com.sun.glass.ui.View.handleMouseEvent(View.java:555) at com.sun.glass.ui.View.notifyMouse(View.java:937) at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.bouncycastle.asn1.ASN1OctetString at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 44 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

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
2433 more bugmates