java.util.concurrent.CancellationException

Jenkins JIRA | Nate Seay | 5 years ago
  1. 0

    FYI- jenkins-multijob-plugin is not a vaild component, or else I would have filed this there. Feel free to move or change component. Sometimes, when the jenkins multijob plugin is dispatching jobs, one will fail. If this happens, it will cancel jobs in the future loop. The loop is at MultiJobBuilder.java:92. If a job is canceled, calling future.get() on it will cause a cancellation exception. A good way to try and reproduce this is to create multiple jobs, including one which will auto-fail, and one which will wait for a while. An easy way to do this is to make two "Execute Shell" jobs: Job which auto-fails: "ls /not/a/real/directory" Job which waits: "sleep 20" Backtrace: FATAL: null java.util.concurrent.CancellationException at hudson.remoting.AsyncFutureImpl.get(AsyncFutureImpl.java:77) at com.tikal.jenkins.plugins.multijob.MultiJobBuilder.perform(MultiJobBuilder.java:102) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:705) at hudson.model.Build$RunnerImpl.build(Build.java:178) at hudson.model.Build$RunnerImpl.doRun(Build.java:139) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:475) at hudson.model.Run.run(Run.java:1434) at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:45) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239)

    Jenkins JIRA | 5 years ago | Nate Seay
    java.util.concurrent.CancellationException
  2. 0

    FYI- jenkins-multijob-plugin is not a vaild component, or else I would have filed this there. Feel free to move or change component. Sometimes, when the jenkins multijob plugin is dispatching jobs, one will fail. If this happens, it will cancel jobs in the future loop. The loop is at MultiJobBuilder.java:92. If a job is canceled, calling future.get() on it will cause a cancellation exception. A good way to try and reproduce this is to create multiple jobs, including one which will auto-fail, and one which will wait for a while. An easy way to do this is to make two "Execute Shell" jobs: Job which auto-fails: "ls /not/a/real/directory" Job which waits: "sleep 20" Backtrace: FATAL: null java.util.concurrent.CancellationException at hudson.remoting.AsyncFutureImpl.get(AsyncFutureImpl.java:77) at com.tikal.jenkins.plugins.multijob.MultiJobBuilder.perform(MultiJobBuilder.java:102) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:705) at hudson.model.Build$RunnerImpl.build(Build.java:178) at hudson.model.Build$RunnerImpl.doRun(Build.java:139) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:475) at hudson.model.Run.run(Run.java:1434) at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:45) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239)

    Jenkins JIRA | 5 years ago | Nate Seay
    java.util.concurrent.CancellationException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    We have a setup where multiple multijobs of the same type are running multiple descendant parallel jobs: -Test-my-branch: -- test-set (param 1) -- test-set (param 2) -Test-my-branch: -- test-set (param 1) -- test-set (param 2) Sometimes, when one of the test-set jobs fail (for example on compilation) the "parent" Test-my-branch fails, but also one or more Test-my-branch currently running jobs are interrupted with Cancellation exception: 09:26:43 FATAL: null 09:26:43 java.util.concurrent.CancellationException 09:26:43 at hudson.remoting.AsyncFutureImpl.get(AsyncFutureImpl.java:77) 09:26:43 at com.tikal.jenkins.plugins.multijob.MultiJobBuilder.perform(MultiJobBuilder.java:106) 09:26:43 at org.jenkinsci.plugins.conditionalbuildstep.BuilderChain.perform(BuilderChain.java:75) 09:26:43 at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110) 09:26:43 at org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail.conditionalRun(BuildStepRunner.java:154) 09:26:43 at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105) 09:26:43 at org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder.perform(ConditionalBuilder.java:117) 09:26:43 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 09:26:43 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) 09:26:43 at hudson.model.Build$BuildExecution.build(Build.java:199) 09:26:43 at hudson.model.Build$BuildExecution.doRun(Build.java:160) 09:26:43 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) 09:26:43 at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:67) 09:26:43 at hudson.model.Run.execute(Run.java:1502) 09:26:43 at hudson.model.Run.run(Run.java:1448) 09:26:43 at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:60) 09:26:43 at hudson.model.ResourceController.execute(ResourceController.java:88) 09:26:43 at hudson.model.Executor.run(Executor.java:236)

    Jenkins JIRA | 3 years ago | Michał Guminiak
    java.util.concurrent.CancellationException
  5. 0

    We have a setup where multiple multijobs of the same type are running multiple descendant parallel jobs: -Test-my-branch: -- test-set (param 1) -- test-set (param 2) -Test-my-branch: -- test-set (param 1) -- test-set (param 2) Sometimes, when one of the test-set jobs fail (for example on compilation) the "parent" Test-my-branch fails, but also one or more Test-my-branch currently running jobs are interrupted with Cancellation exception: 09:26:43 FATAL: null 09:26:43 java.util.concurrent.CancellationException 09:26:43 at hudson.remoting.AsyncFutureImpl.get(AsyncFutureImpl.java:77) 09:26:43 at com.tikal.jenkins.plugins.multijob.MultiJobBuilder.perform(MultiJobBuilder.java:106) 09:26:43 at org.jenkinsci.plugins.conditionalbuildstep.BuilderChain.perform(BuilderChain.java:75) 09:26:43 at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110) 09:26:43 at org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail.conditionalRun(BuildStepRunner.java:154) 09:26:43 at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105) 09:26:43 at org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder.perform(ConditionalBuilder.java:117) 09:26:43 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 09:26:43 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) 09:26:43 at hudson.model.Build$BuildExecution.build(Build.java:199) 09:26:43 at hudson.model.Build$BuildExecution.doRun(Build.java:160) 09:26:43 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) 09:26:43 at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:67) 09:26:43 at hudson.model.Run.execute(Run.java:1502) 09:26:43 at hudson.model.Run.run(Run.java:1448) 09:26:43 at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:60) 09:26:43 at hudson.model.ResourceController.execute(ResourceController.java:88) 09:26:43 at hudson.model.Executor.run(Executor.java:236)

    Jenkins JIRA | 3 years ago | Michał Guminiak
    java.util.concurrent.CancellationException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.util.concurrent.CancellationException

      No message provided

      at hudson.remoting.AsyncFutureImpl.get()
    2. Hudson :: Remoting Layer
      AsyncFutureImpl.get
      1. hudson.remoting.AsyncFutureImpl.get(AsyncFutureImpl.java:77)
      1 frame
    3. com.tikal.jenkins
      MultiJobBuilder.perform
      1. com.tikal.jenkins.plugins.multijob.MultiJobBuilder.perform(MultiJobBuilder.java:102)
      1 frame
    4. Hudson
      Run.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:705)
      3. hudson.model.Build$RunnerImpl.build(Build.java:178)
      4. hudson.model.Build$RunnerImpl.doRun(Build.java:139)
      5. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:475)
      6. hudson.model.Run.run(Run.java:1434)
      6 frames
    5. com.tikal.jenkins
      MultiJobBuild.run
      1. com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:45)
      1 frame
    6. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:239)
      2 frames