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

hudson.plugins.batch_task.BatchTask cannot be cast to hudson.model.AbstractProject

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • build-blocker-plugin
    • None
    • Jenkins 1.625

      The error message shown in jenkins log is:

      Aug 21, 2015 1:23:23 PM SCHWERWIEGEND hudson.triggers.SafeTimerTask run
      
      Timer task hudson.model.Queue$MaintainTask@47ec5080 failed
      java.lang.ClassCastException: hudson.plugins.batch_task.BatchTask cannot be cast to hudson.model.AbstractProject
      	at hudson.plugins.buildblocker.BuildBlockerQueueTaskDispatcher.getBuildBlockerProperty(BuildBlockerQueueTaskDispatcher.java:199)
      	at hudson.plugins.buildblocker.BuildBlockerQueueTaskDispatcher.canTake(BuildBlockerQueueTaskDispatcher.java:108)
      	at hudson.model.Queue$JobOffer.canTake(Queue.java:300)
      	at hudson.model.Queue.maintain(Queue.java:1476)
      	at hudson.model.Queue$MaintainTask.doRun(Queue.java:2576)
      	at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:51)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
      	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)
      

      The behaviour is as follows: When starting a batch-task it istransferred into the build queue.
      After the time configured for waiting in this queue (in my installation that would be 2seconds) nothing happens... the task stays in the queue forever (and blocks other builds if there are no empty slots).

            kohsuke Kohsuke Kawaguchi
            niko_k Nikolaus Krismer
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: