java.lang.StringIndexOutOfBoundsException: String index out of range: -1

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

    If you specify multiple parameters with the same key, the HTTP Listener will throw an exception: {code}[2014-05-29 09:24:16,408] ERROR (com.mirth.connect.connectors.http.HttpMessageConverter:85): Error converting HTTP request. java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1954) at com.mirth.connect.connectors.http.HttpMessageConverter.httpRequestToXml(HttpMessageConverter.java:49) at com.mirth.connect.connectors.http.HttpReceiver.processData(HttpReceiver.java:255) at com.mirth.connect.connectors.http.HttpReceiver.access$300(HttpReceiver.java:48) at com.mirth.connect.connectors.http.HttpReceiver$RequestHandler.handle(HttpReceiver.java:144) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1040) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:976) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:363) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483) at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:931) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:992) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72) at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:744){code}

    Mirth Project | 3 years ago | Nick Rupley
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  2. 0

    If you specify multiple parameters with the same key, the HTTP Listener will throw an exception: {code}[2014-05-29 09:24:16,408] ERROR (com.mirth.connect.connectors.http.HttpMessageConverter:85): Error converting HTTP request. java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1954) at com.mirth.connect.connectors.http.HttpMessageConverter.httpRequestToXml(HttpMessageConverter.java:49) at com.mirth.connect.connectors.http.HttpReceiver.processData(HttpReceiver.java:255) at com.mirth.connect.connectors.http.HttpReceiver.access$300(HttpReceiver.java:48) at com.mirth.connect.connectors.http.HttpReceiver$RequestHandler.handle(HttpReceiver.java:144) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1040) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:976) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:363) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483) at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:931) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:992) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72) at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:744){code}

    Mirth Project | 3 years ago | Nick Rupley
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  3. 0

    StringIndexOutOfBoundsException in FrameParser

    GitHub | 2 years ago | ernestojpg
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Package mapping issue

    GitHub | 2 years ago | rahimalizada
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1

  1. richard77 2 times, last 5 days ago
  2. kjhdofjosvs 2 times, last 1 week ago
  3. archenroot 17 times, last 2 weeks ago
  4. Alexandru Popa 2 times, last 4 weeks ago
  5. poroszd 3 times, last 1 month ago
18 more registered users
58 unregistered visitors
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.StringIndexOutOfBoundsException

    String index out of range: -1

    at java.lang.String.substring()
  2. Java RT
    String.substring
    1. java.lang.String.substring(String.java:1954)
    1 frame
  3. com.mirth.connect
    HttpReceiver$RequestHandler.handle
    1. com.mirth.connect.connectors.http.HttpMessageConverter.httpRequestToXml(HttpMessageConverter.java:49)
    2. com.mirth.connect.connectors.http.HttpReceiver.processData(HttpReceiver.java:255)
    3. com.mirth.connect.connectors.http.HttpReceiver.access$300(HttpReceiver.java:48)
    4. com.mirth.connect.connectors.http.HttpReceiver$RequestHandler.handle(HttpReceiver.java:144)
    4 frames
  4. Jetty
    BlockingHttpConnection.handle
    1. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1040)
    2. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:976)
    3. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
    4. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
    5. org.eclipse.jetty.server.Server.handle(Server.java:363)
    6. org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483)
    7. org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
    8. org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:931)
    9. org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:992)
    10. org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856)
    11. org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
    12. org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
    12 frames
  5. GWT dev
    SocketConnector$ConnectorEndPoint.run
    1. org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
    1 frame
  6. Jetty
    QueuedThreadPool$3.run
    1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
    2. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
    2 frames
  7. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:744)
    1 frame