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

NullPointerException thrown by FontConfigManager.populateMapsNative method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7u6
    • fx2.1
    • javafx

      While JavaFX DP 2.1 build 12 works fine for me, I get the following exception since JavaFX DP 2.1 build 13:

      Exception in Application constructor
      Exception in thread "main" java.lang.RuntimeException: Unable to construct Application instance: class sample.JavaFXApp
              at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:389)
              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.reflect.InvocationTargetException
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
              at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:272)
              ... 3 more
      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.text.Text.<init>(Text.java:137)
              at sample.JavaFXApp.<init>(JavaFXApp.java:201)
              ... 8 more

      This happens upon app startup and leads to a crash, so I'd say this one should rather get a higher priority.

        1. bug.png
          bug.png
          79 kB
        2. fc-list.out
          1.75 MB
        3. fc-match.out
          2 kB
        4. locale.out
          0.3 kB

            prr Philip Race
            kionjfx Kion (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: