Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8097322

NPE when trying to load default font on Slackware linux

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 7u10
    • javafx
    • None
    • Slackware Linux

      I get the following stack trace any time anything in my application tries to reference a JavaFX Font.

      /var/cache/kiosk/javafx-samples-2.2.4# ../jre1.7.0_13/bin/java -jar Ensemble.jar
      Exception in Application start method
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at com.javafx.main.Main.launchApp(Main.java:642)
      at com.javafx.main.Main.main(Main.java:805)
      Caused by: java.lang.RuntimeException: Exception in Application start method
      at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:403)
      at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:47)
      at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:115)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.ExceptionInInitializerError
      at javafx.scene.control.Labeled$1.getStyleableProperty(Labeled.java:147)
      at com.sun.javafx.css.StyleableProperty.getStyleableProperty(StyleableProperty.java:86)
      at javafx.scene.control.ToggleButton.initialize(ToggleButton.java:129)
      at javafx.scene.control.ToggleButton.<init>(ToggleButton.java:108)
      at ensemble.Ensemble2.start(Ensemble2.java:260)
      at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
      at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:215)
      at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:179)
      at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:176)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:176)
      at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
      at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
      at com.sun.glass.ui.gtk.GtkApplication$3$1.run(GtkApplication.java:82)
      ... 1 more
      Caused by: java.lang.NullPointerException
      at com.sun.t2k.LogicalFont.<init>(LogicalFont.java:172)
      at com.sun.t2k.LogicalFont.getLogicalFont(LogicalFont.java:104)
      at com.sun.t2k.LogicalFont.getLogicalFont(LogicalFont.java:144)
      at com.sun.t2k.T2KFontFactory.createFont(T2KFontFactory.java:356)
      at com.sun.javafx.font.PrismFontLoader.loadFont(PrismFontLoader.java:399)
      at javafx.scene.text.Font.<init>(Font.java:282)
      at javafx.scene.text.Font.getDefault(Font.java:85)
      at javafx.scene.control.Labeled$StyleableProperties.<clinit>(Labeled.java:664)
      ... 15 more

            ddhill David Hill (Inactive)
            duke J. Duke
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: