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

NullPointerException when requesting "Open Tasks Trend" image

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Won't Fix
    • tasks-plugin
    • None
    • Hudson 1.359 / Static Analysis Collector Plug-in 1.5 / Static Analysis Utilities 1.8 / Task Scanner Plug-in 4.7

    Description

      I configured one of my job to use the Task Scanner Plugin. It was working fine.
      Today I upgraded Hudson and the plugin to their latest version and I have a issue.

      1) If I create a new job and configure it to use the plugin, it works fine.

      2) For old jobs, the "Open Tasks Trend" image does not work anymore. When I try to load the image I get a java.lang.NullPointerException in hudson.plugins.analysis.graph.CategoryBuildResultGraph.createSeriesPerBuild(CategoryBuildResultGraph.java:154)

      Attachments

        1. data.zip
          8 kB
        2. data2.zip
          76 kB
        3. data3.zip
          5 kB

        Activity

          bcoppens bcoppens added a comment -

          build 50-53

          bcoppens bcoppens added a comment - build 50-53
          drulli Ulli Hafner added a comment -

          Ok, I see now. build.xml #53 has been modified manually:

          <hudson.plugins.tasks.TasksResultAction>
            <owner class="build" reference="../../.."/>
            <healthDescriptor class="hudson.plugins.tasks.TasksHealthDescriptor">
              <priority>LOW</priority>
              <threshold/>
              <newThreshold/>
              <failureThreshold/> 
              <newFailureThreshold/>
              <healthy/>
              <unHealthy/>
              </healthDescriptor>
          </hudson.plugins.tasks.TasksResultAction>
          

          The required section <result class="hudson.plugins.tasks.TasksResult"> has been deleted (resulting in null when deserializing).

          Please also remove the TasksResultAction tags from this (or these builds).

          drulli Ulli Hafner added a comment - Ok, I see now. build.xml #53 has been modified manually: <hudson.plugins.tasks.TasksResultAction> <owner class= "build" reference= "../../.." /> <healthDescriptor class= "hudson.plugins.tasks.TasksHealthDescriptor" > <priority>LOW</priority> <threshold/> <newThreshold/> <failureThreshold/> <newFailureThreshold/> <healthy/> <unHealthy/> </healthDescriptor> </hudson.plugins.tasks.TasksResultAction> The required section <result class="hudson.plugins.tasks.TasksResult"> has been deleted (resulting in null when deserializing). Please also remove the TasksResultAction tags from this (or these builds).

          Code changed in hudson
          User: : drulli
          Path:
          trunk/hudson/plugins/analysis-core/src/main/java/hudson/plugins/analysis/graph/CategoryBuildResultGraph.java
          http://jenkins-ci.org/commit/31488
          Log:
          JENKINS-6613 Removed logging statement.

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : drulli Path: trunk/hudson/plugins/analysis-core/src/main/java/hudson/plugins/analysis/graph/CategoryBuildResultGraph.java http://jenkins-ci.org/commit/31488 Log: JENKINS-6613 Removed logging statement.
          drulli Ulli Hafner added a comment -

          Integrated in Hudson Plug-ins #85

          drulli Ulli Hafner added a comment - Integrated in Hudson Plug-ins #85
          drulli Ulli Hafner added a comment -

          Integrated in Hudson Plug-ins (Compile) #5
          JENKINS-6613 Removed logging statement.

          drulli Ulli Hafner added a comment - Integrated in Hudson Plug-ins (Compile) #5 JENKINS-6613 Removed logging statement.

          People

            drulli Ulli Hafner
            bcoppens bcoppens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: