Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-5210

Update center gets FormTooLarge error

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • core
    • None

    Description

      1.338:

      18:10:03.205 ERROR! [SocketListener0-10] org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:593) >11> /hudson/updateCenter/byId/default/postBack:
      java.lang.IllegalStateException: Form too large
              at org.mortbay.http.HttpRequest.extractParameters(HttpRequest.java:877)
              at org.mortbay.http.HttpRequest.getParameter(HttpRequest.java:944)
              at org.mortbay.jetty.servlet.ServletHttpRequest.getParameter(ServletHttpRequest.java:650)
              at javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:157)
              at org.kohsuke.stapler.AnnotationHandler$2.parse(AnnotationHandler.java:66)
              at org.kohsuke.stapler.AnnotationHandler$2.parse(AnnotationHandler.java:59)
              at org.kohsuke.stapler.AnnotationHandler.handle(AnnotationHandler.java:34)
              at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:96)
              at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:54)
              at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:74)
              at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
              at org.kohsuke.stapler.Stapler.invoke(Stapler.java:492)
              at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:180)
              at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
              at org.kohsuke.stapler.Stapler.invoke(Stapler.java:492)
              at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:144)
              at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
              at org.kohsuke.stapler.Stapler.invoke(Stapler.java:492)
              at org.kohsuke.stapler.Stapler.invoke(Stapler.java:408)
              at org.kohsuke.stapler.Stapler.service(Stapler.java:117)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
              at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
              at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
              at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
              at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
              at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
              at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
              at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
              at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
              at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
              at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
              at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
              at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
              at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
              at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
              at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
              at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
              at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
              at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
              at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
              at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
              at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
              at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
              at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
              at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
              at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
              at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
              at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
              at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
              at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
              at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
              at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
              at org.mortbay.http.HttpServer.service(HttpServer.java:909)
              at org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
              at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
              at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
              at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)
              at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
              at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
      

      Attachments

        Activity

          mindless Alan Harder added a comment -

          Fixed by documenting on wiki:
          http://wiki.jenkins-ci.org/display/JENKINS/Jetty
          I don't use Jetty, so please try this out and edit the wiki as needed, thanks.

          mindless Alan Harder added a comment - Fixed by documenting on wiki: http://wiki.jenkins-ci.org/display/JENKINS/Jetty I don't use Jetty, so please try this out and edit the wiki as needed, thanks.
          bimargulies bimargulies added a comment -

          I bailed out of jetty last night, so I can't test it either

          bimargulies bimargulies added a comment - I bailed out of jetty last night, so I can't test it either

          Reposting the update from mindless so that those who are hitting this issue with older version of Hudson can work around it. 1.344 fixed this problem, so the following work around isn't needed anymore.

          Jetty's default configuration has a limitation on POST data that prevents Hudson from reading the Update Center data (available plugins). Jetty gets an error like java.lang.IllegalStateException: Form too large. To resolve this, add something like this to jetty.xml:
          Jetty 6:

          <Call class="java.lang.System" name="setProperty">
            <Arg>org.mortbay.jetty.Request.maxFormContentSize</Arg>
            <Arg>-1</Arg>
          </Call>
          

          Jetty 7:

          <Call class="java.lang.System" name="setProperty">
            <Arg>org.eclipse.jetty.server.Request.maxFormContentSize</Arg>
            <Arg>-1</Arg>
          </Call>
          
          kohsuke Kohsuke Kawaguchi added a comment - Reposting the update from mindless so that those who are hitting this issue with older version of Hudson can work around it. 1.344 fixed this problem, so the following work around isn't needed anymore. — Jetty's default configuration has a limitation on POST data that prevents Hudson from reading the Update Center data (available plugins). Jetty gets an error like java.lang.IllegalStateException: Form too large . To resolve this, add something like this to jetty.xml : Jetty 6: <Call class= "java.lang.System" name= "setProperty" > <Arg> org.mortbay.jetty.Request.maxFormContentSize </Arg> <Arg> -1 </Arg> </Call> Jetty 7: <Call class= "java.lang.System" name= "setProperty" > <Arg> org.eclipse.jetty.server.Request.maxFormContentSize </Arg> <Arg> -1 </Arg> </Call>

          Code changed in hudson
          User: : kohsuke
          Path:
          trunk/hudson/main/core/src/main/java/hudson/model/DownloadService.java
          trunk/hudson/main/core/src/main/java/hudson/model/UpdateSite.java
          trunk/hudson/main/war/resources/scripts/hudson-behavior.js
          trunk/www/changelog.html
          http://jenkins-ci.org/commit/27002
          Log:
          [FIXED JENKINS-5210] fixed this problem in Hudson that doesn't require any configuration change in Jetty.

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: trunk/hudson/main/core/src/main/java/hudson/model/DownloadService.java trunk/hudson/main/core/src/main/java/hudson/model/UpdateSite.java trunk/hudson/main/war/resources/scripts/hudson-behavior.js trunk/www/changelog.html http://jenkins-ci.org/commit/27002 Log: [FIXED JENKINS-5210] fixed this problem in Hudson that doesn't require any configuration change in Jetty.

          People

            mindless Alan Harder
            bimargulies bimargulies
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: