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

NullPointerException after upgrading analysis model api

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: analysis-model
    • Labels:
      None
    • Environment:
      Jenkins 2.204.1
      Warnings NG 7.3.0
      Analysis Model API 7.0.3
    • Similar Issues:

      Description

      After Upgrading from Warning NG 6.0.4 and Analysis Model API 6.0.2 to latest versions, I got this exception:

      [Pipeline] recordIssues
      [Maven] Sleeping for 5 seconds due to JENKINS-32191...[Maven] Parsing console log (workspace: '/var/jenkins_home/build/workspace/project-test')
      [Java] Sleeping for 5 seconds due to JENKINS-32191...[Java] Parsing console log (workspace: '/var/jenkins_home/build/workspace/project-test')[Static Analysis] Attaching ResultAction with ID 'analysis' to run 'project-test #4690'.
      Error when executing always post condition:
      java.lang.NullPointerException
      	at edu.hm.hafner.analysis.Report.addAll(Report.java:157)
      	at edu.hm.hafner.analysis.Report.copyIssuesAndProperties(Report.java:586)
      	at edu.hm.hafner.analysis.Report.addAll(Report.java:177)
      	at io.jenkins.plugins.analysis.core.model.AnalysisResult.getIssues(AnalysisResult.java:411)
      	at java.util.Optional.map(Optional.java:215)
      	at io.jenkins.plugins.analysis.core.model.AnalysisHistory.getIssues(AnalysisHistory.java:139)
      	at io.jenkins.plugins.analysis.core.model.DeltaReport.<init>(DeltaReport.java:48)
      	at io.jenkins.plugins.analysis.core.steps.IssuesPublisher.createAnalysisResult(IssuesPublisher.java:147)
      	at io.jenkins.plugins.analysis.core.steps.IssuesPublisher.attachAction(IssuesPublisher.java:107)
      	at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.publishResult(IssuesRecorder.java:668)
      	at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.record(IssuesRecorder.java:586)
      	at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.perform(IssuesRecorder.java:565)
      	at io.jenkins.plugins.analysis.core.steps.RecordIssuesStep$Execution.run(RecordIssuesStep.java:976)
      	at io.jenkins.plugins.analysis.core.steps.RecordIssuesStep$Execution.run(RecordIssuesStep.java:939)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Issue Links

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                drulli Ulli Hafner
                Reporter:
                msdehghan Mohammad Sadegh Dehghan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: