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.

  • On Jenkins 1.426 all is well however when I upgrade to 1.428 or 1.429 this error appears when starting!! C:\Documents and Settings\builder2\Desktop>java -Xmx1600M -jar F:\Hudson\hudson. war --httpPort=8080 Running from: F:\Hudson\hudson.war webroot: $user.home/.hudson [Winstone 2011/09/07 12:05:22] - Beginning extraction from war file Jenkins home directory: C:\Documents and Settings\builder2\.hudson found at: $us er.home/.hudson [Winstone 2011/09/07 12:05:46] - HTTP Listener started: port=8080 [Winstone 2011/09/07 12:05:46] - Winstone shutdown successfully [Winstone 2011/09/07 12:05:46] - Container startup failed java.io.IOException: Failed to start a listener: winstone.ajp13.Ajp13Listener at winstone.Launcher.spawnListener(Launcher.java:250) at winstone.Launcher.<init>(Launcher.java:203) at winstone.Launcher.main(Launcher.java:398) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at Main._main(Main.java:268) at Main.main(Main.java:96) Caused by: java.io.IOException: Failed to listen on port 8009 at winstone.ajp13.Ajp13Listener.start(Ajp13Listener.java:92) at winstone.Launcher.spawnListener(Launcher.java:241) ... 8 more Caused by: java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.<init>(Unknown Source) at java.net.ServerSocket.<init>(Unknown Source) at winstone.ajp13.Ajp13Listener.start(Ajp13Listener.java:87) ... 9 more Exception in thread "pool-2-thread-2" java.lang.NullPointerException at org.jvnet.hudson.reactor.Reactor$1.run(Reactor.java:153) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source ) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 07-Sep-2011 12:05:47 hudson.WebAppMain$2 run SEVERE: Failed to initialize Jenkins java.lang.InterruptedException at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:485) at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:244) at jenkins.model.Jenkins.executeReactor(Jenkins.java:814) at jenkins.model.Jenkins.<init>(Jenkins.java:728) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.model.Hudson.<init>(Hudson.java:77) at hudson.WebAppMain$2.run(WebAppMain.java:217) Exception in thread "pool-2-thread-1" java.lang.NullPointerException at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:191) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source ) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
    via by Stuart Lovegrove,
  • Upgraded from 1.424 to 1.434 caused Jenkins to stop working. Trying to start the Windows service fails. Event viewer has the following events: Child process [4944 - C:\Program Files (x86)\Jenkins\jre\bin\java -Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "C:\Program Files (x86)\Jenkins\jenkins.war" --httpPort=8080] terminated with 0 Running "java -Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "C:\Program Files (x86)\Jenkins\jenkins.war" --httpPort=8080" from the cli gives the following errors: c:\Program Files (x86)\Jenkins\jre\bin>java -Xrs -Xmx256m -Dhudson.lifecycle=hud son.lifecycle.WindowsServiceLifecycle -jar "C:\Program Files (x86)\Jenkins\jenki ns.war" --httpPort=8080 Running from: C:\Program Files (x86)\Jenkins\jenkins.war webroot: $user.home/.jenkins [Winstone 2011/11/08 15:09:41] - Beginning extraction from war file Jenkins home directory: C:\Users\Administrator\.jenkins found at: $user.home/.je nkins [Winstone 2011/11/08 15:09:42] - Winstone shutdown successfully [Winstone 2011/11/08 15:09:42] - Container startup failed java.io.IOException: Failed to start a listener: winstone.HttpListener at winstone.Launcher.spawnListener(Launcher.java:250) at winstone.Launcher.<init>(Launcher.java:202) at winstone.Launcher.main(Launcher.java:398) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at Main._main(Main.java:268) at Main.main(Main.java:96) Caused by: java.io.IOException: Failed to listen on port 8080 at winstone.HttpListener.getServerSocket(HttpListener.java:117) at winstone.HttpListener.start(HttpListener.java:70) at winstone.Launcher.spawnListener(Launcher.java:241) ... 8 more Caused by: java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.<init>(Unknown Source) at java.net.ServerSocket.<init>(Unknown Source) at winstone.HttpListener.getServerSocket(HttpListener.java:112) ... 10 more Exception in thread "pool-2-thread-2" java.lang.NullPointerException at org.jvnet.hudson.reactor.Reactor$1.run(Reactor.java:153) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source ) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 08-Nov-2011 15:09:42 hudson.WebAppMain$2 run SEVERE: Failed to initialize Jenkins java.lang.InterruptedException at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:485) at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:244) at jenkins.model.Jenkins.executeReactor(Jenkins.java:816) at jenkins.model.Jenkins.<init>(Jenkins.java:730) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.model.Hudson.<init>(Hudson.java:77) at hudson.WebAppMain$2.run(WebAppMain.java:217) c:\Program Files (x86)\Jenkins\jre\bin>
    via by James Shaughnessy,
  • On Jenkins 1.426 all is well however when I upgrade to 1.428 or 1.429 this error appears when starting!! C:\Documents and Settings\builder2\Desktop>java -Xmx1600M -jar F:\Hudson\hudson. war --httpPort=8080 Running from: F:\Hudson\hudson.war webroot: $user.home/.hudson [Winstone 2011/09/07 12:05:22] - Beginning extraction from war file Jenkins home directory: C:\Documents and Settings\builder2\.hudson found at: $us er.home/.hudson [Winstone 2011/09/07 12:05:46] - HTTP Listener started: port=8080 [Winstone 2011/09/07 12:05:46] - Winstone shutdown successfully [Winstone 2011/09/07 12:05:46] - Container startup failed java.io.IOException: Failed to start a listener: winstone.ajp13.Ajp13Listener at winstone.Launcher.spawnListener(Launcher.java:250) at winstone.Launcher.<init>(Launcher.java:203) at winstone.Launcher.main(Launcher.java:398) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at Main._main(Main.java:268) at Main.main(Main.java:96) Caused by: java.io.IOException: Failed to listen on port 8009 at winstone.ajp13.Ajp13Listener.start(Ajp13Listener.java:92) at winstone.Launcher.spawnListener(Launcher.java:241) ... 8 more Caused by: java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.<init>(Unknown Source) at java.net.ServerSocket.<init>(Unknown Source) at winstone.ajp13.Ajp13Listener.start(Ajp13Listener.java:87) ... 9 more Exception in thread "pool-2-thread-2" java.lang.NullPointerException at org.jvnet.hudson.reactor.Reactor$1.run(Reactor.java:153) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source ) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 07-Sep-2011 12:05:47 hudson.WebAppMain$2 run SEVERE: Failed to initialize Jenkins java.lang.InterruptedException at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:485) at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:244) at jenkins.model.Jenkins.executeReactor(Jenkins.java:814) at jenkins.model.Jenkins.<init>(Jenkins.java:728) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.model.Hudson.<init>(Hudson.java:77) at hudson.WebAppMain$2.run(WebAppMain.java:217) Exception in thread "pool-2-thread-1" java.lang.NullPointerException at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:191) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source ) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
    via by Stuart Lovegrove,
  • Upgraded from 1.424 to 1.434 caused Jenkins to stop working. Trying to start the Windows service fails. Event viewer has the following events: Child process [4944 - C:\Program Files (x86)\Jenkins\jre\bin\java -Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "C:\Program Files (x86)\Jenkins\jenkins.war" --httpPort=8080] terminated with 0 Running "java -Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "C:\Program Files (x86)\Jenkins\jenkins.war" --httpPort=8080" from the cli gives the following errors: c:\Program Files (x86)\Jenkins\jre\bin>java -Xrs -Xmx256m -Dhudson.lifecycle=hud son.lifecycle.WindowsServiceLifecycle -jar "C:\Program Files (x86)\Jenkins\jenki ns.war" --httpPort=8080 Running from: C:\Program Files (x86)\Jenkins\jenkins.war webroot: $user.home/.jenkins [Winstone 2011/11/08 15:09:41] - Beginning extraction from war file Jenkins home directory: C:\Users\Administrator\.jenkins found at: $user.home/.je nkins [Winstone 2011/11/08 15:09:42] - Winstone shutdown successfully [Winstone 2011/11/08 15:09:42] - Container startup failed java.io.IOException: Failed to start a listener: winstone.HttpListener at winstone.Launcher.spawnListener(Launcher.java:250) at winstone.Launcher.<init>(Launcher.java:202) at winstone.Launcher.main(Launcher.java:398) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at Main._main(Main.java:268) at Main.main(Main.java:96) Caused by: java.io.IOException: Failed to listen on port 8080 at winstone.HttpListener.getServerSocket(HttpListener.java:117) at winstone.HttpListener.start(HttpListener.java:70) at winstone.Launcher.spawnListener(Launcher.java:241) ... 8 more Caused by: java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.<init>(Unknown Source) at java.net.ServerSocket.<init>(Unknown Source) at winstone.HttpListener.getServerSocket(HttpListener.java:112) ... 10 more Exception in thread "pool-2-thread-2" java.lang.NullPointerException at org.jvnet.hudson.reactor.Reactor$1.run(Reactor.java:153) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source ) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 08-Nov-2011 15:09:42 hudson.WebAppMain$2 run SEVERE: Failed to initialize Jenkins java.lang.InterruptedException at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:485) at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:244) at jenkins.model.Jenkins.executeReactor(Jenkins.java:816) at jenkins.model.Jenkins.<init>(Jenkins.java:730) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.model.Hudson.<init>(Hudson.java:77) at hudson.WebAppMain$2.run(WebAppMain.java:217) c:\Program Files (x86)\Jenkins\jre\bin>
    via by James Shaughnessy,
  • jenkins サービスが起動しない
    via by 岡野 麻子,
  • Cannot start Jenkins on port 80 on debian 7
    via Stack Overflow by u123
    ,
  • Error getting SSL context object
    via by Pedro Lopez,
    • java.lang.NullPointerException at org.jvnet.hudson.reactor.Reactor$1.run(Reactor.java:153) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

    Users with the same issue

    Unknown visitor1 times, last one,