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

The cobertura statistics graphic on a project window isn't rendered

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Component/s: cobertura-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All

      Description

      The cobertura statistics graphic on a project window isn't rendered. When you
      try to load this graphic you get a:

      javax.servlet.ServletException: java.lang.NullPointerException
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:450)
      org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:313)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:438)
      org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:181)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:438)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:356)
      org.kohsuke.stapler.Stapler.service(Stapler.java:116)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:68)
      hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:60)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:52)
      hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:28)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:42)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:44)
      hudson.security.HudsonFilter.doFilter(HudsonFilter.java:110)

      root cause

      java.lang.NullPointerException
      hudson.plugins.cobertura.CoberturaBuildAction.getPreviousResult(CoberturaBuildAction.java:140)
      hudson.plugins.cobertura.CoberturaBuildAction.getPreviousResult(CoberturaBuildAction.java:125)
      hudson.plugins.cobertura.CoberturaBuildAction.doGraph(CoberturaBuildAction.java:218)
      hudson.plugins.cobertura.CoberturaProjectAction.doGraph(CoberturaProjectAction.java:91)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:156)
      org.kohsuke.stapler.Function.bindAndInvoke(Function.java:76)
      org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:73)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:438)
      org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:313)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:438)
      org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:181)
      org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:438)
      org.kohsuke.stapler.Stapler.invoke(Stapler.java:356)
      org.kohsuke.stapler.Stapler.service(Stapler.java:116)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:68)
      hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:60)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:52)
      hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:28)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:42)
      hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:55)
      hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:44)
      hudson.security.HudsonFilter.doFilter(HudsonFilter.java:110)

        Issue Links

          Activity

          Hide
          jiai jiai added a comment -

          Created an attachment (id=521)
          The defect image on the project page

          Show
          jiai jiai added a comment - Created an attachment (id=521) The defect image on the project page
          Hide
          mindless Alan Harder added a comment -

          confirmed.. if for some reason a previous build has no cobertura report then you
          get this error.

          Show
          mindless Alan Harder added a comment - confirmed.. if for some reason a previous build has no cobertura report then you get this error.
          Hide
          mindless Alan Harder added a comment -
              • Issue 2887 has been marked as a duplicate of this issue. ***
          Show
          mindless Alan Harder added a comment - Issue 2887 has been marked as a duplicate of this issue. ***
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : mindless
          Path:
          trunk/hudson/plugins/cobertura/src/main/java/hudson/plugins/cobertura/CoberturaBuildAction.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=14699
          Log:
          [FIXED JENKINS-2851] Avoid NullPointerException in getPreviousResult if some previous
          non-failed build has no cobertura report (aborted build, for example).

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : mindless Path: trunk/hudson/plugins/cobertura/src/main/java/hudson/plugins/cobertura/CoberturaBuildAction.java http://fisheye4.cenqua.com/changelog/hudson/?cs=14699 Log: [FIXED JENKINS-2851] Avoid NullPointerException in getPreviousResult if some previous non-failed build has no cobertura report (aborted build, for example).
          Hide
          mindless Alan Harder added a comment -
              • Issue 3042 has been marked as a duplicate of this issue. ***
          Show
          mindless Alan Harder added a comment - Issue 3042 has been marked as a duplicate of this issue. ***
          Hide
          mindless Alan Harder added a comment -
              • Issue 3301 has been marked as a duplicate of this issue. ***
          Show
          mindless Alan Harder added a comment - Issue 3301 has been marked as a duplicate of this issue. ***
          Hide
          jiai jiai added a comment -

          Sorry, but it isn't fixed, perhaps somewhere in the trunk - but until now there
          was no new release! This bug is really annoying and it mutilates the project page.

          Show
          jiai jiai added a comment - Sorry, but it isn't fixed, perhaps somewhere in the trunk - but until now there was no new release! This bug is really annoying and it mutilates the project page.
          Hide
          mindless Alan Harder added a comment -

          i've asked the plugin maintainer a couple times to put out a release.. sorry it
          hasn't happened yet. for now, please use the snapshot release that is attached
          to issue #2823

          Show
          mindless Alan Harder added a comment - i've asked the plugin maintainer a couple times to put out a release.. sorry it hasn't happened yet. for now, please use the snapshot release that is attached to issue #2823
          Hide
          mindless Alan Harder added a comment -
              • Issue 3413 has been marked as a duplicate of this issue. ***
          Show
          mindless Alan Harder added a comment - Issue 3413 has been marked as a duplicate of this issue. ***
          Hide
          aebbert aebbert added a comment -

          How can this be RESOLVED and FIXED, if there is no released version of the plugin?

          Show
          aebbert aebbert added a comment - How can this be RESOLVED and FIXED, if there is no released version of the plugin?
          Hide
          mindless Alan Harder added a comment -

          everyone please stop reopening this issue. you may email the dev or users alias
          and encourage the plugin maintainer to put out a new release; as I said, I've
          asked twice..

          Show
          mindless Alan Harder added a comment - everyone please stop reopening this issue. you may email the dev or users alias and encourage the plugin maintainer to put out a new release; as I said, I've asked twice..

            People

            • Assignee:
              mindless Alan Harder
              Reporter:
              jiai jiai
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: