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

"Response header too large" when notifying master of new git commit

    XMLWordPrintable

Details

    Description

      After notifying a commit via git/notifyCommit this exception appears in the logs

      2017-09-15 07:22:20.265+0000 [id=1986]  INFO    j.p.g.GitSCMSource$ListenerImpl#onNotifyCommit: Triggering the indexing of FOLDER » SUBFOLDER » multibranch-pipeline-job as a result of event from XX.XX.XX.XX ⇒ https:/jenkins:8080/git/notifyCommit
      2017-09-15 07:22:20.269+0000 [id=1986]  WARNING o.e.jetty.util.log.JavaUtilLog#warn: Commit failed
      java.nio.BufferOverflowException
          at java.nio.Buffer.nextPutIndex(Buffer.java:521)
          at java.nio.HeapByteBuffer.put(HeapByteBuffer.java:169)
          at org.eclipse.jetty.http.HttpGenerator.putSanitisedValue(HttpGenerator.java:1066)
          at org.eclipse.jetty.http.HttpGenerator.putTo(HttpGenerator.java:1088)
          at org.eclipse.jetty.http.HttpGenerator.generateHeaders(HttpGenerator.java:705)
          at org.eclipse.jetty.http.HttpGenerator.generateResponse(HttpGenerator.java:387)
      Caused: java.io.IOException: Response header too large
          at org.eclipse.jetty.http.HttpGenerator.generateResponse(HttpGenerator.java:402)
          at org.eclipse.jetty.server.HttpConnection$SendCallback.process(HttpConnection.java:655)
          at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:246)
          at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:208)
          at org.eclipse.jetty.server.HttpConnection.send(HttpConnection.java:471)
          at org.eclipse.jetty.server.HttpChannel.sendResponse(HttpChannel.java:763)
          at org.eclipse.jetty.server.HttpChannel.write(HttpChannel.java:801)
          at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:147)
          at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:140)
          at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:355)
          at java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:167)
          at org.eclipse.jetty.server.Iso88591HttpWriter.write(Iso88591HttpWriter.java:70)
          at org.eclipse.jetty.server.HttpWriter.write(HttpWriter.java:71)
          at java.io.PrintWriter.write(PrintWriter.java:456)
          at java.io.PrintWriter.write(PrintWriter.java:473)
          at java.io.PrintWriter.print(PrintWriter.java:603)
          at java.io.PrintWriter.println(PrintWriter.java:739)
          at hudson.plugins.git.GitStatus$JenkinsAbstractProjectListener$PollingScheduledResponseContributor.writeBody(GitStatus.java:531)
          at hudson.plugins.git.GitStatus$ResponseContributor.writeBody(GitStatus.java:225)
          at hudson.plugins.git.GitStatus$1.generateResponse(GitStatus.java:174)
          at org.kohsuke.stapler.HttpResponseRenderer$Default.handleHttpResponse(HttpResponseRenderer.java:124)
          at org.kohsuke.stapler.HttpResponseRenderer$Default.generateResponse(HttpResponseRenderer.java:69)
          at org.kohsuke.stapler.Function.renderResponse(Function.java:136)
          at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:119)
          at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
          at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
          at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
          at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
          at org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:374)
          at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
          at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
          at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
          at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
          at javax.servlet.http.HttpServlet.service(HttpServlet.jav
         ...
      

      This issue seems to be very similar to JENKINS-38720, reported for the Mercurial plugin.

      I'm raising this for the git plugin.

      Attachments

        Issue Links

          Activity

            People

              dnusbaum Devin Nusbaum
              dariver Darío Villadiego
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: