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

java.lang.UnsatisfiedLinkError exception throw by getAllFonts() on MacOSX

    XMLWordPrintable

Details

    • 2d
    • b93
    • x86
    • os_x

    Description

      With Java 1.8.0b84 on MacOS we receive the follow exception.

      This work with the current Java 7. It is a regression on MacOS.

      To reproduce it you can call:
      GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts();

      Exception in thread "AdHoc Plugin Initializer" java.lang.UnsatisfiedLinkError: sun.font.CFontManager.loadNativeDirFonts(Ljava/lang/String;)V
      at sun.font.CFontManager.loadNativeDirFonts(Native Method)
      at sun.font.CFontManager.registerFontsInDir(CFontManager.java:252)
      at sun.font.SunFontManager$2.run(SunFontManager.java:424)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.font.SunFontManager.<init>(SunFontManager.java:375)
      at sun.font.CFontManager.<init>(CFontManager.java:43)
      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:408)
      at java.lang.Class.newInstance0(Class.java:375)
      at java.lang.Class.newInstance(Class.java:327)
      at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:83)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
      at sun.java2d.SunGraphicsEnvironment.getFontManagerForSGE(SunGraphicsEnvironment.java:185)
      at sun.java2d.SunGraphicsEnvironment.getAllFonts(SunGraphicsEnvironment.java:204)
      at sun.awt.CGraphicsEnvironment.getAllFonts(CGraphicsEnvironment.java:209)
      at sun.java2d.HeadlessGraphicsEnvironment.getAllFonts(HeadlessGraphicsEnvironment.java:91)
      at com.inet.report.config.font.FontProvider.yY(SourceFile:115)
      at com.inet.report.config.font.FontProvider.getAvailableFonts(SourceFile:98)
      at com.inet.report.config.font.w$a.u(SourceFile:345)
      at com.inet.report.es.setValue(SourceFile:1102)
      at com.inet.report.config.ConfigValue.g(SourceFile:116)
      at com.inet.report.config.ConfigValue.<init>(SourceFile:93)
      at com.inet.report.config.ConfigValue.<init>(SourceFile:56)
      at com.inet.report.es.<init>(SourceFile:1095)
      at com.inet.report.er.<init>(SourceFile:1095)
      at com.inet.report.el.um(SourceFile:1093)
      at com.inet.report.el.uk(SourceFile:805)
      at com.inet.report.Engine.initialize(SourceFile:564)
      at com.inet.report.Engine.<init>(SourceFile:417)
      at com.inet.report.RDC.createEmptyEngine(SourceFile:461)
      at com.inet.report.RDC.createEmptyEngine(SourceFile:209)
      at com.inet.helpdesk.adhoc.server.AdHocServerPlugin$1.run(AdHocServerPlugin.java:96)
      at java.lang.Thread.run(Thread.java:722)

      Attachments

        Issue Links

          Activity

            People

              jchen Johnny Chen (Inactive)
              tyao Ting-Yun Ingrid Yao (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: