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

NullPointerException when requesting "Open Tasks Trend" image

    Details

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

      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

          Hide
          bcoppens bcoppens added a comment -

          build 50-53

          Show
          bcoppens bcoppens added a comment - build 50-53
          Hide
          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).

          Show
          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).
          Hide
          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.

          Show
          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.
          Hide
          drulli Ulli Hafner added a comment -

          Integrated in Hudson Plug-ins #85

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

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

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: