java.net.BindException: Address already in use (Bind failed)

GitHub | jamesnetherton | 3 weeks ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.BindException

    Address already in use (Bind failed)

    at java.net.PlainSocketImpl.socketBind()
  2. Java RT
    ServerSocket.bind
    1. java.net.PlainSocketImpl.socketBind(Native Method)
    2. java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
    3. java.net.ServerSocket.bind(ServerSocket.java:375)
    3 frames
  3. org.apache.camel
    MllpTcpServerConsumer.doStart
    1. org.apache.camel.component.mllp.MllpTcpServerConsumer.doStart(MllpTcpServerConsumer.java:118)
    1 frame
  4. Camel :: Core
    DefaultCamelContext.start
    1. org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
    2. org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:3375)
    3. org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRouteConsumers(DefaultCamelContext.java:3692)
    4. org.apache.camel.impl.DefaultCamelContext.doStartRouteConsumers(DefaultCamelContext.java:3628)
    5. org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3548)
    6. org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:3312)
    7. org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3166)
    8. org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:183)
    9. org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2961)
    10. org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2957)
    11. org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2980)
    12. org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2957)
    13. org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
    14. org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2924)
    14 frames
  5. org.wildfly.camel
    MllpTcpServerConsumerTest.testReceiveSingleMessage
    1. org.wildfly.camel.test.mllp.MllpTcpServerConsumerTest.testReceiveSingleMessage(MllpTcpServerConsumerTest.java:80)
    1 frame