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

[Linux] NullPointerException at FontConfigManager

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • fx2.1
    • javafx
    • None
    • I have Ubuntu 11.10 32-bit.
      Dell Latitude D830
      Nvidia quadro 140m

      Starting with javafx 2.1.0-b15-linux I have a problem with running any javafx application with Text control.
      I get NullPointerException during app starting.
      In javafx 2.1.0-b13-linux everything is ok.
      I have Ubuntu 11.10 32-bit.
      I don't have that problem with "pure graphic app" (without controls).


      Stacktrace on start FXExperienceTools:

      Exception in Application start method
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at com.javafx.main.Main.launchApp(Main.java:486)
      at com.javafx.main.Main.main(Main.java:638)
      Caused by: java.lang.RuntimeException: Exception in Application start method
      at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:399)
      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(Thread.java:722)
      Caused by: 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 javafx.scene.chart.Axis.<init>(Axis.java:76)
      at javafx.scene.chart.ValueAxis.<init>(ValueAxis.java:242)
      at javafx.scene.chart.ValueAxis.<init>(ValueAxis.java:254)
      at javafx.scene.chart.NumberAxis.<init>(NumberAxis.java:149)
      at com.fxexperience.tools.splineeditor.SplineEditorControl.<init>(SplineEditorControl.java:67)
      at com.fxexperience.tools.splineeditor.SplineEditor.<init>(SplineEditor.java:70)
      at com.fxexperience.tools.ToolsApp.start(ToolsApp.java:65)
      at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:315)
      at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:174)
      at com.sun.javafx.application.PlatformImpl$3.run(PlatformImpl.java:141)
      at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
      at com.sun.glass.ui.gtk.GtkApplication$2$1.run(GtkApplication.java:79)
      ... 1 more


            prr Philip Race
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: