java.net.BindException

Address already in use: bind

Samebug tips3

It might be that there's another process connecting to the same port you're trying to use, try to kill it or change the connection port.

Try changing the port in core-site.xml from 9000 to 9001 as it seems port 9000 doesn't work.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web4206

  • Address already in use: bind
  • via GitHub by Cashe18
    , 10 months ago
    Address already in use: bind
  • via GitHub by Vshuds
    , 10 months ago
    Address already in use: bind
  • Stack trace

    • java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Unknown Source) at sun.nio.ch.Net.bind(Unknown Source) at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) at java.nio.channels.ServerSocketChannel.bind(Unknown Source) at org.apache.qpid.proton.reactor.impl.AcceptorImpl.<init>(AcceptorImpl.java:102) at org.apache.qpid.proton.reactor.impl.ReactorImpl.acceptor(ReactorImpl.java:477) at messaging.AMQPSubscriber.onReactorInit(AMQPSubscriber.java:33) at org.apache.qpid.proton.engine.BaseHandler.handle(BaseHandler.java:209) at org.apache.qpid.proton.engine.impl.EventImpl.dispatch(EventImpl.java:108) at org.apache.qpid.proton.engine.impl.EventImpl.delegate(EventImpl.java:129) at org.apache.qpid.proton.engine.impl.EventImpl.dispatch(EventImpl.java:114) at org.apache.qpid.proton.reactor.impl.ReactorImpl.dispatch(ReactorImpl.java:307) at org.apache.qpid.proton.reactor.impl.ReactorImpl.process(ReactorImpl.java:275) at org.apache.qpid.proton.reactor.impl.ReactorImpl.run(ReactorImpl.java:343) at messaging.Main.main(Main.java:98)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 15 hours ago
    8 times, 3 days ago
    8 times, 6 days ago
    6 times, 1 week ago
    Once, 1 week ago
    142 more bugmates