java.net.BindException: Address already in use: bind

GitHub | Valdo197 | 4 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    Crash on startup

    GitHub | 4 months ago | Valdo197
    org.apache.catalina.LifecycleException: Failed to start component [Connector[HTTP/1.1-8080]]
  2. 0
    samebug 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.
  3. 0

    tesseract 启动错误

    GitHub | 2 years ago | kisskevin
    java.net.BindException: Address already in use: bind
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring Boot Issue while Running the Spring Boot APP

    Stack Overflow | 1 year ago | user2497684
    org.apache.catalina.LifecycleException: Failed to start component [Connector[HTTP/1.1-8080]]
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.BindException

    Address already in use: bind

    at sun.nio.ch.Net.bind0()
  2. Java RT
    ServerSocketAdaptor.bind
    1. sun.nio.ch.Net.bind0(Native Method)[na:1.8.0_101]
    2. sun.nio.ch.Net.bind(Unknown Source)[na:1.8.0_101]
    3. sun.nio.ch.Net.bind(Unknown Source)[na:1.8.0_101]
    4. sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)[na:1.8.0_101]
    5. sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)[na:1.8.0_101]
    5 frames
  3. Grizzly HTTP
    AbstractProtocol.start
    1. org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:340)[DiscordSoundboard.jar!/:1.4.8]
    2. org.apache.tomcat.util.net.AbstractEndpoint.start(AbstractEndpoint.java:765)[DiscordSoundboard.jar!/:1.4.8]
    3. org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:473)[DiscordSoundboard.jar!/:1.4.8]
    3 frames
  4. Glassfish Core
    StandardService.addConnector
    1. org.apache.catalina.connector.Connector.startInternal(Connector.java:986)[DiscordSoundboard.jar!/:1.4.8]
    2. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)[DiscordSoundboard.jar!/:1.4.8]
    3. org.apache.catalina.core.StandardService.addConnector(StandardService.java:239)[DiscordSoundboard.jar!/:1.4.8]
    3 frames
  5. Spring Boot
    EmbeddedWebApplicationContext.finishRefresh
    1. org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.addPreviouslyRemovedConnectors(TomcatEmbeddedServletContainer.java:194)[DiscordSoundboard.jar!/:1.4.8]
    2. org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer.java:151)[DiscordSoundboard.jar!/:1.4.8]
    3. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:293)[DiscordSoundboard.jar!/:1.4.8]
    4. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:141)[DiscordSoundboard.jar!/:1.4.8]
    4 frames
  6. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)[DiscordSoundboard.jar!/:1.4.8]
    1 frame
  7. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)[DiscordSoundboard.jar!/:1.4.8]
    2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766)[DiscordSoundboard.jar!/:1.4.8]
    3. org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361)[DiscordSoundboard.jar!/:1.4.8]
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:307)[DiscordSoundboard.jar!/:1.4.8]
    5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1191)[DiscordSoundboard.jar!/:1.4.8]
    6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1180)[DiscordSoundboard.jar!/:1.4.8]
    6 frames
  8. net.dirtydeeds.discordsoundboard
    MainController.main
    1. net.dirtydeeds.discordsoundboard.MainController.main(MainController.java:20)[DiscordSoundboard.jar!/:1.4.8]
    1 frame
  9. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_101]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[na:1.8.0_101]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[na:1.8.0_101]
    4. java.lang.reflect.Method.invoke(Unknown Source)[na:1.8.0_101]
    4 frames
  10. Spring Boot Loader
    MainMethodRunner.run
    1. org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:54)[DiscordSoundboard.jar!/:1.4.8]
    1 frame
  11. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)[na:1.8.0_101]
    1 frame