java.net.BindException: Address already in use

Oracle Community | 807581 | 9 years 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

    Sokect Connection Error

    Oracle Community | 9 years ago | 807581
    java.net.BindException: Address already in use
  2. 0

    Problems Undeploying on Application Server

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

    Automated exception search integrated into your IDE

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

    FreeBSD socket close problem

    Stack Overflow | 6 years ago | kingspeech
    java.net.BindException: Address already in use
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.bind()
  2. Java RT
    ServerSocketAdaptor.bind
    1. sun.nio.ch.Net.bind(Native Method)
    2. sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
    3. sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
    3 frames
  3. com.sun.enterprise
    ASServerSocketImpl.listen
    1. com.sun.enterprise.server.ss.provider.ASServerSocket.bind(ASServerSocket.java:292)
    2. com.sun.enterprise.server.ss.provider.ASServerSocketImpl.listen(ASServerSocketImpl.java:166)
    2 frames
  4. Java RT
    ServerSocket.bind
    1. java.net.ServerSocket.bind(ServerSocket.java:320)
    2. java.net.ServerSocket.bind(ServerSocket.java:277)
    2 frames
  5. com.asnetla.commonDCSJ
    CommonDCSJ.enviarTramaS
    1. com.asnetla.commonDCSJ.serverControl.socketServer.ServerSOCKET.iniciarServerSocket(ServerSOCKET.java:116)
    2. com.asnetla.commonDCSJ.serverControl.socketServer.ServerSOCKET.activarServer(ServerSOCKET.java:96)
    3. com.asnetla.commonDCSJ.serverControl.socketServer.TempServerSOCKET.generarServer(TempServerSOCKET.java:367)
    4. com.asnetla.commonDCSJ.serverControl.socketServer.TempServerSOCKET.enviarTramaS(TempServerSOCKET.java:193)
    5. com.asnetla.commonDCSJ.serverControl.ControlServers.enviarTramaS(ControlServers.java:283)
    6. com.asnetla.commonDCSJ.admonComponent.CommonDCSJ.enviarTramaS(CommonDCSJ.java:154)
    6 frames
  6. com.asnetla.b2v2d
    OperatorRequestServlet.doGet
    1. com.asnetla.b2v2d.services.communication.CoreHelper.enviarTrama(CoreHelper.java:244)
    2. com.asnetla.b2v2d.services.operator.ProcessStateService.executeService(ProcessStateService.java:46)
    3. com.asnetla.b2v2d.controller.RequestProcessor.processRequest(RequestProcessor.java:139)
    4. com.asnetla.b2v2d.servlets.OperatorRequestServlet.doGet(OperatorRequestServlet.java:53)
    4 frames
  7. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
    2 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor262.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  9. Glassfish Core
    SecurityUtil$1.run
    1. org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:276)
    1 frame
  10. Java RT
    Subject.doAsPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    2. javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    2 frames
  11. Glassfish Core
    StandardPipeline.doInvoke
    1. org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:309)
    2. org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:192)
    3. org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:404)
    4. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:290)
    5. org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
    6. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
    7. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    8. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    8 frames
  12. Glassfish
    WebPipeline.invoke
    1. com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
    1 frame
  13. Glassfish Core
    ContainerBase.invoke
    1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
    2. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    3. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    4. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    5. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    6. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
    7. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    8. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    9. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    10. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    10 frames
  14. org.apache.coyote
    CoyoteAdapter.service
    1. org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:270)
    1 frame
  15. Glassfish Core
    TaskBase.run
    1. com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
    2. com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
    3. com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
    4. com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:339)
    5. com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:261)
    6. com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:212)
    7. com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
    7 frames
  16. Grizzly HTTP
    SSLWorkerThread.run
    1. com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    1 frame