java.net.BindException: Address already in use: Service 'sparkDriver' failed after 16 retries!

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

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.

,

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 GitHub by kishorez
, 1 year ago
Address already in use: Service 'sparkDriver' failed after 16 retries!
via GitHub by ecesena
, 1 year ago
Address already in use: Service 'org.apache.spark.network.netty.NettyBlockTransferService' failed after 16 retries!
via GitHub by trungtv
, 10 months ago
Cannot assign requested address: Service 'sparkDriver' failed after 16 retries!
via Stack Overflow by Jia
, 1 year ago
Can't assign requested address: Service 'sparkDriver' failed after 16 retries!
via Stack Overflow by Ashwin Swarup
, 1 year ago
Cannot assign requested address: Service 'sparkDriver' failed after 16 retries!
via Stack Overflow by apolak
, 1 year ago
Can't assign requested address: Service 'sparkDriver' failed after 16 retries!
java.net.BindException: Address already in use: Service 'sparkDriver' failed after 16 retries!
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:125)
at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:485)
at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1089)
at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:430)
at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:415)
at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:903)
at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:198)
at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:348)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:357)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)

Users with the same issue

Once, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
11 times, 1 week ago
163 more bugmates

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