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

NullPointerException at com.sun.javafx.font.FontConfigManager.populateMapsNative(Native Method) when trying JavaFX-Application on Linux

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • fx2.1
    • javafx
    • None
    • openSUSE 12.1, JDK 1.7.0_3, JavaFX-SDK-2.1.0-beta-b18, GTK-2.24, NVidia Graphics Card (Geforce 8800)

      When trying to run a JavaFX-Application, e.g., the Ensemble.jar Application the following error occurs:

      JavaFX Application Thread uncaught: java.lang.NullPointerException
      java.lang.NullPointerException
              at com.sun.javafx.font.FontConfigManager.populateMapsNative(Native Method)
              at com.sun.javafx.font.FontConfigManager.populateMaps(FontConfigManager.java:228)
              at com.sun.t2k.T2KFontFactory.getFullNameToFileMap(T2KFontFactory.java:1407)
              at com.sun.t2k.T2KFontFactory.getFontResource(T2KFontFactory.java:400)
              at com.sun.t2k.LogicalFont.getSlot0Resource(LogicalFont.java:187)
              at com.sun.t2k.LogicalFont.getSlotResource(LogicalFont.java:228)
              at com.sun.t2k.CompositeStrike.getStrikeSlot(CompositeStrike.java:91)
              at com.sun.t2k.CompositeStrike.getMetrics(CompositeStrike.java:137)
              at com.sun.javafx.font.PrismFontUtils.getFontMetrics(PrismFontUtils.java:31)
              at com.sun.javafx.font.PrismFontLoader.getFontMetrics(PrismFontLoader.java:439)
              at javafx.scene.text.Text.<init>(Text.java:129)
              at brickbreaker.Level.initInfoPanel(Level.java:492)
              at brickbreaker.Level.initContent(Level.java:593)
              at brickbreaker.Level.<init>(Level.java:101)
              at brickbreaker.Main$MainFrame.changeState(Main.java:141)
              at brickbreaker.Main$MainFrame.startGame(Main.java:115)
              at brickbreaker.Splash$3.handle(Splash.java:163)
              at brickbreaker.Splash$3.handle(Splash.java:161)
              at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:69)
              at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:217)
              at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:170)
              at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:38)
              at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:37)
              at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
              at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
              at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
              at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:53)
              at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:33)
              at javafx.event.Event.fireEvent(Event.java:171)
              at javafx.scene.Scene$KeyHandler.process(Scene.java:3139)
              at javafx.scene.Scene$KeyHandler.access$1800(Scene.java:3069)
              at javafx.scene.Scene.impl_processKeyEvent(Scene.java:1487)
              at javafx.scene.Scene$ScenePeerListener.keyEvent(Scene.java:1920)
              at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleKeyEvent(GlassViewEventHandler.java:114)
              at com.sun.glass.ui.View.handleKeyEvent(View.java:483)
              at com.sun.glass.ui.View.notifyKey(View.java:900)
              at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
              at com.sun.glass.ui.gtk.GtkApplication$2$1.run(GtkApplication.java:79)
              at java.lang.Thread.run(Thread.java:722)

      The BrickBreaker.jar Application shows only the start-screen which becomes black after the "press-any-key"-message. After closing the window the same error as described above occurs.

            kcr Kevin Rushforth
            mhofferjfx Michael Hoffer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: