java.net.BindException: Address already in use

Jenkins JIRA | ramapulavarthi | 7 years ago
  1. 0

    In my case 8080 is taken by some other app. Hudson should have terminated when it found the problem rather than continuing to start the other agents. Winstone 2010/02/18 10:39:49] - Winstone Servlet Engine v0.9.10 running: controlPort=disabled [Winstone 2010/02/18 10:39:49] - AJP13 Listener started: port=8009 [Winstone 2010/02/18 10:39:49] - Error during HTTP listener init or shutdown java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) at java.net.ServerSocket.bind(ServerSocket.java:319) at java.net.ServerSocket.<init>(ServerSocket.java:185) at java.net.ServerSocket.<init>(ServerSocket.java:141) at winstone.HttpListener.getServerSocket(HttpListener.java:102) at winstone.HttpListener.run(HttpListener.java:116) at java.lang.Thread.run(Thread.java:595) [Winstone 2010/02/18 10:39:49] - HTTP Listener shutdown successfully Feb 18, 2010 10:39:49 AM hudson.model.Hudson$4 onAttained INFO: Started initialization Feb 18, 2010 10:39:51 AM hudson.model.Hudson$4 onAttained INFO: Listed all plugins Feb 18, 2010 10:39:51 AM hudson.model.Hudson$4 onAttained INFO: Prepared all plugins Feb 18, 2010 10:39:51 AM hudson.model.Hudson$4 onAttained INFO: Started all plugins Feb 18, 2010 10:39:51 AM hudson.model.Hudson$4 onAttained INFO: Loaded all jobs Feb 18, 2010 10:39:52 AM hudson.model.Hudson$4 onAttained INFO: Completed initialization Feb 18, 2010 10:39:52 AM hudson.TcpSlaveAgentListener <init> INFO: JNLP slave agent listener started on TCP port 54989

    Jenkins JIRA | 7 years ago | ramapulavarthi
    java.net.BindException: Address already in use
  2. 0

    In my case 8080 is taken by some other app. Hudson should have terminated when it found the problem rather than continuing to start the other agents. Winstone 2010/02/18 10:39:49] - Winstone Servlet Engine v0.9.10 running: controlPort=disabled [Winstone 2010/02/18 10:39:49] - AJP13 Listener started: port=8009 [Winstone 2010/02/18 10:39:49] - Error during HTTP listener init or shutdown java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) at java.net.ServerSocket.bind(ServerSocket.java:319) at java.net.ServerSocket.<init>(ServerSocket.java:185) at java.net.ServerSocket.<init>(ServerSocket.java:141) at winstone.HttpListener.getServerSocket(HttpListener.java:102) at winstone.HttpListener.run(HttpListener.java:116) at java.lang.Thread.run(Thread.java:595) [Winstone 2010/02/18 10:39:49] - HTTP Listener shutdown successfully Feb 18, 2010 10:39:49 AM hudson.model.Hudson$4 onAttained INFO: Started initialization Feb 18, 2010 10:39:51 AM hudson.model.Hudson$4 onAttained INFO: Listed all plugins Feb 18, 2010 10:39:51 AM hudson.model.Hudson$4 onAttained INFO: Prepared all plugins Feb 18, 2010 10:39:51 AM hudson.model.Hudson$4 onAttained INFO: Started all plugins Feb 18, 2010 10:39:51 AM hudson.model.Hudson$4 onAttained INFO: Loaded all jobs Feb 18, 2010 10:39:52 AM hudson.model.Hudson$4 onAttained INFO: Completed initialization Feb 18, 2010 10:39:52 AM hudson.TcpSlaveAgentListener <init> INFO: JNLP slave agent listener started on TCP port 54989

    Jenkins JIRA | 7 years ago | ramapulavarthi
    java.net.BindException: Address already in use
  3. 0

    mViewer-0.92

    GitHub | 3 years ago | vzocca
    java.net.BindException: Address already in use: JVM_Bind
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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

  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

    at java.net.PlainSocketImpl.socketBind()
  2. Java RT
    ServerSocket.<init>
    1. java.net.PlainSocketImpl.socketBind(Native Method)
    2. java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
    3. java.net.ServerSocket.bind(ServerSocket.java:319)
    4. java.net.ServerSocket.<init>(ServerSocket.java:185)
    5. java.net.ServerSocket.<init>(ServerSocket.java:141)
    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(Thread.java:595)
    1 frame