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

Jenkins JIRA | Vera Kot | 4 years ago
  1. 0

    Running from: C:\Users\verakot\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\5ef66b98-2d9c8352 webroot: $user.home/.jenkins Aug 6, 2012 4:53:35 PM winstone.Logger logInternal INFO: Beginning extraction from war file Jenkins home directory: C:\Users\verakot\.jenkins found at: $user.home/.jenkins Aug 6, 2012 4:53:40 PM winstone.Logger logInternal INFO: Winstone shutdown successfully Aug 6, 2012 4:53:40 PM winstone.Logger logInternal SEVERE: Container startup failed java.io.IOException: Failed to start a listener: winstone.HttpListener at winstone.Launcher.spawnListener(Launcher.java:229) at winstone.Launcher.<init>(Launcher.java:181) at winstone.Launcher.main(Launcher.java:384) 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:273) at Main.main(Main.java:98) at JNLPMain.main(JNLPMain.java:56) 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 com.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: Failed to listen on port 8080 at winstone.HttpListener.getServerSocket(HttpListener.java:119) at winstone.HttpListener.start(HttpListener.java:72) at winstone.Launcher.spawnListener(Launcher.java:220) ... 18 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:114) ... 20 more

    Jenkins JIRA | 4 years ago | Vera Kot
    java.io.IOException: Failed to start a listener: winstone.HttpListener
  2. 0

    Running from: C:\Users\verakot\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\24\5ef66b98-2d9c8352 webroot: $user.home/.jenkins Aug 6, 2012 4:53:35 PM winstone.Logger logInternal INFO: Beginning extraction from war file Jenkins home directory: C:\Users\verakot\.jenkins found at: $user.home/.jenkins Aug 6, 2012 4:53:40 PM winstone.Logger logInternal INFO: Winstone shutdown successfully Aug 6, 2012 4:53:40 PM winstone.Logger logInternal SEVERE: Container startup failed java.io.IOException: Failed to start a listener: winstone.HttpListener at winstone.Launcher.spawnListener(Launcher.java:229) at winstone.Launcher.<init>(Launcher.java:181) at winstone.Launcher.main(Launcher.java:384) 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:273) at Main.main(Main.java:98) at JNLPMain.main(JNLPMain.java:56) 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 com.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: Failed to listen on port 8080 at winstone.HttpListener.getServerSocket(HttpListener.java:119) at winstone.HttpListener.start(HttpListener.java:72) at winstone.Launcher.spawnListener(Launcher.java:220) ... 18 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:114) ... 20 more

    Jenkins JIRA | 4 years ago | Vera Kot
    java.io.IOException: Failed to start a listener: winstone.HttpListener
  3. 0

    Jenkins won't start

    Stack Overflow | 5 years ago | Sachin Kainth
    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

    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

  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:114)
    2. winstone.HttpListener.start(HttpListener.java:72)
    3. winstone.Launcher.spawnListener(Launcher.java:220)
    4. winstone.Launcher.<init>(Launcher.java:181)
    5. winstone.Launcher.main(Launcher.java:384)
    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
    JNLPMain.main
    1. Main._main(Main.java:273)
    2. Main.main(Main.java:98)
    3. JNLPMain.main(JNLPMain.java:56)
    3 frames
  6. 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
  7. com.sun.javaws
    Launcher.run
    1. com.sun.javaws.Launcher.executeApplication(Unknown Source)
    2. com.sun.javaws.Launcher.executeMainClass(Unknown Source)
    3. com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
    4. com.sun.javaws.Launcher.run(Unknown Source)
    4 frames
  8. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame