java.lang.NoClassDefFoundError: org/apache/fontbox/FontBoxFont

Stack Overflow | Jax Swagger | 1 month ago
  1. 0

    Can't run my web application on jetty

    Stack Overflow | 8 months ago | IngeniousTom
    java.lang.ClassNotFoundException: org.hibernate.HibernateException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    FULL PRODUCT VERSION : java version "1.8.0_73" Java(TM) SE Runtime Environment (build 1.8.0_73-b02) Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode) ADDITIONAL OS VERSION INFORMATION : Microsoft Windows [Version 6.1.7601] A DESCRIPTION OF THE PROBLEM : Attempting to reopen a FXML document with a custom control inside results in a ClassNotFoundException (The document was opened by running Scene Builder with a command line argument). However, opening the file from Scene Builder File > Open works properly. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : 1. Create new FXML file 2. Open FXML file in Scene Builder (cmd> scenebuilder foo.fxml) 3. Add JAR with custom control to classpath 4. Import the JAR into Scene Builder library 5. Add control to the scene 6. Save the FXML file in Scene Builder 7. Close Scene Builder 8. Open FXML file in Scene Builder (cmd> scenebuilder foo.fxml) EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - Scene Builder should load the FXML file normally ACTUAL - A window popped up saying: Could not open 'foo.fxml' Open operation has failed. Make sure the chosen file is valid FXML document. ERROR MESSAGES/STACK TRACES THAT OCCUR : javafx.fxml.LoadException: at at<init>( at<init>( at at at at at at at at at at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$163( at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$176( at com.sun.javafx.application.PlatformImpl.lambda$null$174( at Method) at com.sun.javafx.application.PlatformImpl.lambda$runLater$175( at$ at Method) at$null$149( at Caused by: javafx.fxml.LoadException: at javafx.fxml.FXMLLoader.constructLoadException( at javafx.fxml.FXMLLoader.importClass( at javafx.fxml.FXMLLoader.processImport( at javafx.fxml.FXMLLoader.processProcessingInstruction( at javafx.fxml.FXMLLoader.loadImpl( at javafx.fxml.FXMLLoader.load( at ... 20 more Caused by: java.lang.ClassNotFoundException: CustomButton at java.lang.ClassLoader.findClass( at java.lang.ClassLoader.loadClass( at java.lang.ClassLoader.loadClass( at javafx.fxml.FXMLLoader.loadTypeForPackage( at javafx.fxml.FXMLLoader.loadType( at javafx.fxml.FXMLLoader.importClass( ... 25 more REPRODUCIBILITY : This bug can be reproduced always. CUSTOMER SUBMITTED WORKAROUND : First open an empty FXML document or one without a custom control in it. Then open the FXML file using File > Open...

    JDK Bug System | 7 months ago | Webbug Group javafx.fxml.LoadException:
  4. 0

    Archlinux, java et swift-explorer

    GitHub | 2 years ago | widowild1
    java.lang.NoClassDefFoundError: javafx/application/Platform
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
    2. java.lang.ClassLoader.loadClass(
    3. sun.misc.Launcher$AppClassLoader.loadClass(
    4. java.lang.ClassLoader.loadClass(
    4 frames
  3. Apache PDFBox
    1. org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(
    2. org.apache.pdfbox.pdmodel.PDResources.getFont(
    2 frames
  4. org.apache.pdfbox
    1. org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(
    2. org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(
    3. org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(
    4. org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(
    5. org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(
    6. org.apache.pdfbox.rendering.PageDrawer.drawPage(
    7. org.apache.pdfbox.rendering.PDFRenderer.renderPage(
    8. org.apache.pdfbox.rendering.PDFRenderer.renderImage(
    9. org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(
    9 frames
  5. Unknown
    1. PdfToPng.main(
    1 frame