BindException Address Already in Use JVM_Bind

We used to get this error when we starting our application servers. This error says already there is a process running in the port or your application servers are not shutdown properly.

Possible Reasons:
1. One more instance of the same process is running already
 2. Your servers may not be shutdown properly and still accessing the port.
 3. Your port might be locked.

Caused by: java.net.BindException: Address already in use: bind
 at sun.nio.ch.Net.bind0(Native Method)
 at sun.nio.ch.Net.bind(Net.java:444)
 at sun.nio.ch.Net.bind(Net.java:436)
 at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
 at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
 at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:470)
 at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:610)
 at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:429)
 at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
 at org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
 ... 13 more

Possible Solutions: 
1. if we wanted to run two instance of server(tomcat,jboss) then clone the settings and change the running port in configuration for second instance.
2. If we are using eclipse then stop the server and right click on server click clean.
3. In some cases either you need to restart the eclipse or the system


Post a Comment

Powered by Blogger.