Details
-
Bug
-
Resolution: Fixed
-
P4
-
8
-
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)
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
- duplicates
-
JDK-7194935 closed/java/awt/FontClass/HeadlessFont.java failed on macosx with jdk8
- Closed