[JIRA] (JENKINS-60745) NullPointerException from Severity.collectSeveritiesFrom

32 views
Skip to first unread message

arno@90a.nl (JIRA)

unread,
Jan 13, 2020, 3:56:02 AM1/13/20
to jenkinsc...@googlegroups.com
Arno Moonen created an issue
 
Jenkins / Bug JENKINS-60745
NullPointerException from Severity.collectSeveritiesFrom
Issue Type: Bug Bug
Assignee: Ulli Hafner
Components: analysis-core-plugin
Created: 2020-01-13 08:55
Environment: Jenkins 2.204.1
Static Analysis Utilities 1.96
Priority: Minor Minor
Reporter: Arno Moonen

Very often do I see the error below in the logs. I reckon it has something to do with a page being rendered.

Caught exception evaluating: job.buildHealthReports in /. Reason: java.lang.reflect.InvocationTargetException
java.lang.NullPointerException
	at edu.hm.hafner.analysis.Severity.collectSeveritiesFrom(Severity.java:119)
	at io.jenkins.plugins.analysis.core.model.HealthReportBuilder.computeHealth(HealthReportBuilder.java:40)
	at io.jenkins.plugins.analysis.core.model.ResultAction.getBuildHealth(ResultAction.java:190)
	at hudson.model.Job.getBuildHealthReports(Job.java:1210)
	at hudson.model.Job.getBuildHealth(Job.java:1184)
	at com.cloudbees.hudson.plugins.folder.health.FolderHealthMetric.getHealthReport(FolderHealthMetric.java:48)
	at com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric$ReporterImpl.observe(WorstChildHealthMetric.java:86)
	at com.cloudbees.hudson.plugins.folder.AbstractFolder.getBuildHealthReports(AbstractFolder.java:920)
Caused: java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor148.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
...

If there is anyway for me to collect more data needed to resolve this, please let me know.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

ullrich.hafner@gmail.com (JIRA)

unread,
Jan 13, 2020, 4:00:02 AM1/13/20
to jenkinsc...@googlegroups.com
Ulli Hafner updated an issue
Change By: Ulli Hafner
Component/s: warnings-ng-plugin
Component/s: analysis-core-plugin
Environment: Jenkins 2.204.1
Static Analysis Utilities 1.96

ullrich.hafner@gmail.com (JIRA)

unread,
Jan 13, 2020, 4:01:03 AM1/13/20
to jenkinsc...@googlegroups.com
Ulli Hafner commented on Bug JENKINS-60745
 
Re: NullPointerException from Severity.collectSeveritiesFrom

Which version of the warnings-ng and analysis-model plugins are you using?

arno@90a.nl (JIRA)

unread,
Jan 13, 2020, 4:03:02 AM1/13/20
to jenkinsc...@googlegroups.com
Arno Moonen updated an issue
Change By: Arno Moonen
Very often do I see the error below in the logs. I reckon it has something to do with a page being rendered.

{code}

Caught exception evaluating: job.buildHealthReports in /. Reason: java.lang.reflect.InvocationTargetException
java.lang.NullPointerException
at edu.hm.hafner.analysis.Severity.collectSeveritiesFrom(Severity.java:119)
at io.jenkins.plugins.analysis.core.model.HealthReportBuilder.computeHealth(HealthReportBuilder.java:40)
at io.jenkins.plugins.analysis.core.model.ResultAction.getBuildHealth(ResultAction.java:190)
at hudson.model.Job.getBuildHealthReports(Job.java:1210)
at hudson.model.Job.getBuildHealth(Job.java:1184)
at com.cloudbees.hudson.plugins.folder.health.FolderHealthMetric.getHealthReport(FolderHealthMetric.java:48)
at com.cloudbees.hudson.plugins.folder.health.WorstChildHealthMetric$ReporterImpl.observe(WorstChildHealthMetric.java:86)
at com.cloudbees.hudson.plugins.folder.AbstractFolder.getBuildHealthReports(AbstractFolder.java:920)
Caused: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor148.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
...
{code}


If there is anyway for me to collect more data needed to resolve this, please let me know.


It appears that it is related to users visiting the frontpage of Jenkins (All view).

arno@90a.nl (JIRA)

unread,
Jan 13, 2020, 4:05:02 AM1/13/20
to jenkinsc...@googlegroups.com
Arno Moonen commented on Bug JENKINS-60745
 
Re: NullPointerException from Severity.collectSeveritiesFrom

Warnings NG: 7.2.2 (updating to 7.3.0 during my monthly maintenance round this afternoon)
Analysis Model: 7.0.2 (updating to 7.0.4 this afternoon)

ullrich.hafner@gmail.com (JIRA)

unread,
Jan 13, 2020, 4:11:03 AM1/13/20
to jenkinsc...@googlegroups.com
Ulli Hafner commented on Bug JENKINS-60745
 
Re: NullPointerException from Severity.collectSeveritiesFrom

Seems that the serialization is broken. Can you please check the builds folder of the affected job? There is a builds.xml file in the latest build. It should contain something like

    <io.jenkins.plugins.analysis.core.model.ResultAction plugin="warni...@6.0.3-SNAPSHOT">
      <result>
        <id>java</id>
        <size>13</size>
        <newSize>0</newSize>
        <fixedSize>0</fixedSize>
        <sizePerOrigin>
          <entry>
            <string>javadoc-warnings</string>
            <int>0</int>
          </entry>
          <entry>
            <string>java</string>
            <int>13</int>
          </entry>
        </sizePerOrigin>
        <sizePerSeverity>
          <entry>
            <edu.hm.hafner.analysis.Severity plugin="analysis-...@6.0.2">
              <name>NORMAL</name>
            </edu.hm.hafner.analysis.Severity>
            <int>13</int>
          </entry>
        </sizePerSeverity>
        <newSizePerSeverity/>
        <errors/>
        <messages>
          <string>Parsing console log (workspace: &apos;/var/data/workspace/pipeline-analysis-model&apos;)</string>
          <string>Post processing issues on &apos;java-agent&apos; with source code encoding &apos;UTF-8&apos;</string>
          <string>Invoking GitMiner to obtain SCM blame information for affected files</string>
          <string>Resolving absolute file names for all issues in workspace &apos;/var/data/workspace/pipeline-analysis-model&apos;</string>
          <string>-&gt; 0 resolved, 0 unresolved, 8 already resolved</string>
          <string>Resolving module names from module definitions (build.xml, pom.xml, or Manifest.mf files)</string>
          <string>-&gt; resolved module names for 13 issues</string>
          <string>Resolving package names (or namespaces) by parsing the affected files</string>
          <string>-&gt; resolved package names of 8 affected files</string>
          <string>No filter has been set, publishing all 13 issues</string>
          <string>Creating fingerprints for all affected code blocks to track issues over different builds</string>
          <string>-&gt; created fingerprints for 13 issues</string>
          <string>Invoking Git blamer to create author and commit information for 8 affected files</string>
          <string>GIT_COMMIT env = &apos;HEAD&apos;</string>
          <string>Git working tree = &apos;/var/data/workspace/pipeline-analysis-model&apos;</string>
          <string>Git commit ID = &apos;1e664b8be96a2048182a902f0ffaaff78f67257c&apos;</string>
          <string>Job workspace = &apos;/var/data/workspace/pipeline-analysis-model&apos;</string>
          <string>-&gt; blamed authors of issues in 8 files</string>
          <string>Blaming of authors took 2 seconds</string>
          <string>Invoking Git miner to create statistics for all available files</string>
          <string>-&gt; created statistics for 8 files</string>
          <string>Mining of the Git repository took 1 seconds</string>
          <string>Copying affected files to Jenkins&apos; build folder &apos;/var/jenkins_home/jobs/pipeline-analysis-model/builds/66/files-with-issues&apos;</string>
          <string>-&gt; 8 copied, 0 not in workspace, 0 not-found, 0 with I/O error</string>
          <string>Parsing console log (workspace: &apos;/var/data/workspace/pipeline-analysis-model&apos;)</string>
          <string>Using reference build &apos;pipeline-analysis-model #63&apos; to compute new, fixed, and outstanding issues</string>
          <string>Issues delta (vs. reference build): outstanding: 13, new: 0, fixed: 0</string>
          <string>No quality gates have been set - skipping</string>
          <string>Health report is disabled - skipping</string>
        </messages>
        <referenceBuildId>pipeline-analysis-model#63</referenceBuildId>
        <noIssuesSinceBuild>-1</noIssuesSinceBuild>
        <successfulSinceBuild>-1</successfulSinceBuild>
        <qualityGateStatus>INACTIVE</qualityGateStatus>
      </result>
      <healthDescriptor>
        <healthy>0</healthy>
        <unhealthy>0</unhealthy>
        <minimumSeverity plugin="analysis-...@6.0.2">
          <name>LOW</name>
        </minimumSeverity>
      </healthDescriptor>
      <id>java</id>
      <name>Java</name>
      <charset>UTF-8</charset>
    </io.jenkins.plugins.analysis.core.model.ResultAction>
 

How does this section look in your file?

arno@90a.nl (JIRA)

unread,
Jan 13, 2020, 4:20:51 AM1/13/20
to jenkinsc...@googlegroups.com
Arno Moonen commented on Bug JENKINS-60745
 
Re: NullPointerException from Severity.collectSeveritiesFrom

The exception appears in the log when I visit the All view.. is there an easy wasy to pinpoint the job?
I think we have over 800 items in Jenkins CI, so it's gonna be hard checking all of them.

arno@90a.nl (JIRA)

unread,
Jan 13, 2020, 4:37:02 AM1/13/20
to jenkinsc...@googlegroups.com
 
Re: NullPointerException from Severity.collectSeveritiesFrom

If I visit one of the multijobs, I also see this error in the logs. I reckon it is caused by one of the downstream jobs.
Do you want the builds.xml from a build that actually triggers the warning, or a build from a job that has a build that might trigger the warning?

ullrich.hafner@gmail.com (JIRA)

unread,
Jan 13, 2020, 4:47:02 AM1/13/20
to jenkinsc...@googlegroups.com
Ulli Hafner commented on Bug JENKINS-60745
 
Re: NullPointerException from Severity.collectSeveritiesFrom

Actually I am not sure... The broken part is the healthDescriptor section, that seems to be null:

<healthDescriptor>
        <healthy>0</healthy>
        <unhealthy>0</unhealthy>
        <minimumSeverity plugin="analysis-...@6.0.2">
          <name>LOW</name>
        </minimumSeverity>
      </healthDescriptor>

arno@90a.nl (JIRA)

unread,
Jan 13, 2020, 5:26:03 AM1/13/20
to jenkinsc...@googlegroups.com
Arno Moonen commented on Bug JENKINS-60745
 
Re: NullPointerException from Severity.collectSeveritiesFrom

I think these are all the result actions from the job that causes the log item:

I think these are all from the build that causes the log item:
{code:xml}
    <hudson.plugins.dry.DryResultAction plugin="d...@3.0.0">
      <owner class="build" reference="../../.."/>
      <healthDescriptor class="hudson.plugins.dry.DryHealthDescriptor">
        <priority>LOW</priority>
        <healthy></healthy>
        <unHealthy></unHealthy>
        <thresholds plugin="analys...@1.96"/>
      </healthDescriptor>
      <result class="hudson.plugins.dry.DryResult">
        <owner class="build" reference="../../../.."/>
        <modules>
          <string></string>
        </modules>
        <numberOfModules>1</numberOfModules>
        <defaultEncoding></defaultEncoding>
        <numberOfWarnings>25</numberOfWarnings>
        <numberOfNewWarnings>0</numberOfNewWarnings>
        <numberOfFixedWarnings>0</numberOfFixedWarnings>
        <delta>0</delta>
        <lowDelta>0</lowDelta>
        <normalDelta>0</normalDelta>
        <highDelta>0</highDelta>
        <lowWarnings>4</lowWarnings>
        <normalWarnings>19</normalWarnings>
        <highWarnings>2</highWarnings>
        <zeroWarningsSinceBuild>0</zeroWarningsSinceBuild>
        <zeroWarningsSinceDate>0</zeroWarningsSinceDate>
        <zeroWarningsHighScore>438813438</zeroWarningsHighScore>
        <isZeroWarningsHighscore>false</isZeroWarningsHighscore>
        <highScoreGap>0</highScoreGap>
        <errors/>
        <pluginResult>SUCCESS</pluginResult>
        <successfulSinceBuild>0</successfulSinceBuild>
        <successfulSinceDate>0</successfulSinceDate>
        <successfulHighscore>0</successfulHighscore>
        <isSuccessfulHighscore>false</isSuccessfulHighscore>
        <successfulHighScoreGap>0</successfulHighScoreGap>
        <isSuccessfulStateTouched>false</isSuccessfulStateTouched>
        <referenceBuild>139</referenceBuild>
        <totalNumberOfDuplicatedLines>479</totalNumberOfDuplicatedLines>
      </result>
    </hudson.plugins.dry.DryResultAction>
    <hudson.plugins.warnings.WarningsResultAction plugin="warn...@5.0.1">
      <owner class="build" reference="../../.."/>
      <healthDescriptor class="hudson.plugins.warnings.WarningsHealthDescriptor">
        <priority>LOW</priority>
        <healthy></healthy>
        <unHealthy></unHealthy>
        <thresholds plugin="analys...@1.96">
          <failedNewAll>0</failedNewAll>
        </thresholds>
        <name>
          <holder>
            <owner>hudson.plugins.warnings.parser.Messages</owner>
          </holder>
          <key>Warnings.NotLocalizedName</key>
          <args>
            <string>Lizard</string>
          </args>
        </name>
      </healthDescriptor>
      <result class="hudson.plugins.warnings.WarningsResult">
        <owner class="build" reference="../../../.."/>
        <modules>
          <string></string>
        </modules>
        <numberOfModules>1</numberOfModules>
        <defaultEncoding></defaultEncoding>
        <numberOfWarnings>0</numberOfWarnings>
        <numberOfNewWarnings>0</numberOfNewWarnings>
        <numberOfFixedWarnings>0</numberOfFixedWarnings>
        <delta>0</delta>
        <lowDelta>0</lowDelta>
        <normalDelta>0</normalDelta>
        <highDelta>0</highDelta>
        <lowWarnings>0</lowWarnings>
        <normalWarnings>0</normalWarnings>
        <highWarnings>0</highWarnings>
        <zeroWarningsSinceBuild>1</zeroWarningsSinceBuild>
        <zeroWarningsSinceDate>1571650255744</zeroWarningsSinceDate>
        <zeroWarningsHighScore>7005141595</zeroWarningsHighScore>
        <isZeroWarningsHighscore>true</isZeroWarningsHighscore>
        <highScoreGap>0</highScoreGap>
        <errors/>
        <pluginResult>SUCCESS</pluginResult>
        <successfulSinceBuild>0</successfulSinceBuild>
        <successfulSinceDate>0</successfulSinceDate>
        <successfulHighscore>0</successfulHighscore>
        <isSuccessfulHighscore>false</isSuccessfulHighscore>
        <successfulHighScoreGap>0</successfulHighScoreGap>
        <isSuccessfulStateTouched>false</isSuccessfulStateTouched>
        <referenceBuild>139</referenceBuild>
        <group>Lizard</group>
      </result>
      <parserName>Lizard</parserName>
    </hudson.plugins.warnings.WarningsResultAction>
    <hudson.plugins.warnings.WarningsResultAction plugin="warn...@5.0.1">
      <owner class="build" reference="../../.."/>
      <healthDescriptor class="hudson.plugins.warnings.WarningsHealthDescriptor">
        <priority>LOW</priority>
        <healthy></healthy>
        <unHealthy></unHealthy>
        <thresholds reference="../../../hudson.plugins.warnings.WarningsResultAction/healthDescriptor/thresholds"/>
        <name>
          <holder reference="../../../../hudson.plugins.warnings.WarningsResultAction/healthDescriptor/name/holder"/>
          <key>Warnings.NotLocalizedName</key>
          <args>
            <string>HCCP Proddef Check</string>
          </args>
        </name>
      </healthDescriptor>
      <result class="hudson.plugins.warnings.WarningsResult">
        <owner class="build" reference="../../../.."/>
        <modules>
          <string></string>
        </modules>
        <numberOfModules>1</numberOfModules>
        <defaultEncoding></defaultEncoding>
        <numberOfWarnings>0</numberOfWarnings>
        <numberOfNewWarnings>0</numberOfNewWarnings>
        <numberOfFixedWarnings>0</numberOfFixedWarnings>
        <delta>0</delta>
        <lowDelta>0</lowDelta>
        <normalDelta>0</normalDelta>
        <highDelta>0</highDelta>
        <lowWarnings>0</lowWarnings>
        <normalWarnings>0</normalWarnings>
        <highWarnings>0</highWarnings>
        <zeroWarningsSinceBuild>1</zeroWarningsSinceBuild>
        <zeroWarningsSinceDate>1571650255744</zeroWarningsSinceDate>
        <zeroWarningsHighScore>7005141595</zeroWarningsHighScore>
        <isZeroWarningsHighscore>true</isZeroWarningsHighscore>
        <highScoreGap>0</highScoreGap>
        <errors/>
        <pluginResult>SUCCESS</pluginResult>
        <successfulSinceBuild>0</successfulSinceBuild>
        <successfulSinceDate>0</successfulSinceDate>
        <successfulHighscore>0</successfulHighscore>
        <isSuccessfulHighscore>false</isSuccessfulHighscore>
        <successfulHighScoreGap>0</successfulHighScoreGap>
        <isSuccessfulStateTouched>false</isSuccessfulStateTouched>
        <referenceBuild>139</referenceBuild>
        <group>HCCP Proddef Check</group>
      </result>
      <parserName>HCCP Proddef Check</parserName>
    </hudson.plugins.warnings.WarningsResultAction>
    <hudson.plugins.warnings.WarningsResultAction plugin="warn...@5.0.1">
      <owner class="build" reference="../../.."/>
      <healthDescriptor class="hudson.plugins.warnings.WarningsHealthDescriptor">
        <priority>LOW</priority>
        <healthy></healthy>
        <unHealthy></unHealthy>
        <thresholds reference="../../../hudson.plugins.warnings.WarningsResultAction/healthDescriptor/thresholds"/>
        <name>
          <holder reference="../../../../hudson.plugins.warnings.WarningsResultAction/healthDescriptor/name/holder"/>
          <key>Warnings.PCLint.ParserName</key>
          <args/>
        </name>
      </healthDescriptor>
      <result class="hudson.plugins.warnings.WarningsResult">
        <owner class="build" reference="../../../.."/>
        <modules/>
        <numberOfModules>0</numberOfModules>
        <defaultEncoding></defaultEncoding>
        <numberOfWarnings>11</numberOfWarnings>
        <numberOfNewWarnings>0</numberOfNewWarnings>
        <numberOfFixedWarnings>0</numberOfFixedWarnings>
        <delta>0</delta>
        <lowDelta>0</lowDelta>
        <normalDelta>0</normalDelta>
        <highDelta>0</highDelta>
        <lowWarnings>9</lowWarnings>
        <normalWarnings>2</normalWarnings>
        <highWarnings>0</highWarnings>
        <zeroWarningsSinceBuild>0</zeroWarningsSinceBuild>
        <zeroWarningsSinceDate>0</zeroWarningsSinceDate>
        <zeroWarningsHighScore>0</zeroWarningsHighScore>
        <isZeroWarningsHighscore>false</isZeroWarningsHighscore>
        <highScoreGap>0</highScoreGap>
        <errors/>
        <pluginResult>SUCCESS</pluginResult>
        <successfulSinceBuild>0</successfulSinceBuild>
        <successfulSinceDate>0</successfulSinceDate>
        <successfulHighscore>0</successfulHighscore>
        <isSuccessfulHighscore>false</isSuccessfulHighscore>
        <successfulHighScoreGap>0</successfulHighScoreGap>
        <isSuccessfulStateTouched>false</isSuccessfulStateTouched>
        <referenceBuild>139</referenceBuild>
        <group>PC-Lint</group>
      </result>
      <parserName>PC-Lint</parserName>
    </hudson.plugins.warnings.WarningsResultAction>
    <hudson.plugins.warnings.AggregatedWarningsResultAction plugin="warn...@5.0.1">
      <owner class="build" reference="../../.."/>
      <healthDescriptor class="hudson.plugins.analysis.core.NullHealthDescriptor" plugin="analys...@1.96">
        <priority>LOW</priority>
        <healthy></healthy>
        <unHealthy></unHealthy>
        <thresholds>
          <unstableTotalAll></unstableTotalAll>
          <unstableTotalHigh></unstableTotalHigh>
          <unstableTotalNormal></unstableTotalNormal>
          <unstableTotalLow></unstableTotalLow>
          <unstableNewAll></unstableNewAll>
          <unstableNewHigh></unstableNewHigh>
          <unstableNewNormal></unstableNewNormal>
          <unstableNewLow></unstableNewLow>
          <failedTotalAll></failedTotalAll>
          <failedTotalHigh></failedTotalHigh>
          <failedTotalNormal></failedTotalNormal>
          <failedTotalLow></failedTotalLow>
          <failedNewAll></failedNewAll>
          <failedNewHigh></failedNewHigh>
          <failedNewNormal></failedNewNormal>
          <failedNewLow></failedNewLow>
        </thresholds>
      </healthDescriptor>
      <result class="hudson.plugins.warnings.AggregatedWarningsResult">
        <owner class="build" reference="../../../.."/>
        <modules>
          <string></string>
        </modules>
        <numberOfModules>1</numberOfModules>
        <defaultEncoding></defaultEncoding>
        <numberOfWarnings>11</numberOfWarnings>
        <numberOfNewWarnings>0</numberOfNewWarnings>
        <numberOfFixedWarnings>0</numberOfFixedWarnings>
        <delta>0</delta>
        <lowDelta>0</lowDelta>
        <normalDelta>0</normalDelta>
        <highDelta>0</highDelta>
        <lowWarnings>9</lowWarnings>
        <normalWarnings>2</normalWarnings>
        <highWarnings>0</highWarnings>
        <zeroWarningsSinceBuild>0</zeroWarningsSinceBuild>
        <zeroWarningsSinceDate>0</zeroWarningsSinceDate>
        <zeroWarningsHighScore>0</zeroWarningsHighScore>
        <isZeroWarningsHighscore>false</isZeroWarningsHighscore>
        <highScoreGap>0</highScoreGap>
        <errors/>
        <pluginResult>SUCCESS</pluginResult>
        <successfulSinceBuild>107</successfulSinceBuild>
        <successfulSinceDate>1575902973897</successfulSinceDate>
        <successfulHighscore>2752423442</successfulHighscore>
        <isSuccessfulHighscore>true</isSuccessfulHighscore>
        <successfulHighScoreGap>0</successfulHighScoreGap>
        <isSuccessfulStateTouched>true</isSuccessfulStateTouched>
        <referenceBuild>139</referenceBuild>
        <reason>no threshold has been exceeded</reason>
      </result>
    </hudson.plugins.warnings.AggregatedWarningsResultAction>
    <io.jenkins.plugins.analysis.core.model.ResultAction plugin="warni...@7.2.2">
      <result>
        <id>hccp-proddef</id>
        <totals>
          <totalErrorSize>0</totalErrorSize>
          <totalHighSize>0</totalHighSize>
          <totalNormalSize>0</totalNormalSize>
          <totalLowSize>0</totalLowSize>
          <newErrorSize>0</newErrorSize>
          <newHighSize>0</newHighSize>
          <newNormalSize>0</newNormalSize>
          <newLowSize>0</newLowSize>
          <deltaErrorSize>0</deltaErrorSize>
          <deltaHighSize>0</deltaHighSize>
          <deltaNormalSize>0</deltaNormalSize>
          <deltaLowSize>0</deltaLowSize>
          <fixedSize>0</fixedSize>
          <totalSizeBySeverity>
            <entry>
              <edu.hm.hafner.analysis.Severity plugin="analysis-...@7.0.2">
                <name>HIGH</name>
              </edu.hm.hafner.analysis.Severity>
              <int>0</int>
            </entry>
            <entry>
              <edu.hm.hafner.analysis.Severity plugin="analysis-...@7.0.2">
                <name>LOW</name>
              </edu.hm.hafner.analysis.Severity>
              <int>0</int>
            </entry>
            <entry>
              <edu.hm.hafner.analysis.Severity plugin="analysis-...@7.0.2">
                <name>ERROR</name>
              </edu.hm.hafner.analysis.Severity>
              <int>0</int>
            </entry>
            <entry>
              <edu.hm.hafner.analysis.Severity plugin="analysis-...@7.0.2">
                <name>NORMAL</name>
              </edu.hm.hafner.analysis.Severity>
              <int>0</int>
            </entry>
          </totalSizeBySeverity>
          <newSizeBySeverity>
            <entry>
              <edu.hm.hafner.analysis.Severity reference="../../../totalSizeBySeverity/entry/edu.hm.hafner.analysis.Severity"/>
              <int>0</int>
            </entry>
            <entry>
              <edu.hm.hafner.analysis.Severity reference="../../../totalSizeBySeverity/entry[2]/edu.hm.hafner.analysis.Severity"/>
              <int>0</int>
            </entry>
            <entry>
              <edu.hm.hafner.analysis.Severity reference="../../../totalSizeBySeverity/entry[3]/edu.hm.hafner.analysis.Severity"/>
              <int>0</int>
            </entry>
            <entry>
              <edu.hm.hafner.analysis.Severity reference="../../../totalSizeBySeverity/entry[4]/edu.hm.hafner.analysis.Severity"/>
              <int>0</int>
            </entry>
          </newSizeBySeverity>
        </totals>
        <sizePerOrigin>
          <entry>
            <string>hccp-proddef</string>
            <int>0</int>
          </entry>
        </sizePerOrigin>
        <errors/>
        <messages>
          <string>Searching for all files in &apos;D:\removed\path\from\log&apos; that match the pattern &apos;reports/analysis/cf*.txt&apos;</string>
          <string>-&gt; found 2 files</string>
          <string>Successfully parsed file D:\removed\path\from\log\reports\analysis\cfdst.txt</string>
          <string>-&gt; found 0 issues (skipped 0 duplicates)</string>
          <string>Successfully parsed file D:\removed\path\from\log\reports\analysis\cflv.txt</string>
          <string>-&gt; found 0 issues (skipped 0 duplicates)</string>
          <string>Using reference build &apos;Product/Steps/RemovedJobName/1_sca #139&apos; to compute new, fixed, and outstanding issues</string>
          <string>Issues delta (vs. reference build): outstanding: 0, new: 0, fixed: 0</string>
          <string>No quality gates have been set - skipping</string>
          <string>Health report is disabled - skipping</string>
        </messages>
        <referenceBuildId>Product/Steps/RemovedJobName/1_sca#139</referenceBuildId>
        <noIssuesSinceBuild>86</noIssuesSinceBuild>
        <successfulSinceBuild>-1</successfulSinceBuild>
        <qualityGateStatus>INACTIVE</qualityGateStatus>
        <sizePerSeverity/>
        <newSizePerSeverity/>
      </result>
      <healthDescriptor>
        <healthy>0</healthy>
        <unhealthy>0</unhealthy>
      </healthDescriptor>
      <id>hccp-proddef</id>
      <name></name>
      <charset>windows-1252</charset>
      <trendChartType>NONE</trendChartType>
    </io.jenkins.plugins.analysis.core.model.ResultAction>
    <io.jenkins.plugins.analysis.core.model.ResultAction plugin="warni...@7.2.2">
      <result>
        <id>lizard</id>
        <totals>
          <totalErrorSize>0</totalErrorSize>
          <totalHighSize>0</totalHighSize>
          <totalNormalSize>1</totalNormalSize>
          <totalLowSize>4</totalLowSize>
          <newErrorSize>0</newErrorSize>
          <newHighSize>0</newHighSize>
          <newNormalSize>0</newNormalSize>
          <newLowSize>0</newLowSize>
          <deltaErrorSize>0</deltaErrorSize>
          <deltaHighSize>0</deltaHighSize>
          <deltaNormalSize>0</deltaNormalSize>
          <deltaLowSize>0</deltaLowSize>
          <fixedSize>0</fixedSize>
          <totalSizeBySeverity>
            <entry>
              <edu.hm.hafner.analysis.Severity reference="../../../../../../io.jenkins.plugins.analysis.core.model.ResultAction/result/totals/totalSizeBySeverity/entry/edu.hm.hafner.analysis.Severity"/>
              <int>0</int>
            </entry>
            <entry>
              <edu.hm.hafner.analysis.Severity reference="../../../../../../io.jenkins.plugins.analysis.core.model.ResultAction/result/totals/totalSizeBySeverity/entry[2]/edu.hm.hafner.analysis.Severity"/>
              <int>4</int>
            </entry>
            <entry>
              <edu.hm.hafner.analysis.Severity reference="../../../../../../io.jenkins.plugins.analysis.core.model.ResultAction/result/totals/totalSizeBySeverity/entry[3]/edu.hm.hafner.analysis.Severity"/>
              <int>0</int>
            </entry>
            <entry>
              <edu.hm.hafner.analysis.Severity reference="../../../../../../io.jenkins.plugins.analysis.core.model.ResultAction/result/totals/totalSizeBySeverity/entry[4]/edu.hm.hafner.analysis.Severity"/>
              <int>1</int>
            </entry>
          </totalSizeBySeverity>
          <newSizeBySeverity>
            <entry>
              <edu.hm.hafner.analysis.Severity reference="../../../../../../io.jenkins.plugins.analysis.core.model.ResultAction/result/totals/totalSizeBySeverity/entry/edu.hm.hafner.analysis.Severity"/>
              <int>0</int>
            </entry>
            <entry>
              <edu.hm.hafner.analysis.Severity reference="../../../../../../io.jenkins.plugins.analysis.core.model.ResultAction/result/totals/totalSizeBySeverity/entry[2]/edu.hm.hafner.analysis.Severity"/>
              <int>0</int>
            </entry>
            <entry>
              <edu.hm.hafner.analysis.Severity reference="../../../../../../io.jenkins.plugins.analysis.core.model.ResultAction/result/totals/totalSizeBySeverity/entry[3]/edu.hm.hafner.analysis.Severity"/>
              <int>0</int>
            </entry>
            <entry>
              <edu.hm.hafner.analysis.Severity reference="../../../../../../io.jenkins.plugins.analysis.core.model.ResultAction/result/totals/totalSizeBySeverity/entry[4]/edu.hm.hafner.analysis.Severity"/>
              <int>0</int>
            </entry>
          </newSizeBySeverity>
        </totals>
        <sizePerOrigin>
          <entry>
            <string>lizard</string>
            <int>5</int>
          </entry>
        </sizePerOrigin>
        <errors/>
        <messages>
          <string>Searching for all files in &apos;D:\removed\path\from\log&apos; that match the pattern &apos;reports/analysis/lizard.txt&apos;</string>
          <string>-&gt; found 1 file</string>
          <string>Successfully parsed file D:\removed\path\from\log\reports\analysis\lizard.txt</string>
          <string>-&gt; found 5 issues (skipped 0 duplicates)</string>
          <string>Post processing issues on &apos;nl15jsw1&apos; with source code encoding &apos;windows-1252&apos;</string>
          <string>Skipping SCM blames as requested</string>
          <string>Resolving absolute file names for all issues in source directories &apos;[D:\removed\path\from\log]&apos;</string>
          <string>-&gt; 0 resolved, 0 unresolved, 4 already resolved</string>
          <string>Resolving module names from module definitions (build.xml, pom.xml, or Manifest.mf files)</string>
          <string>-&gt; all issues already have a valid module name</string>
          <string>Resolving package names (or namespaces) by parsing the affected files</string>
          <string>-&gt; resolved package names of 4 affected files</string>
          <string>No filter has been set, publishing all 5 issues</string>
          <string>Creating fingerprints for all affected code blocks to track issues over different builds</string>
          <string>-&gt; created fingerprints for 0 issues</string>
          <string>Copying affected files to Jenkins&apos; build folder &apos;C:\workspace\Jenkins\jobs\Products\jobs\Steps\jobs\RemovedJobName\jobs\1_sca\builds\140\files-with-issues&apos;</string>
          <string>-&gt; 4 copied, 0 not in workspace, 0 not-found, 0 with I/O error</string>
          <string>Using reference build &apos;Product/Steps/RemovedJobName/1_sca #139&apos; to compute new, fixed, and outstanding issues</string>
          <string>Issues delta (vs. reference build): outstanding: 5, new: 0, fixed: 0</string>
          <string>No quality gates have been set - skipping</string>
          <string>Health report is disabled - skipping</string>
        </messages>
        <referenceBuildId>Product/Steps/RemovedJobName/1_sca#139</referenceBuildId>
        <noIssuesSinceBuild>-1</noIssuesSinceBuild>
        <successfulSinceBuild>-1</successfulSinceBuild>
        <qualityGateStatus>INACTIVE</qualityGateStatus>
        <sizePerSeverity/>
        <newSizePerSeverity/>
      </result>
      <healthDescriptor>
        <healthy>0</healthy>
        <unhealthy>0</unhealthy>
      </healthDescriptor>
      <id>lizard</id>
      <name></name>
      <charset>windows-1252</charset>
      <trendChartType>NONE</trendChartType>
    </io.jenkins.plugins.analysis.core.model.ResultAction>
    <io.jenkins.plugins.analysis.core.model.ResultAction plugin="warni...@7.2.2">
      <result>
        <id>pclint</id>
        <totals>
          <totalErrorSize>0</totalErrorSize>
          <totalHighSize>0</totalHighSize>
          <totalNormalSize>2</totalNormalSize>
          <totalLowSize>9</totalLowSize>
          <newErrorSize>0</newErrorSize>
          <newHighSize>0</newHighSize>
          <newNormalSize>0</newNormalSize>
          <newLowSize>0</newLowSize>
          <deltaErrorSize>0</deltaErrorSize>
          <deltaHighSize>0</deltaHighSize>
          <deltaNormalSize>0</deltaNormalSize>
          <deltaLowSize>0</deltaLowSize>
          <fixedSize>0</fixedSize>
          <totalSizeBySeverity>
            <entry>
              <edu.hm.hafner.analysis.Severity reference="../../../../../../io.jenkins.plugins.analysis.core.model.ResultAction/result/totals/totalSizeBySeverity/entry/edu.hm.hafner.analysis.Severity"/>
              <int>0</int>
            </entry>
            <entry>
              <edu.hm.hafner.analysis.Severity reference="../../../../../../io.jenkins.plugins.analysis.core.model.ResultAction/result/totals/totalSizeBySeverity/entry[2]/edu.hm.hafner.analysis.Severity"/>
              <int>9</int>
            </entry>
            <entry>
              <edu.hm.hafner.analysis.Severity reference="../../../../../../io.jenkins.plugins.analysis.core.model.ResultAction/result/totals/totalSizeBySeverity/entry[3]/edu.hm.hafner.analysis.Severity"/>
              <int>0</int>
            </entry>
            <entry>
              <edu.hm.hafner.analysis.Severity reference="../../../../../../io.jenkins.plugins.analysis.core.model.ResultAction/result/totals/totalSizeBySeverity/entry[4]/edu.hm.hafner.analysis.Severity"/>
              <int>2</int>
            </entry>
          </totalSizeBySeverity>
          <newSizeBySeverity>
            <entry>
              <edu.hm.hafner.analysis.Severity reference="../../../../../../io.jenkins.plugins.analysis.core.model.ResultAction/result/totals/totalSizeBySeverity/entry/edu.hm.hafner.analysis.Severity"/>
              <int>0</int>
            </entry>
            <entry>
              <edu.hm.hafner.analysis.Severity reference="../../../../../../io.jenkins.plugins.analysis.core.model.ResultAction/result/totals/totalSizeBySeverity/entry[2]/edu.hm.hafner.analysis.Severity"/>
              <int>0</int>
            </entry>
            <entry>
              <edu.hm.hafner.analysis.Severity reference="../../../../../../io.jenkins.plugins.analysis.core.model.ResultAction/result/totals/totalSizeBySeverity/entry[3]/edu.hm.hafner.analysis.Severity"/>
              <int>0</int>
            </entry>
            <entry>
              <edu.hm.hafner.analysis.Severity reference="../../../../../../io.jenkins.plugins.analysis.core.model.ResultAction/result/totals/totalSizeBySeverity/entry[4]/edu.hm.hafner.analysis.Severity"/>
              <int>0</int>
            </entry>
          </newSizeBySeverity>
        </totals>
        <sizePerOrigin>
          <entry>
            <string>pclint</string>
            <int>11</int>
          </entry>
        </sizePerOrigin>
        <errors>
          <string>Can&apos;t resolve absolute paths for some files:</string>
          <string>- nvmConfiguration</string>
          <string>Can&apos;t create fingerprints for some files:</string>
          <string>- &apos;nvmConfiguration&apos;, IO exception has been thrown: java.nio.file.NoSuchFileException: nvmConfiguration</string>
        </errors>
        <messages>
          <string>Searching for all files in &apos;D:\removed\path\from\log&apos; that match the pattern &apos;reports/analysis/lint.txt&apos;</string>
          <string>-&gt; found 1 file</string>
          <string>Successfully parsed file D:\removed\path\from\log\reports\analysis\lint.txt</string>
          <string>-&gt; found 11 issues (skipped 0 duplicates)</string>
          <string>Post processing issues on &apos;nl15jsw1&apos; with source code encoding &apos;windows-1252&apos;</string>
          <string>Skipping SCM blames as requested</string>
          <string>Resolving absolute file names for all issues in source directories &apos;[D:\removed\path\from\log]&apos;</string>
          <string>-&gt; 0 resolved, 1 unresolved, 6 already resolved</string>
          <string>Resolving module names from module definitions (build.xml, pom.xml, or Manifest.mf files)</string>
          <string>-&gt; resolved module names for 11 issues</string>
          <string>Resolving package names (or namespaces) by parsing the affected files</string>
          <string>-&gt; resolved package names of 7 affected files</string>
          <string>No filter has been set, publishing all 11 issues</string>
          <string>Creating fingerprints for all affected code blocks to track issues over different builds</string>
          <string>-&gt; created fingerprints for 10 issues</string>
          <string>Copying affected files to Jenkins&apos; build folder &apos;C:\workspace\Jenkins\jobs\Products\jobs\Steps\jobs\RemovedJobName\jobs\1_sca\builds\140\files-with-issues&apos;</string>
          <string>-&gt; 6 copied, 0 not in workspace, 1 not-found, 0 with I/O error</string>
          <string>Using reference build &apos;Product/Steps/RemovedJobName/1_sca #139&apos; to compute new, fixed, and outstanding issues</string>
          <string>Issues delta (vs. reference build): outstanding: 11, new: 0, fixed: 0</string>
          <string>No quality gates have been set - skipping</string>
          <string>Health report is disabled - skipping</string>
        </messages>
        <referenceBuildId>Product/Steps/RemovedJobName/1_sca#139</referenceBuildId>
        <noIssuesSinceBuild>-1</noIssuesSinceBuild>
        <successfulSinceBuild>-1</successfulSinceBuild>
        <qualityGateStatus>INACTIVE</qualityGateStatus>
        <sizePerSeverity/>
        <newSizePerSeverity/>
      </result>
      <healthDescriptor>
        <healthy>0</healthy>
        <unhealthy>0</unhealthy>
      </healthDescriptor>
      <id>pclint</id>
      <name></name>
      <charset>windows-1252</charset>
      <trendChartType>NONE</trendChartType>
    </io.jenkins.plugins.analysis.core.model.ResultAction>

arno@90a.nl (JIRA)

unread,
Jan 13, 2020, 5:26:03 AM1/13/20
to jenkinsc...@googlegroups.com
I think these are all the result actions from the job that causes the log item:
{code:xml}
{code}

ullrich.hafner@gmail.com (JIRA)

unread,
Jan 13, 2020, 10:46:02 AM1/13/20
to jenkinsc...@googlegroups.com
Ulli Hafner edited a comment on Bug JENKINS-60745
 
Re: NullPointerException from Severity.collectSeveritiesFrom
Seems that the health descriptor section {{<minimumSeverity}} is missing. Did you edit these files manually? Do your other builds also have a missing  {{<minimumSeverity}} section? Or is this just missing for some specific builds.

ullrich.hafner@gmail.com (JIRA)

unread,
Jan 13, 2020, 10:46:03 AM1/13/20
to jenkinsc...@googlegroups.com
Ulli Hafner commented on Bug JENKINS-60745
 
Re: NullPointerException from Severity.collectSeveritiesFrom

Seems that the health descriptor section is missing. Did you edit these files manually? Do your other builds also have a missing <minimumSeverity section? Or is this just missing for some specific builds.

ullrich.hafner@gmail.com (JIRA)

unread,
Jan 13, 2020, 10:47:01 AM1/13/20
to jenkinsc...@googlegroups.com
Ulli Hafner edited a comment on Bug JENKINS-60745
 
