java.net.BindException

Cannot assign requested address

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.


rafaelrafael

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

Solutions on the web712

  • via GitHub by gorzan14
    ,
  • Stack trace

    • java.net.BindException: Cannot assign requested address at sun.nio.ch.Net.bind0(Native Method)[:1.8.0_101] at sun.nio.ch.Net.bind(Net.java:433)[:1.8.0_101] at sun.nio.ch.Net.bind(Net.java:425)[:1.8.0_101] at sun.nio.ch.AsynchronousServerSocketChannelImpl.bind(AsynchronousServerSocketChannelImpl.java:162)[:1.8.0_101] at org.apache.sshd.common.io.nio2.Nio2Acceptor.bind(Nio2Acceptor.java:66)[1:org.apache.sshd.core:0.14.0] at org.apache.sshd.common.io.nio2.Nio2Acceptor.bind(Nio2Acceptor.java:74)[1:org.apache.sshd.core:0.14.0] at org.apache.sshd.SshServer.start(SshServer.java:287)[1:org.apache.sshd.core:0.14.0] at org.apache.karaf.shell.ssh.Activator.doStart(Activator.java:117)[57:org.apache.karaf.shell.ssh:4.0.4] at org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:233)[57:org.apache.karaf.shell.ssh:4.0.4] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_101] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_101] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_101] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_101] at java.lang.Thread.run(Thread.java:745)[:1.8.0_101]

    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

    davidvanlaatumdavidvanlaatum
    7 times, last one
    AxeloAxelo
    8 times, last one
    slashslash
    8 times, last one
    zsambokizsamboki
    6 times, last one
    Unknown UserUnknown User
    Once,
    141 more bugmates