java.lang.IllegalStateException: Cannot bind to specific port: http://localhost:8080/rest/hello/%7Bname%7D 2016-07-05 11:27:55,321 ERROR [stderr] (main) at org.jboss.gravia.utils.IllegalStateAssertion.assertTrue(IllegalStateAssertion.java:59)

GitHub | tdiesler | 7 months ago
  1. 0

    Possible race condition with undertow port binding

    GitHub | 7 months ago | tdiesler
    java.lang.IllegalStateException: Cannot bind to specific port: http://localhost:8080/rest/hello/%7Bname%7D 2016-07-05 11:27:55,321 ERROR [stderr] (main) at org.jboss.gravia.utils.IllegalStateAssertion.assertTrue(IllegalStateAssertion.java:59)
  2. 0
    Update to Grails 3.0.x
  3. 0
    You should define the TestContext class in your classpath
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    You can solve this by using an actual Service instead of an IntentService
  6. 0
    All look like I had something else running on my machine that was interfering with it. Once I rebooted it runs without issue.

    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.lang.IllegalStateException

      Cannot bind to specific port: http://localhost:8080/rest/hello/%7Bname%7D 2016-07-05 11:27:55,321 ERROR [stderr] (main) at org.jboss.gravia.utils.IllegalStateAssertion.assertTrue(IllegalStateAssertion.java:59)

      at org.wildfly.extension.camel.undertow.CamelUndertowHostService$WildFlyUndertowHost.validateEndpointURI()
    2. org.wildfly.extension
      CamelUndertowHostService$WildFlyUndertowHost.validateEndpointURI
      1. org.wildfly.extension.camel.undertow.CamelUndertowHostService$WildFlyUndertowHost.validateEndpointURI(CamelUndertowHostService.java:177)
      1 frame
    3. org.apache.camel
      UndertowConsumer.doStart
      1. org.apache.camel.component.undertow.UndertowConsumer.doStart(UndertowConsumer.java:72)
      1 frame
    4. org.wildfly.extension
      WildFlyUndertowComponent$WildFlyUndertowUndertowConsumer.doStart
      1. org.wildfly.extension.camel.undertow.WildFlyUndertowComponent$WildFlyUndertowUndertowConsumer.doStart(WildFlyUndertowComponent.java:91)
      1 frame
    5. Camel :: Core
      DefaultCamelContext.safelyStartRouteServices
      1. org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
      2. org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:3275)
      3. org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRouteConsumers(DefaultCamelContext.java:3569)
      4. org.apache.camel.impl.DefaultCamelContext.doStartRouteConsumers(DefaultCamelContext.java:3505)
      5. org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3435)
      5 frames