java.lang.ArrayIndexOutOfBoundsException: 200000

JIRA | Gordon Mohr | 10 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    After adopting the supersized mapper 'reduce-pattern' (created from PublicSuffixes), Igor got the followin exception in the web UI: An error occured java.lang.ArrayIndexOutOfBoundsException: 200000 java.lang.ArrayIndexOutOfBoundsException: 200000 at org.mortbay.util.UrlEncoded.decodeTo(UrlEncoded.java:265) at org.mortbay.http.HttpRequest.extractParameters(HttpRequest.java:865) at org.mortbay.http.HttpRequest.getParameter(HttpRequest.java:915) at org.mortbay.jetty.servlet.ServletHttpRequest.getParameter(ServletHttpRequest.java:630) at org.archive.crawler.jspc.admin.jobs.configure_jsp._jspService(Unknown Source) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:342) at org.archive.crawler.admin.ui.RootFilter.doFilter(RootFilter.java:67) at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:789) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511) Igor writes: "I think that we have two problems here: - It seems that (org.mortbay.util.UrlEncoded) decodeTo does not know that is dealing with UTF-8. Therefore, it "blows" its max buffer of 200000. - The value of this reduction-pattern it too big (>200000) and Jetty will truncate it."

    JIRA | 10 years ago | Gordon Mohr
    java.lang.ArrayIndexOutOfBoundsException: 200000
  2. 0

    After adopting the supersized mapper 'reduce-pattern' (created from PublicSuffixes), Igor got the followin exception in the web UI: An error occured java.lang.ArrayIndexOutOfBoundsException: 200000 java.lang.ArrayIndexOutOfBoundsException: 200000 at org.mortbay.util.UrlEncoded.decodeTo(UrlEncoded.java:265) at org.mortbay.http.HttpRequest.extractParameters(HttpRequest.java:865) at org.mortbay.http.HttpRequest.getParameter(HttpRequest.java:915) at org.mortbay.jetty.servlet.ServletHttpRequest.getParameter(ServletHttpRequest.java:630) at org.archive.crawler.jspc.admin.jobs.configure_jsp._jspService(Unknown Source) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:342) at org.archive.crawler.admin.ui.RootFilter.doFilter(RootFilter.java:67) at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:789) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511) Igor writes: "I think that we have two problems here: - It seems that (org.mortbay.util.UrlEncoded) decodeTo does not know that is dealing with UTF-8. Therefore, it "blows" its max buffer of 200000. - The value of this reduction-pattern it too big (>200000) and Jetty will truncate it."

    JIRA | 10 years ago | Gordon Mohr
    java.lang.ArrayIndexOutOfBoundsException: 200000

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      200000

      at org.mortbay.util.UrlEncoded.decodeTo()
    2. Jetty Util
      UrlEncoded.decodeTo
      1. org.mortbay.util.UrlEncoded.decodeTo(UrlEncoded.java:265)
      1 frame
    3. org.mortbay.http
      HttpRequest.getParameter
      1. org.mortbay.http.HttpRequest.extractParameters(HttpRequest.java:865)
      2. org.mortbay.http.HttpRequest.getParameter(HttpRequest.java:915)
      2 frames
    4. Jetty Server
      ServletHttpRequest.getParameter
      1. org.mortbay.jetty.servlet.ServletHttpRequest.getParameter(ServletHttpRequest.java:630)
      1 frame
    5. org.archive.crawler
      configure_jsp._jspService
      1. org.archive.crawler.jspc.admin.jobs.configure_jsp._jspService(Unknown Source)
      1 frame
    6. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
      1 frame
    7. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      1 frame
    8. Jetty Server
      WebApplicationHandler$Chain.doFilter
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
      2. org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:342)
      2 frames
    9. org.archive.crawler
      RootFilter.doFilter
      1. org.archive.crawler.admin.ui.RootFilter.doFilter(RootFilter.java:67)
      1 frame
    10. Jetty Server
      ServletHandler.handle
      1. org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
      2. org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286)
      3. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
      3 frames
    11. org.mortbay.http
      HttpContext.handle
      1. org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
      1 frame
    12. Jetty Server
      WebApplicationContext.handle
      1. org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
      1 frame
    13. org.mortbay.http
      SocketListener.handleConnection
      1. org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
      2. org.mortbay.http.HttpServer.service(HttpServer.java:879)
      3. org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
      4. org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
      5. org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
      6. org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
      6 frames
    14. Jetty Util
      ThreadPool$PoolThread.run
      1. org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)
      2. org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
      2 frames