Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert 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. ,

    Its saying that a Java application is trying to connect on port but that port is already being used by some other process and JVM Bind to that particular port is failed.

Solutions on the web

via Oracle Community by 807581, 1 year ago
Address already in use: bind
java.net.BindException: Address already in use: bind	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:278)	at com.sun.enterprise.server.ss.provider.ASServerSocketImpl.listen(ASServerSocketImpl.java:153)	at java.net.ServerSocket.bind(ServerSocket.java:320)	at java.net.ServerSocket.(ServerSocket.java:185)	at java.net.ServerSocket.(ServerSocket.java:97)	at branchservice.endpoint.Branch$BranchCommunications$BranchServerThread.(Unknown Source)	at branchservice.endpoint.Branch$BranchCommunications$BranchServerThread.(Unknown Source)	at branchservice.endpoint.Branch.(Unknown Source)	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)	at java.lang.reflect.Constructor.newInstance(Constructor.java:494)	at java.lang.Class.newInstance0(Class.java:350)	at java.lang.Class.newInstance(Class.java:303)	at com.sun.xml.ws.transport.http.servlet.RuntimeEndpointInfoParser.getImplementor(RuntimeEndpointInfoParser.java:306)	at com.sun.xml.ws.transport.http.servlet.RuntimeEndpointInfoParser.parseEndpoints(RuntimeEndpointInfoParser.java:95)	at com.sun.xml.ws.transport.http.servlet.RuntimeEndpointInfoParser.parse(RuntimeEndpointInfoParser.java:64)	at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:112)	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4231)	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4750)	at com.sun.enterprise.web.WebModule.start(WebModule.java:292)	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:833)	at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:131)	at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:153)	at java.security.AccessController.doPrivileged(Native Method)	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:815)	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:659)	at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1453)	at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1123)	at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:171)	at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:265)	at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:954)	at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:941)	at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:448)	at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)	at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:303)	at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:201)	at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:285)	at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:119)	at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)	at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:842)	at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:527)	at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:571)	at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:719)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:585)	at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:342)	at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:325)	at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:407)	at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)	at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)	at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:585)	at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)	at $Proxy1.invoke(Unknown Source)	at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)	at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:56)	at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:142)	at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:109)	at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:180)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:822)	at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:585)	at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:262)	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:295)	at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:178)	at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:390)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)	at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)	at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)	at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:664)	at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:571)	at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:846)	at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:345)	at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:237)	at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:240)	at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)