Re: NullPointerException from Severity.collectSeveritiesFrom
Seems that the health descriptor section {{<minimumSeverity ... }}  is missing. Did you edit these files manually? Do your other builds also have a missing  {{<minimumSeverity ... }} section? Or is this just missing for some specific builds.

arno@90a.nl (JIRA)

unread,
Jan 13, 2020, 10:54:02 AM1/13/20
to jenkinsc...@googlegroups.com
Arno Moonen commented on Bug JENKINS-60745
 
Re: NullPointerException from Severity.collectSeveritiesFrom

These jobs are generated using XML manipulation in Job DSL (so we can also "compile" the DSL without a Jenkins CI environment).
I might have missed these XML properties. I'll have a look at the Job DSL tomorrow.

arno@90a.nl (JIRA)

unread,
Jan 14, 2020, 3:41:04 AM1/14/20
to jenkinsc...@googlegroups.com
Arno Moonen closed an issue as Not A Defect
Change By: Arno Moonen
Status: Open Closed
Assignee: Ulli Hafner
Resolution: Not A Defect

arno@90a.nl (JIRA)

unread,
Jan 14, 2020, 3:41:04 AM1/14/20
to jenkinsc...@googlegroups.com
 
Re: NullPointerException from Severity.collectSeveritiesFrom

It was indeed missing in the Job DSL.
I've also updated the plugins and I'm no longer seeing the exceptions.
Thanks for the pointers, Ulli Hafner!

Closing this issue, as this is clearly a mistake on our end.

Reply all
Reply to author
Forward
0 new messages