Correct.  The NPE is fixed as http://bugs.sun.com/view_bug.do?bug_id=7068471
but if you don't have libfontconfig your app will be missing lots of fonts.

-phil.

On 11/26/2012 4:59 AM, Pavel Tisnovsky wrote:
Hi Enric,

I seen this failure on 32bit OpenJDK/IcedTea installed on 64bit system.
The problem was caused by wrong architecture (i386/x86_64) of libfreetype
library. If you have 32bit JDK @ 64bit RHEL, please make sure the
libfreetype is 32bit/i386 too.

Cheers,
Pavel

----- Enric Jaen<[email protected]>  wrote:
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


Reply via email to