• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • greenballs-plugin
    • None
    • Hudson 1.389, Green balls plugin version 1.8

      We have the Monitoring plugin installed (http://wiki.jenkins-ci.org/display/JENKINS/Monitoring)

      In the errorlist we see a large number of errors for image requests:

      java.lang.IllegalStateException: getWriter() has already been called for this response
      at org.apache.catalina.connector.Response.getOutputStream(Response.java:576)
      at org.apache.catalina.connector.ResponseFacade.getOutputStream(ResponseFacade.java:181)
      at javax.servlet.ServletResponseWrapper.getOutputStream(ServletResponseWrapper.java:102)
      at net.bull.javamelody.CounterResponseStream.<init>(CounterResponseStream.java:39)
      at net.bull.javamelody.CounterServletResponseWrapper.createOutputStream(CounterServletResponseWrapper.java:76)
      at net.bull.javamelody.FilterServletResponseWrapper.getOutputStream(FilterServletResponseWrapper.java:110)
      at javax.servlet.ServletResponseWrapper.getOutputStream(ServletResponseWrapper.java:102)
      at org.kohsuke.stapler.ResponseImpl.getOutputStream(ResponseImpl.java:82)
      at org.kohsuke.stapler.Stapler.serveStaticResource(Stapler.java:405)
      at org.kohsuke.stapler.Stapler.serveStaticResource(Stapler.java:242)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:150)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:151)
      at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:129)
      at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:73)
      at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:46)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
      at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:51) // GREEN BALLS PLUGIN
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      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.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
      at java.lang.Thread.run(Thread.java:619)

          [JENKINS-8364] IllegalStateException on image requests

          asgeirn added a comment -

          Have you tried disabling the plugin to see whether that makes a difference?

          And do you have any details on what URLs these exceptions originate from?

          Because of the way the Green Balls plugin works (must work) it is involved in all HTTP requests, regardless of whether it should be involved or not. For most cases it's just a pass-through call up the servlet filtering chain.

          asgeirn added a comment - Have you tried disabling the plugin to see whether that makes a difference? And do you have any details on what URLs these exceptions originate from? Because of the way the Green Balls plugin works (must work) it is involved in all HTTP requests, regardless of whether it should be involved or not. For most cases it's just a pass-through call up the servlet filtering chain.

          Cees Bos added a comment -

          List of errors for images

          Cees Bos added a comment - List of errors for images

          Cees Bos added a comment -

          I have to reboot Hudson to disable the plugin.
          Currently a lot of jobs are running, I cannot do that now.

          I attached a screenshot a part of the error list for the images.
          Error is only coming for images.
          This morning we installed Green balls and some other updates (also the monitoring plugin) and we upgraded from 1.384 to 1.389.

          Cees Bos added a comment - I have to reboot Hudson to disable the plugin. Currently a lot of jobs are running, I cannot do that now. I attached a screenshot a part of the error list for the images. Error is only coming for images. This morning we installed Green balls and some other updates (also the monitoring plugin) and we upgraded from 1.384 to 1.389.

          asgeirn added a comment -

          Could you please try the attached version of the plugin at your convenience?

          Hopefully it solves this issue.

          asgeirn added a comment - Could you please try the attached version of the plugin at your convenience? Hopefully it solves this issue.

          Cees Bos added a comment -

          Thanks for the quick reply and new greenballs.hpi
          I will update the system tonight with the new plugin to test it. I'll let you know the outcome.

          In the meantime I did a test on a local test setup just started with 'java -jar hudson.war' (winstone server), but that did not give the described errors with the original plugin. So it looks like it has to do with Tomcat (or other application servers).
          Our production setup is using Tomcat to host Hudson.

          Cees Bos added a comment - Thanks for the quick reply and new greenballs.hpi I will update the system tonight with the new plugin to test it. I'll let you know the outcome. In the meantime I did a test on a local test setup just started with 'java -jar hudson.war' (winstone server), but that did not give the described errors with the original plugin. So it looks like it has to do with Tomcat (or other application servers). Our production setup is using Tomcat to host Hudson.

          Cees Bos added a comment -

          I tested the provided .hpi.
          The errors are gone now and the plugin is working fine.

          Cees Bos added a comment - I tested the provided .hpi. The errors are gone now and the plugin is working fine.

          asgeirn added a comment -

          Fixed in 1.9

          asgeirn added a comment - Fixed in 1.9

            asgeirn asgeirn
            cbos Cees Bos
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: