NPE at sun.awt.X11FontManager.getDefaultPlatformFont

Enric Jaen enricjaen at yahoo.es
Mon Nov 26 04:39:27 PST 2012


Hello, 

I have installed:

java version "1.7.0_09-icedtea"

OpenJDK Runtime Environment (rhel-2.3.3.el6_3.1-i386)
OpenJDK Server VM (build 23.2-b09, mixed mode)


and I receive the following NullPointerException, and I guess it's an issue with OpenJDK. Any idea?



java.lang.NullPointerException
        at sun.awt.X11FontManager.getDefaultPlatformFont(X11FontManager.java:779)
        at sun.font.SunFontManager$2.run(SunFontManager.java:432)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.font.SunFontManager.<init>(SunFontManager.java:375)
        at sun.awt.X11FontManager.<init>(X11FontManager.java:32)
        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 java.lang.Class.newInstance0(Class.java:372)
        at java.lang.Class.newInstance(Class.java:325)
        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 java.awt.Font.getFont2D(Font.java:490)
        at java.awt.Font.defaultLineMetrics(Font.java:2143)
        at java.awt.Font.getLineMetrics(Font.java:2213)
        at org.jfree.chart.axis.NumberAxis.estimateMaximumTickLabelHeight(NumberAxis.java:974)
    ....


Regards,
/Enric Jaen


More information about the jdk7-dev mailing list