java.lang.NullPointerException

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.

  • Jenkins unreachable at port 8080
    via Server Fault by mr.zog
    ,
  • Jenkins is failing to start
    via Stack Overflow by senordev
    ,
  • 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)
    via by Ketan Desai,
  • Jenkins Fails to Start
    via Stack Overflow by max
    ,
  • Installing Jenkins
    via Ask Ubuntu by TacB0sS
    ,
  • Issue while installing jenkins war
    via by Swarup Rakshit,
    • 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:247) 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:606) at Main._main(Main.java:293) at Main.main(Main.java:98)

    Users with the same issue

    Unknown visitor1 times, last one,