java.net.BindException

Address already in use

Samebug tips3

Change the connection port and ip adress. If you're trying to connect to your server from your own computer, check if you haven't already connected to the server in another instance.

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 web4173

  • via Coderanch by shreyansh jain, 7 months ago
    Address already in use
  • via Coderanch by Jacksy Verghese, 8 months ago
    Address already in use
  • via Coderanch by Danish Shaukat, 7 months ago
    Address already in use
  • Stack trace

    • java.net.BindException: Address already in use at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:433) at sun.nio.ch.Net.bind(Net.java:425) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:321) at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80) at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.server.Server.doStart(Server.java:366) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.apache.kafka.connect.runtime.rest.RestServer.start(RestServer.java:145) at org.apache.kafka.connect.runtime.Connect.start(Connect.java:56) at org.apache.kafka.connect.cli.ConnectStandalone.main(ConnectStandalone.java:82)[2016-09-28 13:48:45,334]

    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

    3 times, 7 months ago
    Once, 3 months ago
    36 times, 3 months ago
    6 times, 11 months ago
    Unknown user
    Once, 1 year ago
    143 more bugmates