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

NPE thrown during analysis.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • analysis-model
    • None
    • Jenkins 2.249.1
      Analysis Model 9.0.1
      Warnings NG Plugin 8.4.2

      After applying the patch from Analysis model 9.0.1 (JENKINS-63694), I'm now getting a NPE when collecting the reports:

      [GNU C Compiler (gcc)] Sleeping for 5 seconds due to JENKINS-32191...
      [GNU C Compiler (gcc)] Parsing console log (workspace: '/Users/build/workspace/<job_directory>')
      [GNU C Compiler (gcc)] Successfully parsed console log
      [GNU C Compiler (gcc)] -> found 2316 issues (skipped 1246 duplicates)
      [GNU C Compiler (gcc)] [-ERROR-]   ... skipped logging of 2296 additional errors ...
      [GNU C Compiler (gcc)] Post processing issues on 'alertmacmini001' with source code encoding 'UTF-8'
      [GNU C Compiler (gcc)] Creating SCM blamer to obtain author and commit information for affected files
      [GNU C Compiler (gcc)] Creating SCM miner to obtain statistics for affected repository files
      [GNU C Compiler (gcc)] Resolving file names for all issues in source directory '/Users/build/workspace/<job_directory>'
      [GNU C Compiler (gcc)] -> resolved paths in source directory (0 found, 563 not found)
      [GNU C Compiler (gcc)] Resolving module names from module definitions (build.xml, pom.xml, or Manifest.mf files)
      [GNU C Compiler (gcc)] -> resolved module names for 2316 issues
      [GNU C Compiler (gcc)] Resolving package names (or namespaces) by parsing the affected files
      [GNU C Compiler (gcc)] -> resolved package names of 563 affected files
      [GNU C Compiler (gcc)] No filter has been set, publishing all 2316 issues
      [GNU C Compiler (gcc)] Creating fingerprints for all affected code blocks to track issues over different builds
      [GNU C Compiler (gcc)] -> created fingerprints for 0 issues (skipped 2316 issues)
      [GNU C Compiler (gcc)] Copying affected files to Jenkins' build folder '/var/lib/jenkins/jobs/<job_directory>/builds/7/files-with-issues'
      [GNU C Compiler (gcc)] -> 0 copied, 0 not in workspace, 2316 not-found, 0 with I/O error
      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.RecordIssuesStep$Execution.run(RecordIssuesStep.java:1024)
       	at io.jenkins.plugins.analysis.core.steps.RecordIssuesStep$Execution.run(RecordIssuesStep.java:985)
       	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)
       Finished: FAILURE
      

            drulli Ulli Hafner
            mdelaney Mike Delaney
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: