Jenkins: hudson.util.AWTProblem: java.lang.NullPointerException And Solution

The following Jenkins (1.548) exception is caused by the lack of the "devel" part of the JDK.

SEVERE: Failed to initialize Jenkins
hudson.util.AWTProblem: java.lang.NullPointerException
	at hudson.WebAppMain.contextInitialized(
	at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(
	at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(
	at org.eclipse.jetty.server.handler.ContextHandler.startContext(
	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(
Caused by: java.lang.NullPointerException
	at sun.awt.FontConfiguration.getVersion(
	at sun.awt.FontConfiguration.readFontConfigFile(
	at sun.awt.FontConfiguration.init(
	at sun.awt.X11FontManager.createFontConfiguration(
	at sun.font.SunFontManager$
	at Method)
	at sun.font.SunFontManager.<init>(
	at sun.awt.X11FontManager.<init>(
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
	at java.lang.reflect.Constructor.newInstance(

The problem can be mitigated by installing the full jdk. e.g.: yum -y install java-1.8.0-openjdk-devel or installing the current However, the Jenkins 1.548 is using an older XStream library, which is not compatible with Java 8. If you get the following exception: you will have to move "back" to JDK 1.7.

See you at Java EE Workshops at MUC Airport or on demand and in a location very near you:!


Thanks, I just had exactly the same problem (using Java 7). Your solution was perfect!

Posted by Dafydd James on November 16, 2014 at 11:59 PM CET #

I found an issue here:
【yum -y install fontconfig dejavu-sans-fonts】works

Posted by lee xy on December 03, 2015 at 07:20 AM CET #

hudson.util.AWTProblem: java.lang.UnsatisfiedLinkError

Posted by on March 07, 2019 at 07:16 PM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
...the last 150 posts
...the last 10 comments