java.net.BindException: Address already in use

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

,
Expert tip

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

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

Solutions on the web

via Atlassian JIRA by Pete de Zwart, 1 year ago
Address already in use
via Atlassian JIRA by Pete de Zwart, 1 year ago
Address already in use
via Google Groups by Christoph Gritschenberger (JIRA), 1 year ago
via Google Groups by Christoph Gritschenberger (JIRA), 1 year ago
via Stack Overflow by kingspeech
, 2 years ago
Address already in use
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:126)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at org.apache.mina.transport.socket.nio.NioSocketAcceptor.open(NioSocketAcceptor.java:201)
at org.apache.mina.transport.socket.nio.NioSocketAcceptor.open(NioSocketAcceptor.java:51)
at org.apache.mina.core.polling.AbstractPollingIoAcceptor.registerHandles(AbstractPollingIoAcceptor.java:543)
at org.apache.mina.core.polling.AbstractPollingIoAcceptor.access$300(AbstractPollingIoAcceptor.java:67)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

Users with the same issue

2 times, 1 day ago
9 times, 2 days ago
2 times, 3 days ago
2 times, 4 days ago
Once, 4 days ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.