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

Stack Overflow | Alexi C | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Java Qpid Proton - ActiveMQ broker Cannot assign requested address: bind

    Stack Overflow | 9 months ago | Alexi C
    java.net.BindException: Address already in use: bind

    Root Cause Analysis

    1. java.net.BindException

      Address already in use: bind

      at sun.nio.ch.Net.bind0()
    2. Java RT
      ServerSocketChannel.bind
      1. sun.nio.ch.Net.bind0(Native Method)
      2. sun.nio.ch.Net.bind(Unknown Source)
      3. sun.nio.ch.Net.bind(Unknown Source)
      4. sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
      5. java.nio.channels.ServerSocketChannel.bind(Unknown Source)
      5 frames
    3. org.apache.qpid
      ReactorImpl.acceptor
      1. org.apache.qpid.proton.reactor.impl.AcceptorImpl.<init>(AcceptorImpl.java:102)
      2. org.apache.qpid.proton.reactor.impl.ReactorImpl.acceptor(ReactorImpl.java:477)
      2 frames
    4. messaging
      AMQPSubscriber.onReactorInit
      1. messaging.AMQPSubscriber.onReactorInit(AMQPSubscriber.java:33)
      1 frame
    5. AMQ bundle
      EventImpl.dispatch
      1. org.apache.qpid.proton.engine.BaseHandler.handle(BaseHandler.java:209)
      2. org.apache.qpid.proton.engine.impl.EventImpl.dispatch(EventImpl.java:108)
      3. org.apache.qpid.proton.engine.impl.EventImpl.delegate(EventImpl.java:129)
      4. org.apache.qpid.proton.engine.impl.EventImpl.dispatch(EventImpl.java:114)
      4 frames
    6. org.apache.qpid
      ReactorImpl.run
      1. org.apache.qpid.proton.reactor.impl.ReactorImpl.dispatch(ReactorImpl.java:307)
      2. org.apache.qpid.proton.reactor.impl.ReactorImpl.process(ReactorImpl.java:275)
      3. org.apache.qpid.proton.reactor.impl.ReactorImpl.run(ReactorImpl.java:343)
      3 frames
    7. messaging
      Main.main
      1. messaging.Main.main(Main.java:98)
      1 frame