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

NPE in MavenSpyLogProcessor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: pipeline-maven-plugin
    • Labels:
      None
    • Environment:
    • Similar Issues:

      Description

      ERROR: [withMaven] WARNING Exception processing the logs generated by the Jenkins Maven Event Spy /home/jenkins/workspace/backend-mr-pipeline@tmp/withMaven38b23462/maven-spy-20170404-144034-255.log, ignore file. Please report a bug associated for the component 'pipeline-maven-plugin' at https://issues.jenkins-ci.org 
       java.lang.NullPointerException
       at org.jenkinsci.plugins.pipeline.maven.MavenSpyLogProcessor.processMavenSpyLogs(MavenSpyLogProcessor.java:87)
       at org.jenkinsci.plugins.pipeline.maven.WithMavenStepExecution$Callback.finished(WithMavenStepExecution.java:770)
       at org.jenkinsci.plugins.workflow.steps.BodyExecutionCallback$TailCall.onFailure(BodyExecutionCallback.java:124)
       at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$FailureAdapter.receive(CpsBodyExecution.java:345)
       at com.cloudbees.groovy.cps.impl.ThrowBlock$1.receive(ThrowBlock.java:68)
       at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
       at com.cloudbees.groovy.cps.Next.step(Next.java:74)
       at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:154)
       at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
       at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:33)
       at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:30)
       at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
       at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:30)
       at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:165)
       at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:328)
       at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:80)
       at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:240)
       at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:228)
       at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
       at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
       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:1142)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
       at java.lang.Thread.run(Thread.java:745)

        Attachments

          Activity

          vikgun Viktor Gunnarson created issue -
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Cyrille Le Clerc
          Path:
          jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/MavenSpyLogProcessor.java
          http://jenkins-ci.org/commit/pipeline-maven-plugin/b128845577952a62744cf2fb0a5cf7be6cd45019
          Log:
          JENKINS-43341 Protect code against NullPointerException and throw IllegalStateException in case of uncertain code path

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Cyrille Le Clerc Path: jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/MavenSpyLogProcessor.java http://jenkins-ci.org/commit/pipeline-maven-plugin/b128845577952a62744cf2fb0a5cf7be6cd45019 Log: JENKINS-43341 Protect code against NullPointerException and throw IllegalStateException in case of uncertain code path
          cleclerc Cyrille Le Clerc made changes -
          Field Original Value New Value
          Assignee Alvaro Lobato [ alobato ] Cyrille Le Clerc [ cleclerc ]
          cleclerc Cyrille Le Clerc made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Cyrille Le Clerc
          Path:
          jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/MavenSpyLogProcessor.java
          http://jenkins-ci.org/commit/pipeline-maven-plugin/01e8690c5db3e7130adf179e4bb05aa85917bf31
          Log:
          Merge pull request #35 from jenkinsci/JENKINS-43341

          JENKINS-43341 Protect code against NullPointerException

          Compare: https://github.com/jenkinsci/pipeline-maven-plugin/compare/68fb1d33e627...01e8690c5db3

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Cyrille Le Clerc Path: jenkins-plugin/src/main/java/org/jenkinsci/plugins/pipeline/maven/MavenSpyLogProcessor.java http://jenkins-ci.org/commit/pipeline-maven-plugin/01e8690c5db3e7130adf179e4bb05aa85917bf31 Log: Merge pull request #35 from jenkinsci/ JENKINS-43341 JENKINS-43341 Protect code against NullPointerException Compare: https://github.com/jenkinsci/pipeline-maven-plugin/compare/68fb1d33e627...01e8690c5db3
          cleclerc Cyrille Le Clerc made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          Hide
          cleclerc Cyrille Le Clerc added a comment -

          Fixed in 2.0.1

          Show
          cleclerc Cyrille Le Clerc added a comment - Fixed in 2.0.1
          cleclerc Cyrille Le Clerc made changes -
          Status In Review [ 10005 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          cleclerc Cyrille Le Clerc made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              cleclerc Cyrille Le Clerc
              Reporter:
              vikgun Viktor Gunnarson
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: