java.net.BindException: Address already in use

Jenkins JIRA | mmorizot | 7 years ago
  1. 0

    i have a single Sun box with 2 users. Each user is assigned a hudson slave on the same machine. i keep those two environments distinct because one is used for "CI builds" and the other to trigger "automated installation of our product". Keeping them separated allows me to do some damage control if, for example an automated installation came to get out of it's $WORKSPACE. Now to my problem : after reverifying, it seems that it affects the slavestatus listener : both point to the same machine (yet on different login account) with the same 3141 port. I suppose there is no way for it to know who's who. Feb 11, 2010 3:23:37 PM com.youdevise.hudson.slavestatus.SlaveListener call INFO: Slave-status listener starting Feb 11, 2010 3:23:37 PM com.youdevise.hudson.slavestatus.SlaveListener$1 run SEVERE: Could not listen on port java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365) at java.net.ServerSocket.bind(ServerSocket.java:319) at java.net.ServerSocket.<init>(ServerSocket.java:185) at java.net.ServerSocket.<init>(ServerSocket.java:97) at com.youdevise.hudson.slavestatus.SocketHTTPListener.waitForConnection(SlaveListener.java:129) at com.youdevise.hudson.slavestatus.SlaveListener$1.run(SlaveListener.java:63) at com.youdevise.hudson.slavestatus.Daemon.go(Daemon.java:16) at com.youdevise.hudson.slavestatus.SlaveListener.call(SlaveListener.java:83) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)

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

    i have a single Sun box with 2 users. Each user is assigned a hudson slave on the same machine. i keep those two environments distinct because one is used for "CI builds" and the other to trigger "automated installation of our product". Keeping them separated allows me to do some damage control if, for example an automated installation came to get out of it's $WORKSPACE. Now to my problem : after reverifying, it seems that it affects the slavestatus listener : both point to the same machine (yet on different login account) with the same 3141 port. I suppose there is no way for it to know who's who. Feb 11, 2010 3:23:37 PM com.youdevise.hudson.slavestatus.SlaveListener call INFO: Slave-status listener starting Feb 11, 2010 3:23:37 PM com.youdevise.hudson.slavestatus.SlaveListener$1 run SEVERE: Could not listen on port java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365) at java.net.ServerSocket.bind(ServerSocket.java:319) at java.net.ServerSocket.<init>(ServerSocket.java:185) at java.net.ServerSocket.<init>(ServerSocket.java:97) at com.youdevise.hudson.slavestatus.SocketHTTPListener.waitForConnection(SlaveListener.java:129) at com.youdevise.hudson.slavestatus.SlaveListener$1.run(SlaveListener.java:63) at com.youdevise.hudson.slavestatus.Daemon.go(Daemon.java:16) at com.youdevise.hudson.slavestatus.SlaveListener.call(SlaveListener.java:83) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)

    Jenkins JIRA | 7 years ago | mmorizot
    java.net.BindException: Address already in use
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. iridic 1 times, last 3 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:365)
    3. java.net.ServerSocket.bind(ServerSocket.java:319)
    4. java.net.ServerSocket.<init>(ServerSocket.java:185)
    5. java.net.ServerSocket.<init>(ServerSocket.java:97)
    5 frames
  3. com.youdevise.hudson
    SlaveListener.call
    1. com.youdevise.hudson.slavestatus.SocketHTTPListener.waitForConnection(SlaveListener.java:129)
    2. com.youdevise.hudson.slavestatus.SlaveListener$1.run(SlaveListener.java:63)
    3. com.youdevise.hudson.slavestatus.Daemon.go(Daemon.java:16)
    4. com.youdevise.hudson.slavestatus.SlaveListener.call(SlaveListener.java:83)
    4 frames
  4. Hudson :: Remoting Layer
    Request$2.run
    1. hudson.remoting.UserRequest.perform(UserRequest.java:114)
    2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
    3. hudson.remoting.Request$2.run(Request.java:270)
    3 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    3. java.util.concurrent.FutureTask.run(FutureTask.java:138)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    6. java.lang.Thread.run(Thread.java:619)
    6 frames