com.mirth.connect.donkey.server.StartException: com.mirth.connect.donkey.server.StartException: Failed to start HTTP Listener

Mirth Project | Nick Rupley | 3 years ago
  1. 0

    {code}[2014-05-28 10:47:33,867] ERROR (com.mirth.connect.server.controllers.DonkeyEngineController:191): Error deploying channel 73cfb309-1e7d-4165-a60c-dbbe7f131816. com.mirth.connect.donkey.server.StartException: com.mirth.connect.donkey.server.StartException: Failed to start HTTP Listener at com.mirth.connect.donkey.server.channel.Channel$StartTask.call(Channel.java:1967) at com.mirth.connect.donkey.server.channel.Channel$StartTask.call(Channel.java:1) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:680)Caused by: com.mirth.connect.donkey.server.StartException: Failed to start HTTP Listener at com.mirth.connect.connectors.http.HttpReceiver.onStart(HttpReceiver.java:116) at com.mirth.connect.donkey.server.channel.SourceConnector.start(SourceConnector.java:86) at com.mirth.connect.donkey.server.channel.Channel$StartTask.call(Channel.java:1944) ... 6 moreCaused by: java.lang.IllegalArgumentException: ends with / at org.eclipse.jetty.server.handler.ContextHandler.setContextPath(ContextHandler.java:1237) at com.mirth.connect.connectors.http.HttpReceiver.onStart(HttpReceiver.java:107) ... 8 more{code}

    Mirth Project | 3 years ago | Nick Rupley
    com.mirth.connect.donkey.server.StartException: com.mirth.connect.donkey.server.StartException: Failed to start HTTP Listener
  2. 0

    Appears that Jetty fails when the context path has a trailing slash. We should check for it and remove it. {code} [2014-04-15 08:55:27,521] ERROR (com.mirth.connect.server.controllers.DonkeyEngineController:191): Error deploying channel 20aae280-4f8f-4904-8d90-48185825bc87. com.mirth.connect.donkey.server.StartException: com.mirth.connect.donkey.server.StartException: Failed to start HTTP Listener at com.mirth.connect.donkey.server.channel.Channel$StartTask.call(Channel.java:1962) at com.mirth.connect.donkey.server.channel.Channel$StartTask.call(Channel.java:1861) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722)Caused by: com.mirth.connect.donkey.server.StartException: Failed to start HTTP Listener at com.mirth.connect.connectors.http.HttpReceiver.onStart(HttpReceiver.java:110) at com.mirth.connect.donkey.server.channel.SourceConnector.start(SourceConnector.java:88) at com.mirth.connect.donkey.server.channel.Channel$StartTask.call(Channel.java:1939) ... 6 moreCaused by: java.lang.IllegalArgumentException: ends with / at org.eclipse.jetty.server.handler.ContextHandler.setContextPath(ContextHandler.java:1237) at com.mirth.connect.connectors.http.HttpReceiver.onStart(HttpReceiver.java:101) ... 8 more {code}

    Mirth Project | 3 years ago | Brent Moen
    com.mirth.connect.donkey.server.StartException: com.mirth.connect.donkey.server.StartException: Failed to start HTTP Listener
  3. 0

    Appears that Jetty fails when the context path has a trailing slash. We should check for it and remove it. {code} [2014-04-15 08:55:27,521] ERROR (com.mirth.connect.server.controllers.DonkeyEngineController:191): Error deploying channel 20aae280-4f8f-4904-8d90-48185825bc87. com.mirth.connect.donkey.server.StartException: com.mirth.connect.donkey.server.StartException: Failed to start HTTP Listener at com.mirth.connect.donkey.server.channel.Channel$StartTask.call(Channel.java:1962) at com.mirth.connect.donkey.server.channel.Channel$StartTask.call(Channel.java:1861) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722)Caused by: com.mirth.connect.donkey.server.StartException: Failed to start HTTP Listener at com.mirth.connect.connectors.http.HttpReceiver.onStart(HttpReceiver.java:110) at com.mirth.connect.donkey.server.channel.SourceConnector.start(SourceConnector.java:88) at com.mirth.connect.donkey.server.channel.Channel$StartTask.call(Channel.java:1939) ... 6 moreCaused by: java.lang.IllegalArgumentException: ends with / at org.eclipse.jetty.server.handler.ContextHandler.setContextPath(ContextHandler.java:1237) at com.mirth.connect.connectors.http.HttpReceiver.onStart(HttpReceiver.java:101) ... 8 more {code}

    Mirth Project | 3 years ago | Brent Moen
    java.lang.IllegalArgumentException: ends with /
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
  6. 0

    It is not possible to configure Webapp-Context property in MANIFEST.MF to access application http://myhost:myport, without application name specified in URL. In case Webapp-Context specified to "/", the next exception occurred: java.lang.IllegalArgumentException: ends with / at org.mortbay.jetty.handler.ContextHandler.setContextPath(ContextHandler.java:912) at org.mortbay.jetty.servlet.Context.<init>(Context.java:124) at org.mortbay.jetty.servlet.Context.<init>(Context.java:72) at org.ops4j.pax.web.service.internal.HttpServiceContext.<init>(HttpServiceContext.java:69) at org.ops4j.pax.web.service.internal.JettyServerWrapper.addContext(JettyServerWrapper.java:93) at org.ops4j.pax.web.service.internal.JettyServerWrapper.getOrCreateContext(JettyServerWrapper.java:79) at org.ops4j.pax.web.service.internal.JettyServerImpl.addServlet(JettyServerImpl.java:116) at org.ops4j.pax.web.service.internal.ServerControllerImpl$Started.addServlet(ServerControllerImpl.java:214) at org.ops4j.pax.web.service.internal.ServerControllerImpl.addServlet(ServerControllerImpl.java:90) at org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:287) at org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:247) ... Possible problem: Wrong contextPath argument provided to constructor of org.mortbay.jetty.servlet.Context from HttpServiceContext constructor (it is "//" instead of "/", because leading slash provided: "/" + contextName).

    JIRA | 8 years ago | Olga Kudryavtseva
    java.lang.IllegalArgumentException: ends with /

    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.IllegalArgumentException

      ends with /

      at org.eclipse.jetty.server.handler.ContextHandler.setContextPath()
    2. Jetty
      ContextHandler.setContextPath
      1. org.eclipse.jetty.server.handler.ContextHandler.setContextPath(ContextHandler.java:1237)
      1 frame
    3. com.mirth.connect
      Channel$StartTask.call
      1. com.mirth.connect.connectors.http.HttpReceiver.onStart(HttpReceiver.java:107)
      2. com.mirth.connect.donkey.server.channel.SourceConnector.start(SourceConnector.java:86)
      3. com.mirth.connect.donkey.server.channel.Channel$StartTask.call(Channel.java:1944)
      4. com.mirth.connect.donkey.server.channel.Channel$StartTask.call(Channel.java:1)
      4 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      5. java.lang.Thread.run(Thread.java:680)
      5 frames