java.net.BindException

Address already in use at sun.nio.ch.Net.bind0(java.base@9-internal/Native Method) at sun.nio.ch.Net.bind(java.base@9-internal/Net.java:433) at sun.nio.ch.Net.bind(java.base@9-internal/Net.java:425) at sun.nio.ch.ServerSocketChannelImpl.bind(java.base@9-internal/ServerSocketChannelImpl.java:225) at sun.nio.ch.ServerSocketAdaptor.bind(java.base@9-internal/ServerSocketAdaptor.java:74) at sun.net.httpserver.ServerImpl.<init>(jdk.httpserver@9-internal/ServerImpl.java:101) at sun.net.httpserver.HttpServerImpl.<init>(jdk.httpserver@9-internal/HttpServerImpl.java:50) at sun.net.httpserver.DefaultHttpServerProvider.createHttpServer(jdk.httpserver@9-internal/DefaultHttpServerProvider.java:35) at com.sun.net.httpserver.HttpServer.create(jdk.httpserver@9-internal/HttpServer.java:129)

Solutions on the web4186

  • via JDK Bug System by Felix Yang, 11 months ago
    Address already in use at sun.nio.ch.Net.bind0(java.base@9-internal/Native Method) at sun.nio.ch.Net.bind(java.base@9-internal/Net.java:433) at sun.nio.ch.Net.bind(java.base@9-internal/Net.java:425) at sun.nio.ch.ServerSocketChannelImpl.bind
  • via JDK Bug System by Amy Lu, 1 year ago
    Address already in use at sun.nio.ch.Net.bind0(java.base@9-ea/Native Method) at sun.nio.ch.Net.bind(java.base@9-ea/Net.java:433) at sun.nio.ch.Net.bind(java.base@9-ea/Net.java:425) at sun.nio.ch.ServerSocketChannelImpl.bind(java.base@9-ea
  • via JDK Bug System by Amanda Jiang, 11 months ago
    Address already in use at sun.rmi.transport.tcp.TCPTransport.listen(java.rmi@9-internal/TCPTransport.java:335) at sun.rmi.transport.tcp.TCPTransport.exportObject(java.rmi@9-internal/TCPTransport.java:243) at
  • Stack trace

    • java.net.BindException: Address already in use at sun.nio.ch.Net.bind0(java.base@9-internal/Native Method) at sun.nio.ch.Net.bind(java.base@9-internal/Net.java:433) at sun.nio.ch.Net.bind(java.base@9-internal/Net.java:425) at sun.nio.ch.ServerSocketChannelImpl.bind(java.base@9-internal/ServerSocketChannelImpl.java:225) at sun.nio.ch.ServerSocketAdaptor.bind(java.base@9-internal/ServerSocketAdaptor.java:74) at sun.net.httpserver.ServerImpl.<init>(jdk.httpserver@9-internal/ServerImpl.java:101) at sun.net.httpserver.HttpServerImpl.<init>(jdk.httpserver@9-internal/HttpServerImpl.java:50) at sun.net.httpserver.DefaultHttpServerProvider.createHttpServer(jdk.httpserver@9-internal/DefaultHttpServerProvider.java:35) at com.sun.net.httpserver.HttpServer.create(jdk.httpserver@9-internal/HttpServer.java:129) at SimpleHttpServerTest.main(SimpleHttpServerTest.java:52)

    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

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.