java.net.BindException: Cannot assign requested address

chinaunix.net | 9 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael and rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    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.
  2. 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.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

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

    RE: Unable to start cluster (java.net.BindException: Cannot assign requested address)

    apache.org | 2 years ago
    java.net.BindException: Cannot assign requested address
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

    Cannot assign requested address

    at sun.nio.ch.Net.bind()
  2. Java RT
    ServerSocketAdaptor.bind
    1. sun.nio.ch.Net.bind(Native Method)
    2. sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:126)
    3. sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
    4. sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
    4 frames
  3. org.apache.catalina
    SimpleTcpCluster.startInternal
    1. org.apache.catalina.tribes.transport.ReceiverBase.bind(ReceiverBase.java:231)
    2. org.apache.catalina.tribes.transport.nio.NioReceiver.bind(NioReceiver.java:143)
    3. org.apache.catalina.tribes.transport.nio.NioReceiver.start(NioReceiver.java:107)
    4. org.apache.catalina.tribes.group.ChannelCoordinator.internalStart(ChannelCoordinator.java:145)
    5. org.apache.catalina.tribes.group.ChannelCoordinator.start(ChannelCoordinator.java:99)
    6. org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:162)
    7. org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:162)
    8. org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor.start(MessageDispatchInterceptor.java:157)
    9. org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:162)
    10. org.apache.catalina.tribes.group.ChannelInterceptorBase.start(ChannelInterceptorBase.java:162)
    11. org.apache.catalina.tribes.group.GroupChannel.start(GroupChannel.java:419)
    12. org.apache.catalina.ha.tcp.SimpleTcpCluster.startInternal(SimpleTcpCluster.java:654)
    12 frames
  4. Glassfish Core
    Catalina.start
    1. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    2. org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1106)
    3. org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
    4. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    5. org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
    6. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    7. org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
    8. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    9. org.apache.catalina.startup.Catalina.start(Catalina.java:684)
    9 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  6. Glassfish Core
    Bootstrap.start
    1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
    1 frame
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  8. Commons Daemon
    DaemonLoader.start
    1. org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:243)
    1 frame