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

Parsing maven-enforcer-plugin leads to a NoSuchElementException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • warnings-ng-plugin
    • None

      Hi,

      After the last update on the 13.09.2023, jobs started to fail with an java.util.NoSuchElementException
      When we deactivate the maven-enforcer-plugin, no such exception occures and the build succeeds.

      I know that the warnings-ng plugin hasn't released an update but I suspect that one of it's dependencies was updated and now causes a problem? Or maybe the maven-enforcer-plugin generates a new output which isn't handled correct anymore?

      The exact exception is:

      13:34:09  [JENKINS-PIPELINE-LIB][ERROR] - java.util.NoSuchElementException
      13:34:09  	at java.base/java.util.Spliterators$1Adapter.next(Spliterators.java:688)
      13:34:09  	at edu.hm.hafner.util.LookaheadStream.next(LookaheadStream.java:121)
      13:34:09  	at edu.hm.hafner.analysis.parser.MavenConsoleParser.createIssue(MavenConsoleParser.java:81)
      13:34:09  	at edu.hm.hafner.analysis.LookaheadParser.parse(LookaheadParser.java:76)
      13:34:09  	at edu.hm.hafner.analysis.LookaheadParser.parse(LookaheadParser.java:60)
      13:34:09  	at io.jenkins.plugins.analysis.core.model.ReportScanningTool.scanInConsoleLog(ReportScanningTool.java:212)
      13:34:09  	at io.jenkins.plugins.analysis.core.model.ReportScanningTool.scan(ReportScanningTool.java:146)
      13:34:09  	at io.jenkins.plugins.analysis.core.model.ReportScanningTool.scan(ReportScanningTool.java:138)
      13:34:09  	at io.jenkins.plugins.analysis.core.steps.IssuesScanner.scan(IssuesScanner.java:104)
      13:34:09  	at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.scanWithTool(IssuesRecorder.java:809)
      13:34:09  	at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.record(IssuesRecorder.java:773)
      13:34:09  	at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.perform(IssuesRecorder.java:741)
      13:34:09  	at io.jenkins.plugins.analysis.core.steps.RecordIssuesStep$Execution.run(RecordIssuesStep.java:1160)
      13:34:09  	at io.jenkins.plugins.analysis.core.steps.RecordIssuesStep$Execution.run(RecordIssuesStep.java:1116)
      13:34:09  	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      13:34:09  	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      13:34:09  	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      13:34:09  	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      13:34:09  	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      13:34:09  	at java.base/java.lang.Thread.run(Thread.java:829)
      13:34:09  	Suppressed: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 0cabf821-acf4-47da-9bf9-0d7604e0bd25
      

      Attached you will find the build log with redundant and unnecessary lines remove.

      Thanks for your help,
      Andreas

        1. jenkins.log
          448 kB
          Andreas Nusser

            drulli Ulli Hafner
            jenkinsjenkins Andreas Nusser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: