There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • set JAVA default font (NOT IN CODE, BUT JRE)
    via Stack Overflow by AsyncCode
  • openjdk-8 is missing liberation_ttf
    via GitHub by pSub
  • Java Swing Null Pointer Exception
    via Stack Overflow by Erel Segal Halevi
  • Cannot load font in JRE 8
    via Stack Overflow by Khanetor
  • unable to start hudson after upgrade
    via by Akina86,
  • After following the installation guide for Jenkins and using apt-get/aptitude to install jenkins 1.459 on Debian, I get the following error when accessing the server: AWT is not properly configured on this server. Perhaps you need to run your container with "-Djava.awt.headless=true"? java.lang.NullPointerException at sun.awt.FontConfiguration.getVersion( at sun.awt.FontConfiguration.readFontConfigFile( at sun.awt.FontConfiguration.<init>( at sun.awt.motif.MFontConfiguration.<init>( at sun.awt.X11GraphicsEnvironment.createFontConfiguration( at sun.java2d.SunGraphicsEnvironment$ at Method) at sun.java2d.SunGraphicsEnvironment.<init>( at sun.awt.X11GraphicsEnvironment.<init>( at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance( at sun.reflect.DelegatingConstructorAccessorImpl.newInstance( at java.lang.reflect.Constructor.newInstance( at java.lang.Class.newInstance0( at java.lang.Class.newInstance( at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment( at sun.font.FontManager.initSGEnv( at sun.font.FontManager.findFont2D( at java.awt.Font.getFont2D( at java.awt.Font.getFamily( at java.awt.Font.getFamily_NoClientCode( at java.awt.Font.getFamily( at java.awt.Font.toString( at hudson.util.ChartUtil.<clinit>( at hudson.WebAppMain.contextInitialized( at winstone.WebAppConfiguration.<init>( at winstone.HostConfiguration.initWebApp( at winstone.HostConfiguration.<init>( at winstone.HostGroup.initHost( at winstone.HostGroup.<init>( at winstone.Launcher.<init>( at winstone.Launcher.main( at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at Main._main( at Main.main( I tried adding JAVA_ARGS="-Djava.awt.headless=true" to the Jenkins configuration, but it didn't change anything. I also installed the ttf-dejavu font, but it also didn't solve the problem. The Jenkins log contains only the following: Running from: /usr/share/jenkins/jenkins.war Jenkins home directory: /var/lib/jenkins found at: EnvVars.masterEnvVars.get("JENKINS_HOME") Warning: default mime table not found: /usr/lib/jvm/java-6-openjdk/jre/lib/ I see some suggestions of replacing openJDK with the Sun JDK, but I'd rather keep to the standard default Debian packages. The only parameter I edited from default is the 8080 port which was switched to 8081. Any help or ideas on how to solve this issue would be greatly appreciated.
    via by Pete Batard,
    • java.lang.NullPointerException: null at sun.awt.FontConfiguration.getVersion([na:1.8.0_60] at sun.awt.FontConfiguration.readFontConfigFile([na:1.8.0_60] at sun.awt.FontConfiguration.init([na:1.8.0_60] at sun.awt.X11FontManager.createFontConfiguration([na:1.8.0_60] at sun.font.SunFontManager$[na:1.8.0_60]

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,