java.net.BindException: Address already in use: JVM_Bind

Jenkins JIRA | Axel Heider | 6 years ago
  1. 0

    When the hudosn service is started twice (can happen accidently) using "net start Hudson", binding the second Hudson to thr same port failes. However, the second Hudson does not get terminated, but keeps running in "head-less" mode. Could this be changed that the second Hudson terminates itslef, except if it is explicitly configured to run without any web interface? hudson.out.log: Running from: X:\hudson\hudson.war [Winstone 2010/08/23 23:13:07] - Beginning extraction from war file hudson home directory: X:\hudson Using one-time self-signed certificate [Winstone 2010/08/23 23:13:10] - AJP13 Listener started: port=8009 [Winstone 2010/08/23 23:13:10] - HTTP Listener started: port=8080 [Winstone 2010/08/23 23:13:10] - Winstone Servlet Engine v0.9.10 running: controlPort=disabled Green Balls! Running from: X:\hudson\hudson.war [Winstone 2010/08/24 23:14:28] - Beginning extraction from war file hudson home directory: X:\hudson [Winstone 2010/08/24 23:14:33] - Error during HTTP listener init or shutdown 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:102) at winstone.HttpListener.run(HttpListener.java:116) at java.lang.Thread.run(Unknown Source) [Winstone 2010/08/24 23:14:33] - HTTP Listener shutdown successfully [Winstone 2010/08/24 23:14:33] - Error during AJP13 listener init or shutdown 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.run(Ajp13Listener.java:99) at java.lang.Thread.run(Unknown Source) [Winstone 2010/08/24 23:14:33] - AJP13 Listener shutdown successfully Using one-time self-signed certificate [Winstone 2010/08/24 23:14:33] - Winstone Servlet Engine v0.9.10 running: controlPort=disabled Green Balls!

    Jenkins JIRA | 6 years ago | Axel Heider
    java.net.BindException: Address already in use: JVM_Bind
  2. 0

    When the hudosn service is started twice (can happen accidently) using "net start Hudson", binding the second Hudson to thr same port failes. However, the second Hudson does not get terminated, but keeps running in "head-less" mode. Could this be changed that the second Hudson terminates itslef, except if it is explicitly configured to run without any web interface? hudson.out.log: Running from: X:\hudson\hudson.war [Winstone 2010/08/23 23:13:07] - Beginning extraction from war file hudson home directory: X:\hudson Using one-time self-signed certificate [Winstone 2010/08/23 23:13:10] - AJP13 Listener started: port=8009 [Winstone 2010/08/23 23:13:10] - HTTP Listener started: port=8080 [Winstone 2010/08/23 23:13:10] - Winstone Servlet Engine v0.9.10 running: controlPort=disabled Green Balls! Running from: X:\hudson\hudson.war [Winstone 2010/08/24 23:14:28] - Beginning extraction from war file hudson home directory: X:\hudson [Winstone 2010/08/24 23:14:33] - Error during HTTP listener init or shutdown 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:102) at winstone.HttpListener.run(HttpListener.java:116) at java.lang.Thread.run(Unknown Source) [Winstone 2010/08/24 23:14:33] - HTTP Listener shutdown successfully [Winstone 2010/08/24 23:14:33] - Error during AJP13 listener init or shutdown 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.run(Ajp13Listener.java:99) at java.lang.Thread.run(Unknown Source) [Winstone 2010/08/24 23:14:33] - AJP13 Listener shutdown successfully Using one-time self-signed certificate [Winstone 2010/08/24 23:14:33] - Winstone Servlet Engine v0.9.10 running: controlPort=disabled Green Balls!

    Jenkins JIRA | 6 years ago | Axel Heider
    java.net.BindException: Address already in use: JVM_Bind
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    mViewer-0.92

    GitHub | 3 years ago | vzocca
    java.net.BindException: Address already in use: JVM_Bind

  1. iridic 1 times, last 1 week ago
  2. linxiaolong 1 times, last 3 months ago
  3. jedcua 1 times, last 3 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
    HttpListener.run
    1. winstone.HttpListener.getServerSocket(HttpListener.java:102)
    2. winstone.HttpListener.run(HttpListener.java:116)
    2 frames
  4. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame