java.net.BindException: Address already in use: bind

hivmr.com | 9 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

    AppServer PE 8 2004Q4 Beta failed to start

    Oracle Community | 1 decade ago | 843833
    java.net.BindException: Address already in use: bind
  2. 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.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 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.
  5. 0

    Sonar started but builds are failing

    Stack Overflow | 2 years ago | PT_C
    org.elasticsearch.transport.BindTransportException: Failed to bind to [9001]
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: bind

    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:108)
    3. sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
    4. sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
    4 frames
  3. Glassfish Core
    GrizzlyHttpProtocol.init
    1. com.sun.enterprise.web.connector.grizzly.SelectorThread.initEndpoint(SelectorThread.java:494)
    2. com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol.init(GrizzlyHttpProtocol.java:188)
    2 frames
  4. org.apache.coyote
    CoyoteConnector.initialize
    1. org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1415)
    1 frame
  5. Glassfish Core
    Embedded.start
    1. org.apache.catalina.startup.Embedded.start(Embedded.java:860)
    1 frame
  6. Glassfish
    PEWebContainerLifecycle.onStartup
    1. com.sun.enterprise.web.WebContainer.start(WebContainer.java:673)
    2. com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:430)
    3. com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:54)
    3 frames
  7. com.sun.enterprise
    PEMain.main
    1. com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
    2. com.sun.enterprise.server.PEMain.run(PEMain.java:265)
    3. com.sun.enterprise.server.PEMain.main(PEMain.java:217)
    3 frames