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

Null pointer exception fails job with warnings-ng 8.4.2

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      A freestyle job that builds the Jenkins git plugin fails with a null pointer exception after updating to warnings-ng plugin 8.4.2.

      The null pointer exception is:

      [SpotBugs] No filter has been set, publishing all 0 issues
      ERROR: Build step failed with exception
      java.lang.NullPointerException
      	at edu.hm.hafner.analysis.Report.addAll(Report.java:174)
      	at edu.hm.hafner.analysis.Report.copyIssuesAndProperties(Report.java:660)
      	at edu.hm.hafner.analysis.Report.addAll(Report.java:194)
      	at io.jenkins.plugins.analysis.core.model.AnalysisResult.getIssues(AnalysisResult.java:413)
      	at java.util.Optional.map(Optional.java:215)
      	at io.jenkins.plugins.analysis.core.model.AnalysisHistory.getIssues(AnalysisHistory.java:142)
      	at io.jenkins.plugins.analysis.core.model.DeltaReport.<init>(DeltaReport.java:48)
      	at io.jenkins.plugins.analysis.core.steps.IssuesPublisher.attachAction(IssuesPublisher.java:110)
      	at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.publishResult(IssuesRecorder.java:721)
      	at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.record(IssuesRecorder.java:651)
      	at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.perform(IssuesRecorder.java:617)
      	at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.perform(IssuesRecorder.java:595)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
      	at hudson.model.Build$BuildExecution.post2(Build.java:186)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
      	at hudson.model.Run.execute(Run.java:1919)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:428)
      Build step 'Record compiler warnings and static analysis results' marked build as failure
      

      Same null pointer exception also fails pipeline jobs for the git plugin.

        Attachments

          Issue Links

            Activity

            markewaite Mark Waite created issue -
            markewaite Mark Waite made changes -
            Field Original Value New Value
            Summary Null pointer exception fails freestyle job with warnings-ng 8.4.2 Null pointer exception fails job with warnings-ng 8.4.2
            markewaite Mark Waite made changes -
            Description A [freestyle job|https://github.com/MarkEWaite/docker-lfs/blob/d16cba84005ea33abd6146a6fd6ac6b127e61729/ref/jobs/Git-Folder/jobs/git-plugin/config.xml#L4] that builds the Jenkins git plugin fails with a null pointer exception after updating to warnings-ng plugin 8.4.2.

            The null pointer exception is:

            {noformat}
            [SpotBugs] No filter has been set, publishing all 0 issues
            ERROR: Build step failed with exception
            java.lang.NullPointerException
            at edu.hm.hafner.analysis.Report.addAll(Report.java:174)
            at edu.hm.hafner.analysis.Report.copyIssuesAndProperties(Report.java:660)
            at edu.hm.hafner.analysis.Report.addAll(Report.java:194)
            at io.jenkins.plugins.analysis.core.model.AnalysisResult.getIssues(AnalysisResult.java:413)
            at java.util.Optional.map(Optional.java:215)
            at io.jenkins.plugins.analysis.core.model.AnalysisHistory.getIssues(AnalysisHistory.java:142)
            at io.jenkins.plugins.analysis.core.model.DeltaReport.<init>(DeltaReport.java:48)
            at io.jenkins.plugins.analysis.core.steps.IssuesPublisher.attachAction(IssuesPublisher.java:110)
            at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.publishResult(IssuesRecorder.java:721)
            at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.record(IssuesRecorder.java:651)
            at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.perform(IssuesRecorder.java:617)
            at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.perform(IssuesRecorder.java:595)
            at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
            at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
            at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
            at hudson.model.Build$BuildExecution.post2(Build.java:186)
            at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
            at hudson.model.Run.execute(Run.java:1919)
            at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
            at hudson.model.ResourceController.execute(ResourceController.java:97)
            at hudson.model.Executor.run(Executor.java:428)
            Build step 'Record compiler warnings and static analysis results' marked build as failure
            {noformat}
            A [freestyle job|https://github.com/MarkEWaite/docker-lfs/blob/d16cba84005ea33abd6146a6fd6ac6b127e61729/ref/jobs/Git-Folder/jobs/git-plugin/config.xml#L4] that builds the Jenkins git plugin fails with a null pointer exception after updating to warnings-ng plugin 8.4.2.

            The null pointer exception is:

            {noformat}
            [SpotBugs] No filter has been set, publishing all 0 issues
            ERROR: Build step failed with exception
            java.lang.NullPointerException
            at edu.hm.hafner.analysis.Report.addAll(Report.java:174)
            at edu.hm.hafner.analysis.Report.copyIssuesAndProperties(Report.java:660)
            at edu.hm.hafner.analysis.Report.addAll(Report.java:194)
            at io.jenkins.plugins.analysis.core.model.AnalysisResult.getIssues(AnalysisResult.java:413)
            at java.util.Optional.map(Optional.java:215)
            at io.jenkins.plugins.analysis.core.model.AnalysisHistory.getIssues(AnalysisHistory.java:142)
            at io.jenkins.plugins.analysis.core.model.DeltaReport.<init>(DeltaReport.java:48)
            at io.jenkins.plugins.analysis.core.steps.IssuesPublisher.attachAction(IssuesPublisher.java:110)
            at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.publishResult(IssuesRecorder.java:721)
            at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.record(IssuesRecorder.java:651)
            at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.perform(IssuesRecorder.java:617)
            at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.perform(IssuesRecorder.java:595)
            at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
            at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
            at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
            at hudson.model.Build$BuildExecution.post2(Build.java:186)
            at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
            at hudson.model.Run.execute(Run.java:1919)
            at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
            at hudson.model.ResourceController.execute(ResourceController.java:97)
            at hudson.model.Executor.run(Executor.java:428)
            Build step 'Record compiler warnings and static analysis results' marked build as failure
            {noformat}

            Same null pointer exception also fails pipeline jobs for the git plugin.
            drulli Ulli Hafner made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Fixed but Unreleased [ 10203 ]
            drulli Ulli Hafner made changes -
            Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]
            drulli Ulli Hafner made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            drulli Ulli Hafner made changes -
            Link This issue is duplicated by JENKINS-63667 [ JENKINS-63667 ]
            christian_strebel Christian Strebel made changes -
            Attachment analysisReports.zip [ 52608 ]
            drulli Ulli Hafner made changes -
            Link This issue is duplicated by JENKINS-63710 [ JENKINS-63710 ]
            drulli Ulli Hafner made changes -
            Link This issue is duplicated by JENKINS-63715 [ JENKINS-63715 ]
            drulli Ulli Hafner made changes -
            Resolution Fixed [ 1 ]
            Status Reopened [ 4 ] Fixed but Unreleased [ 10203 ]
            drulli Ulli Hafner made changes -
            Released As https://github.com/jenkinsci/warnings-ng-plugin/releases/tag/v8.4.4
            Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]
            markewaite Mark Waite made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            kon Kalle Niemitalo made changes -
            Link This issue relates to JENKINS-64070 [ JENKINS-64070 ]

              People

              Assignee:
              drulli Ulli Hafner
              Reporter:
              markewaite Mark Waite
              Votes:
              14 Vote for this issue
              Watchers:
              23 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: