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

Cobertura trend graph error (NullPointerException/NPE)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • cobertura-plugin
    • None
    • Platform: Macintosh, OS: Mac OS X

      The trend graph for Cobertura, normally visible on the job front page does not
      show. When I click "View image" (in Firefox 3.1b2) I get:

      Status Code: 500
      Exception:
      Stacktrace:

      java.lang.NullPointerException
      at
      hudson.plugins.cobertura.CoberturaBuildAction.getPreviousResult(CoberturaBuildAction.java:140)
      at
      hudson.plugins.cobertura.CoberturaBuildAction.getPreviousResult(CoberturaBuildAction.java:125)
      at
      hudson.plugins.cobertura.CoberturaBuildAction.doGraph(CoberturaBuildAction.java:218)
      at
      hudson.plugins.cobertura.CoberturaProjectAction.doGraph(CoberturaProjectAction.java:91)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:156)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:76)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:73)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:438)
      at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:313)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:438)
      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:181)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:438)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:356)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:116)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:91)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:83)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:75)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:67)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:133)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
      at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      at java.lang.Thread.run(Thread.java:613)

      Generated by Winstone Servlet Engine v0.9.10 at Sat Feb 14 13:27:24 CET 2009

      This is on Hudson 1.282, configured with just one job.

      Here's some more system information:

      $ uname -a
      Darwin mac-mini-van-ernst-de-haan.local 9.6.0 Darwin Kernel Version 9.6.0: Mon
      Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386 i386

      $ java -version
      java version "1.5.0_16"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
      Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)

      $ ant -version
      Apache Ant version 1.7.1 compiled on June 27 2008

      My browser agent string:
      Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b2)
      Gecko/20081201 Firefox/3.1b2 RPT-HTTPClient/0.3-2

      The job is configured using Subversion. I use current versions: JUnit 4.5 and
      Cobertura 1.9.1.

      If you need more information, let me know.

            stephenconnolly Stephen Connolly
            znerd Ernst de Haan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: