hudson.util.AWTProblem: java.lang.NullPointerException

Jenkins JIRA | Ketan Desai | 3 months ago
  1. 0

    Jenkins is failing to start

    Stack Overflow | 6 months ago | senordev
    hudson.util.AWTProblem: java.lang.NullPointerException
  2. 0

    After installing Ansicolor-plugin and restarting Jenkins I get a 503 error and Jenkins will not start up. Here is the error log: Sep 15, 2016 12:28:33 PM hudson.model.UpdateCenter$UpdateCenterConfiguration download INFO: Downloading AnsiColor Sep 15, 2016 12:28:33 PM hudson.PluginManager dynamicLoad INFO: Attempting to dynamic load /data/jenkins/plugins/ansicolor.jpi Sep 15, 2016 12:28:33 PM hudson.plugins.ansicolor.PluginImpl start INFO: AnsiColor: eliminating boring output (https://github.com/dblock/jenkins-ansicolor-plugin) Sep 15, 2016 12:28:34 PM jenkins.InitReactorRunner$1 onAttained INFO: Started initialization Sep 15, 2016 12:28:34 PM jenkins.InitReactorRunner$1 onAttained INFO: Listed all plugins Sep 15, 2016 12:28:34 PM jenkins.InitReactorRunner$1 onAttained INFO: Prepared all plugins Sep 15, 2016 12:28:34 PM jenkins.InitReactorRunner$1 onAttained INFO: Started all plugins Sep 15, 2016 12:28:34 PM jenkins.InitReactorRunner$1 onAttained INFO: Augmented all extensions Sep 15, 2016 12:28:34 PM jenkins.InitReactorRunner$1 onAttained INFO: Loaded all jobs Sep 15, 2016 12:28:34 PM jenkins.InitReactorRunner$1 onAttained INFO: Completed initialization Sep 15, 2016 12:28:34 PM hudson.PluginManager dynamicLoad INFO: Plugin ansicolor dynamically installed Sep 15, 2016 12:28:34 PM hudson.model.UpdateCenter$DownloadJob run INFO: Installation successful: AnsiColor Sep 15, 2016 12:28:34 PM jenkins.model.Jenkins$24 run INFO: Restart in 10 seconds Sep 15, 2016 12:28:44 PM jenkins.model.Jenkins$24 run SEVERE: Restarting VM as requested by anonymous Running from: /usr/lib/jenkins/jenkins.war Sep 15, 2016 12:28:45 PM winstone.Logger logInternal INFO: Beginning extraction from war file Sep 15, 2016 12:28:45 PM org.eclipse.jetty.util.log.JavaUtilLog info INFO: jetty-8.y.z-SNAPSHOT Sep 15, 2016 12:28:48 PM org.eclipse.jetty.util.log.JavaUtilLog info INFO: NO JSP Support for /jenkins, did not find org.apache.jasper.servlet.JspServlet Jenkins home directory: /data/jenkins found at: System.getProperty("JENKINS_HOME") Sep 15, 2016 12:28:49 PM hudson.util.BootFailure publish SEVERE: Failed to initialize Jenkins hudson.util.AWTProblem: java.lang.NullPointerException at hudson.WebAppMain.contextInitialized(WebAppMain.java:182) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95) at org.eclipse.jetty.server.Server.doStart(Server.java:282) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at winstone.Launcher.<init>(Launcher.java:154) at winstone.Launcher.main(Launcher.java:354) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:622) at Main._main(Main.java:293) at Main.main(Main.java:98) Caused by: java.lang.NullPointerException at sun.font.FontManager.getDefaultPlatformFont(FontManager.java:3409) at sun.java2d.SunGraphicsEnvironment$2.run(SunGraphicsEnvironment.java:263) at java.security.AccessController.doPrivileged(Native Method) at sun.java2d.SunGraphicsEnvironment.<init>(SunGraphicsEnvironment.java:164) at sun.awt.X11GraphicsEnvironment.<init>(X11GraphicsEnvironment.java:254) 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:534) at java.lang.Class.newInstance(Class.java:379) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82) at sun.font.FontManager.initSGEnv(FontManager.java:1121) at sun.font.FontManager.findFont2D(FontManager.java:1876) at java.awt.Font.getFont2D(Font.java:477) at java.awt.Font.getFamily(Font.java:1198) at java.awt.Font.getFamily_NoClientCode(Font.java:1172) at java.awt.Font.getFamily(Font.java:1164) at java.awt.Font.toString(Font.java:1661) at hudson.util.ChartUtil.<clinit>(ChartUtil.java:229) at hudson.WebAppMain.contextInitialized(WebAppMain.java:181) ... 19 more Sep 15, 2016 12:28:49 PM org.eclipse.jetty.util.log.JavaUtilLog warn WARNING: Failed startup of context w.{/jenkins,file:/var/cache/jenkins/war/},/var/cache/jenkins/war java.lang.NullPointerException at jenkins.util.groovy.GroovyHookScript.run(GroovyHookScript.java:63) at hudson.util.BootFailure.publish(BootFailure.java:43) at hudson.WebAppMain.contextInitialized(WebAppMain.java:244) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95) at org.eclipse.jetty.server.Server.doStart(Server.java:282) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at winstone.Launcher.<init>(Launcher.java:154) at winstone.Launcher.main(Launcher.java:354) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:622) at Main._main(Main.java:293) at Main.main(Main.java:98)

    Jenkins JIRA | 3 months ago | Ketan Desai
    hudson.util.AWTProblem: java.lang.NullPointerException
  3. 0

    AWT error while trying to build Jenkins Docker image based on Alpine -

    Stack Overflow | 8 months ago | Tony K
    hudson.util.AWTProblem: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 239#208772121

    GitHub | 8 months ago | carlossg
    hudson.util.AWTProblem: java.lang.NullPointerException
  6. 0

    Exception in GroovyHookScript while starting the Jenkins server

    Stack Overflow | 3 years ago | Rishi
    hudson.util.AWTProblem: java.lang.NullPointerException

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at sun.font.FontManager.getDefaultPlatformFont()
    2. Java RT
      Font.toString
      1. sun.font.FontManager.getDefaultPlatformFont(FontManager.java:3409)
      2. sun.java2d.SunGraphicsEnvironment$2.run(SunGraphicsEnvironment.java:263)
      3. java.security.AccessController.doPrivileged(Native Method)
      4. sun.java2d.SunGraphicsEnvironment.<init>(SunGraphicsEnvironment.java:164)
      5. sun.awt.X11GraphicsEnvironment.<init>(X11GraphicsEnvironment.java:254)
      6. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      7. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      8. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      9. java.lang.reflect.Constructor.newInstance(Constructor.java:534)
      10. java.lang.Class.newInstance(Class.java:379)
      11. java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
      12. sun.font.FontManager.initSGEnv(FontManager.java:1121)
      13. sun.font.FontManager.findFont2D(FontManager.java:1876)
      14. java.awt.Font.getFont2D(Font.java:477)
      15. java.awt.Font.getFamily(Font.java:1198)
      16. java.awt.Font.getFamily_NoClientCode(Font.java:1172)
      17. java.awt.Font.getFamily(Font.java:1164)
      18. java.awt.Font.toString(Font.java:1661)
      18 frames
    3. Hudson
      WebAppMain.contextInitialized
      1. hudson.util.ChartUtil.<clinit>(ChartUtil.java:229)
      2. hudson.WebAppMain.contextInitialized(WebAppMain.java:181)
      2 frames
    4. Jetty
      AbstractLifeCycle.start
      1. org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782)
      2. org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)
      3. org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774)
      4. org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)
      5. org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
      6. org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
      7. org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
      8. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
      9. org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
      10. org.eclipse.jetty.server.Server.doStart(Server.java:282)
      11. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
      11 frames
    5. winstone
      Launcher.main
      1. winstone.Launcher.<init>(Launcher.java:154)
      2. winstone.Launcher.main(Launcher.java:354)
      2 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:622)
      4 frames
    7. Unknown
      Main.main
      1. Main._main(Main.java:293)
      2. Main.main(Main.java:98)
      2 frames