java.net.BindException

Address already in use

Samebug tips3

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

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.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web4177

  • via Google Groups by Alexander Lehmann, 1 year ago
    Address already in use
  • via Google Groups by tsanghv, 6 months ago
    Address already in use
  • via Google Groups by Dante, 1 year ago
    Address already in use]
  • Stack trace

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

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    9 times, 15 hours ago
    Once, 2 days ago
    8 times, 1 week ago
    Once, 1 week ago
    2 times, 2 weeks ago
    135 more bugmates