java.io.IOException: Failed to start a listener: winstone.HttpListener

Jenkins JIRA | James Shaughnessy | 5 years ago
  1. 0

    Jenkins won't start

    Stack Overflow | 5 years ago | Sachin Kainth
    java.io.IOException: Failed to start a listener: winstone.HttpListener
  2. 0

    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>

    Jenkins JIRA | 5 years ago | James Shaughnessy
    java.io.IOException: Failed to start a listener: winstone.HttpListener
  3. 0

    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>

    Jenkins JIRA | 5 years ago | James Shaughnessy
    java.io.IOException: Failed to start a listener: winstone.HttpListener
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    jenkins サービスが起動しない

    Google Groups | 4 years ago | 岡野 麻子
    java.io.IOException: Failed to start a listener: winstone.HttpListener
  6. 0

    Can not run Jenkins on Mac

    Stack Overflow | 5 years ago
    java.io.IOException: Failed to start a listener: winstone.HttpListener

  1. iridic 1 times, last 2 weeks ago
  2. linxiaolong 1 times, last 4 months ago
  3. jedcua 1 times, last 4 months ago
  4. Justin 2 times, last 4 months ago
26 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.net.BindException

    Address already in use: JVM_Bind

    at java.net.PlainSocketImpl.socketBind()
  2. Java RT
    ServerSocket.<init>
    1. java.net.PlainSocketImpl.socketBind(Native Method)
    2. java.net.PlainSocketImpl.bind(Unknown Source)
    3. java.net.ServerSocket.bind(Unknown Source)
    4. java.net.ServerSocket.<init>(Unknown Source)
    5. java.net.ServerSocket.<init>(Unknown Source)
    5 frames
  3. winstone
    Launcher.main
    1. winstone.HttpListener.getServerSocket(HttpListener.java:112)
    2. winstone.HttpListener.start(HttpListener.java:70)
    3. winstone.Launcher.spawnListener(Launcher.java:241)
    4. winstone.Launcher.<init>(Launcher.java:202)
    5. winstone.Launcher.main(Launcher.java:398)
    5 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  5. Unknown
    Main.main
    1. Main._main(Main.java:268)
    2. Main.main(Main.java:96)
    2 frames