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

NullPointerException on creating Cccc trend graph

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I'm running the latest version of Jenkins on Ubuntu 11.04, cccc gets invoked via shell command:

      #!/bin/sh
      echo Executing CCCC
      cd $WORKSPACE
      find . -type f | grep "/src/asn/" | grep "cpp$" | cccc --lang=c++ --outdir=cccc -

      While getting access to data via the "Cccc Results" link, the Cccc trend graph on the project page does not display any graphics. Manually accessing url ccccResult/graph leads to:

      Status Code: 500

      Exception:
      Stacktrace:
      java.lang.NullPointerException
      at hudson.util.Graph.render(Graph.java:88)
      at hudson.util.Graph.doPng(Graph.java:98)
      at com.thalesgroup.hudson.plugins.cccc.CcccProjectAction.doGraph(CcccProjectAction.java:123)
      at sun.reflect.GeneratedMethodAccessor467.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:104)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
      at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:374)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:234)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:477)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:159)
      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:94)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      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:679)

      I've run at least 3 subsequent successful cccc builds running this config, yet the problem remains.

      config.xml and cccc.xml of last run is attached. Can send all the other cccc/*.xml files on request (not sure if they are needed when parsing cccc.xml).

        Attachments

        1. cccc.xml
          349 kB
        2. config.xml
          3 kB

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: markku
          Path:
          .gitignore
          src/main/java/com/thalesgroup/hudson/plugins/cccc/CcccChartBuilder.java
          http://jenkins-ci.org/commit/cccc-plugin/f5b5a5d618de71a09fe603f59abbaaad7faaec8c
          Log:
          Commented out a block that seems to have no effect and has a typo in reflection code. Issue: https://issues.jenkins-ci.org/browse/JENKINS-10769

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: markku Path: .gitignore src/main/java/com/thalesgroup/hudson/plugins/cccc/CcccChartBuilder.java http://jenkins-ci.org/commit/cccc-plugin/f5b5a5d618de71a09fe603f59abbaaad7faaec8c Log: Commented out a block that seems to have no effect and has a typo in reflection code. Issue: https://issues.jenkins-ci.org/browse/JENKINS-10769
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          .gitignore
          src/main/java/com/thalesgroup/hudson/plugins/cccc/CcccChartBuilder.java
          http://jenkins-ci.org/commit/cccc-plugin/bec07a3f933186044af024b754cbdef9a2057faa
          Log:
          Merge pull request #1 from mlinnosk/master

          https://issues.jenkins-ci.org/browse/JENKINS-10769

          Compare: https://github.com/jenkinsci/cccc-plugin/compare/950f601...bec07a3

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: .gitignore src/main/java/com/thalesgroup/hudson/plugins/cccc/CcccChartBuilder.java http://jenkins-ci.org/commit/cccc-plugin/bec07a3f933186044af024b754cbdef9a2057faa Log: Merge pull request #1 from mlinnosk/master https://issues.jenkins-ci.org/browse/JENKINS-10769 Compare: https://github.com/jenkinsci/cccc-plugin/compare/950f601...bec07a3
          Hide
          gbois Gregory Boissinot added a comment -

          Update status.
          Fix available since version 0.6

          Show
          gbois Gregory Boissinot added a comment - Update status. Fix available since version 0.6

            People

            Assignee:
            gbois Gregory Boissinot
            Reporter:
            sconrad Steffen Conrad
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: