java.lang.ClassCastException: org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution$PlaceholderTask cannot be cast to hudson.model.AbstractProject

Jenkins JIRA | Klaus Schniedergers | 12 months ago
  1. 0

    This workflow: {quote} node \{ echo "hello world" \} {quote} results in: {quote} Started by user anonymous [Workflow] Allocate node : Start Still waiting to schedule task Waiting for next available executor {quote} There are plenty of executors available, and other non-workflow jobs are able to allocate one. I see the same issue on separate similarly-configured Jenkins instances. Log: {quote} Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: SEVERE: Timer task hudson.model.Queue$MaintainTask@2054b466 failed Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: java.lang.ClassCastException: org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution$PlaceholderTask cannot be cast to hudson.model.AbstractProject Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at hudson.plugins.buildblocker.BuildBlockerQueueTaskDispatcher.getBuildBlockerProperty(BuildBlockerQueueTaskDispatcher.java:199) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at hudson.plugins.buildblocker.BuildBlockerQueueTaskDispatcher.canTake(BuildBlockerQueueTaskDispatcher.java:108) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at hudson.model.Queue$JobOffer.canTake(Queue.java:301) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at hudson.model.Queue.maintain(Queue.java:1544) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at hudson.model.Queue$MaintainTask.doRun(Queue.java:2709) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:51) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at java.lang.Thread.run(Thread.java:745) {quote}

    Jenkins JIRA | 12 months ago | Klaus Schniedergers
    java.lang.ClassCastException: org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution$PlaceholderTask cannot be cast to hudson.model.AbstractProject
  2. 0

    This workflow: {quote} node \{ echo "hello world" \} {quote} results in: {quote} Started by user anonymous [Workflow] Allocate node : Start Still waiting to schedule task Waiting for next available executor {quote} There are plenty of executors available, and other non-workflow jobs are able to allocate one. I see the same issue on separate similarly-configured Jenkins instances. Log: {quote} Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: SEVERE: Timer task hudson.model.Queue$MaintainTask@2054b466 failed Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: java.lang.ClassCastException: org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution$PlaceholderTask cannot be cast to hudson.model.AbstractProject Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at hudson.plugins.buildblocker.BuildBlockerQueueTaskDispatcher.getBuildBlockerProperty(BuildBlockerQueueTaskDispatcher.java:199) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at hudson.plugins.buildblocker.BuildBlockerQueueTaskDispatcher.canTake(BuildBlockerQueueTaskDispatcher.java:108) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at hudson.model.Queue$JobOffer.canTake(Queue.java:301) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at hudson.model.Queue.maintain(Queue.java:1544) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at hudson.model.Queue$MaintainTask.doRun(Queue.java:2709) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:51) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) Dec 10 12:55:11 ip-172-29-0-82 [jenkins]: #011at java.lang.Thread.run(Thread.java:745) {quote}

    Jenkins JIRA | 12 months ago | Klaus Schniedergers
    java.lang.ClassCastException: org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution$PlaceholderTask cannot be cast to hudson.model.AbstractProject
  3. 0

    [workflow-plugin] ClassCastException on brand new project

    Google Groups | 1 year ago | Brantone
    java.lang.ClassCastException: org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution$PlaceholderTask cannot be cast to hudson.model.AbstractProject
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins issues - [JIRA] [build-blocker-plugin] (JENKINS-29295) build-blocker-plugin 1.7.1 breaks workflow jobs

    nabble.com | 11 months ago
    java.lang.ClassCastException: org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution$PlaceholderTask cannot be cast to hudson.model.AbstractProject
  6. 0

    Jenkins users - [workflow-plugin] ClassCastException on brand new project

    nabble.com | 11 months ago
    java.lang.ClassCastException: org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution$PlaceholderTask cannot be cast to hudson.model.AbstractProject

    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.lang.ClassCastException

      org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution$PlaceholderTask cannot be cast to hudson.model.AbstractProject

      at hudson.plugins.buildblocker.BuildBlockerQueueTaskDispatcher.getBuildBlockerProperty()
    2. hudson.plugins.buildblocker
      BuildBlockerQueueTaskDispatcher.canTake
      1. hudson.plugins.buildblocker.BuildBlockerQueueTaskDispatcher.getBuildBlockerProperty(BuildBlockerQueueTaskDispatcher.java:199)
      2. hudson.plugins.buildblocker.BuildBlockerQueueTaskDispatcher.canTake(BuildBlockerQueueTaskDispatcher.java:108)
      2 frames
    3. Hudson
      SafeTimerTask.run
      1. hudson.model.Queue$JobOffer.canTake(Queue.java:301)
      2. hudson.model.Queue.maintain(Queue.java:1544)
      3. hudson.model.Queue$MaintainTask.doRun(Queue.java:2709)
      4. hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:51)
      4 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      7. java.lang.Thread.run(Thread.java:745)
      7 frames