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

NullPointerException at com.sun.t2k.T2KFontFactory.resolveFontFiles when fail to create FontResource

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx2.0.1, fx2.0.2, fx2.1
    • Fix Version/s: fx2.1
    • Component/s: javafx
    • Environment:

      Windows Japanese editions both Windows XP and Windows 7
      JRE 7 update 2 and update 4

      Description

      I face an exception when I start FXML-LoginDemo.jar
      and the same at BrickBreaker.jar and Ensemble.jar

      ava.lang.NullPointerException
      at com.sun.t2k.T2KFontFactory.resolveFontFiles(T2KFontFactory.java:828)
      at com.sun.t2k.T2KFontFactory.resolveWindowsFonts(T2KFontFactory.java:786)
      at com.sun.t2k.T2KFontFactory.getFullNameToFileMap(T2KFontFactory.java:1351)
      at com.sun.t2k.T2KFontFactory.getFontResource(T2KFontFactory.java:212)
      at com.sun.t2k.LogicalFont.getSlot0Resource(LogicalFont.java:174)
      at com.sun.t2k.LogicalFont.getDefaultAAMode(LogicalFont.java:300)
      at com.sun.t2k.LogicalFont.getStrike(LogicalFont.java:304)
      at com.sun.t2k.T2KFont.getStrike(T2KFont.java:70)
      at com.sun.javafx.font.PrismFontUtils.getFontMetrics(PrismFontUtils.java:14)
      at com.sun.javafx.font.PrismFontLoader.getFontMetrics(PrismFontLoader.java:434)
      at javafx.scene.text.Text.<init>(Text.java:105)
      at com.sun.javafx.scene.control.skin.TextFieldSkin.<init>(TextFieldSkin.java:92)
      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 javafx.scene.control.Control.loadSkinClass(Control.java:921)
      at javafx.scene.control.Control.impl_cssSet(Control.java:999)
      at javafx.scene.Node.impl_cssSet(Node.java:6493)
      at com.sun.javafx.css.StyleHelper.transitionToState(StyleHelper.java:755)
      at javafx.scene.Node.impl_processCSS(Node.java:6345)
      at javafx.scene.Parent.impl_processCSS(Parent.java:975)
      at javafx.scene.control.Control.impl_processCSS(Control.java:1026)
      at javafx.scene.Parent.impl_processCSS(Parent.java:982)
      at javafx.scene.Parent.impl_processCSS(Parent.java:982)
      at javafx.scene.Node.processCSS(Node.java:6313)
      at javafx.scene.Scene.doCSSPass(Scene.java:404)
      at javafx.scene.Scene.preferredSize(Scene.java:1208)
      at javafx.scene.Scene.impl_preferredSize(Scene.java:1258)
      at javafx.stage.Window.adjustSize(Window.java:139)
      at javafx.stage.Window.access$800(Window.java:50)
      at javafx.stage.Window$13.invalidated(Window.java:692)
      at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:88)
      at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:122)
      at javafx.stage.Window.setShowing(Window.java:744)
      at javafx.stage.Window.show(Window.java:759)
      at javafx.stage.Stage.show(Stage.java:129)
      at demo.App.start(App.java:73)
      at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:299)
      at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:153)
      at com.sun.javafx.application.PlatformImpl$3.run(PlatformImpl.java:120)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
      at com.sun.glass.ui.win.WinApplication$2$1.run(WinApplication.java:62)
      at java.lang.Thread.run(Thread.java:722)

        Attachments

          Activity

            People

            • Assignee:
              yaow Yao Wang (Inactive)
              Reporter:
              tohmurajfx Tadashi Ohmura (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: