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

Oracle Community | 807581 | 1 decade 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

    Problems Undeploying on Application Server

    Oracle Community | 1 decade ago | 807581
    java.net.BindException: Address already in use: bind
  2. 0

    Sokect Connection Error

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

    Automated exception search integrated into your IDE

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

    Spring Boot - BindException Address already in use bind

    technicalkeeda.com | 1 year ago
    java.net.BindException: Address already in use: bind
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: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:278)
    2. com.sun.enterprise.server.ss.provider.ASServerSocketImpl.listen(ASServerSocketImpl.java:153)
    2 frames
  4. Java RT
    ServerSocket.<init>
    1. java.net.ServerSocket.bind(ServerSocket.java:320)
    2. java.net.ServerSocket.<init>(ServerSocket.java:185)
    3. java.net.ServerSocket.<init>(ServerSocket.java:97)
    3 frames
  5. branchservice.endpoint
    Branch.<init>
    1. branchservice.endpoint.Branch$BranchCommunications$BranchServerThread.<init>(Unknown Source)
    2. branchservice.endpoint.Branch$BranchCommunications$BranchServerThread.<init>(Unknown Source)
    3. branchservice.endpoint.Branch.<init>(Unknown Source)
    3 frames
  6. Java RT
    Class.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    5. java.lang.Class.newInstance0(Class.java:350)
    6. java.lang.Class.newInstance(Class.java:303)
    6 frames
  7. JAX-WS RI Runtime Bundle
    WSServletContextListener.contextInitialized
    1. com.sun.xml.ws.transport.http.servlet.RuntimeEndpointInfoParser.getImplementor(RuntimeEndpointInfoParser.java:306)
    2. com.sun.xml.ws.transport.http.servlet.RuntimeEndpointInfoParser.parseEndpoints(RuntimeEndpointInfoParser.java:95)
    3. com.sun.xml.ws.transport.http.servlet.RuntimeEndpointInfoParser.parse(RuntimeEndpointInfoParser.java:64)
    4. com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:112)
    4 frames
  8. Glassfish Core
    StandardContext.start
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4231)
    2. org.apache.catalina.core.StandardContext.start(StandardContext.java:4750)
    2 frames
  9. Glassfish
    WebModule.start
    1. com.sun.enterprise.web.WebModule.start(WebModule.java:292)
    1 frame
  10. Glassfish Core
    ContainerBase$PrivilegedAddChild.run
    1. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:833)
    2. org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:131)
    3. org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:153)
    3 frames
  11. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  12. Glassfish Core
    StandardHost.addChild
    1. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:815)
    2. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:659)
    2 frames
  13. Glassfish
    WebContainer.loadWebModule
    1. com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1453)
    2. com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1123)
    2 frames
  14. com.sun.enterprise
    WebModuleDeployEventListener.moduleDeployed
    1. com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:171)
    2. com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:265)
    2 frames
  15. admin-util
    AdminEventMulticaster.multicastEvent
    1. com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:954)
    2. com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:941)
    3. com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:448)
    4. com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
    4 frames
  16. com.sun.enterprise
    ApplicationsConfigMBean.start
    1. com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:303)
    2. com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:201)
    3. com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:285)
    4. com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:119)
    5. com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
    6. com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:842)
    7. com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:527)
    8. com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:571)
    9. com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:719)
    9 frames
  17. 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:585)
    4 frames
  18. GlassFish Admin
    MBeanHelper.invokeOperationInBean
    1. com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:342)
    2. com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:325)
    2 frames
  19. com.sun.enterprise
    BaseConfigMBean.invoke
    1. com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:407)
    1 frame
  20. Java RT
    Method.invoke
    1. com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
    2. com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
    3. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
    4. com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
    5. sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
    6. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    7. java.lang.reflect.Method.invoke(Method.java:585)
    7 frames
  21. admin-util
    ProxyClass.invoke
    1. com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
    1 frame
  22. Unknown
    $Proxy1.invoke
    1. $Proxy1.invoke(Unknown Source)
    1 frame
  23. com.sun.enterprise
    RemoteJmxConnectorServlet.doPost
    1. com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
    2. com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:56)
    3. com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:142)
    4. com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:109)
    5. com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:180)
    5 frames
  24. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:822)
    2 frames
  25. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:585)
    3 frames
  26. Glassfish Core
    SecurityUtil$1.run
    1. org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:262)
    1 frame
  27. Java RT
    Subject.doAsPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    2. javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    2 frames
  28. Glassfish Core
    StandardPipeline.doInvoke
    1. org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:295)
    2. org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:178)
    3. org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:390)
    4. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
    5. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    6. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    7. org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
    8. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
    9. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    9 frames
  29. Glassfish
    WebPipeline.invoke
    1. com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
    1 frame
  30. Glassfish Core
    StandardPipeline.doInvoke
    1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
    2. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    2 frames
  31. Glassfish
    VirtualServerPipeline.invoke
    1. com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
    1 frame
  32. Glassfish Core
    ContainerBase.invoke
    1. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    2. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
    3. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    4. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    5. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    5 frames
  33. org.apache.coyote
    CoyoteAdapter.service
    1. org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
    1 frame
  34. Glassfish Core
    WorkerThread.run
    1. com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:664)
    2. com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:571)
    3. com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:846)
    4. com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:345)
    5. com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:237)
    6. com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:240)
    7. com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    7 frames