java.net.BindException: Address already in use

GitHub | xiao321 | 8 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    mvn clean install失败

    GitHub | 8 months ago | xiao321
    java.net.BindException: Address already in use
  2. 0

    Sometimes fail in zookeeper test

    GitHub | 2 years ago | davsclaus
    java.net.BindException: Address already in use
  3. 0

    [v2] - Unit test of fabric-groups may fail with a port already in use

    GitHub | 2 years ago | davsclaus
    java.net.BindException: Address already in use
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ZooKeeper fail to start

    GitHub | 1 year ago | dipietro-salvatore
    java.net.BindException: Cannot assign requested address
  6. 0
    samebug tip
    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.

  1. zbalint 1 times, last 4 days ago
  2. jstrayer 1 times, last 4 days ago
  3. tyson925 4 times, last 3 weeks ago
  4. Bugger 1 times, last 4 weeks ago
  5. Omya 1 times, last 1 month ago
45 more registered users
50 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 sun.nio.ch.Net.bind0()
  2. Java RT
    ServerSocketAdaptor.bind
    1. sun.nio.ch.Net.bind0(Native Method)
    2. sun.nio.ch.Net.bind(Net.java:444)
    3. sun.nio.ch.Net.bind(Net.java:436)
    4. sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
    5. sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
    6. sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:67)
    6 frames
  3. Zookeeper
    NIOServerCnxnFactory.configure
    1. org.apache.zookeeper.server.NIOServerCnxnFactory.configure(NIOServerCnxnFactory.java:95)
    1 frame
  4. com.huawei.streaming
    RemoteExucutorTest.setUpBeforeClass
    1. com.huawei.streaming.cql.LocalTaskCommons.runFromConfig(LocalTaskCommons.java:379)
    2. com.huawei.streaming.cql.LocalTaskCommons.startZookeeperServer(LocalTaskCommons.java:171)
    3. com.huawei.streaming.cql.executor.RemoteExucutorTest.setUpBeforeClass(RemoteExucutorTest.java:47)
    3 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  6. JUnit
    ParentRunner.run
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
    4. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
    5. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
    6. org.junit.runners.ParentRunner.run(ParentRunner.java:300)
    6 frames
  7. JUnit4 Provider
    JUnit4Provider.invoke
    1. org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
    2. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
    3. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
    3 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  9. SureFire
    ForkedBooter.main
    1. org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
    2. org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
    3. org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
    4. org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
    5. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
    5 frames