[workflow-plugin] ClassCastException on brand new project

111 views
Skip to first unread message

Brantone

unread,
Jul 23, 2015, 2:07:24 AM7/23/15
to Jenkins Users
Ok, what am I doing wrong? This is "right outta the box" and a non-starter, read docs a few times, but maybe the amount of caffeine affecting my eyes ... 

I figured I'd start playing around with workflow-plugin to actually code ... but alas, first quick pass starts throwing ClassCastException ...

Thanks in advance.


Running latest plugin 1.8 on Jenkins 1.619, not doing anything fancy (see below), running the job hangs on 

Running: Allocate node : Start
Still waiting to schedule task
Waiting for next available executor

Jenkins logs shows:

Jul 22, 2015 10:57:16 PM SEVERE hudson.triggers.SafeTimerTask run
Timer task hudson.model.Queue$MaintainTask@494e91b4 failed
java.lang.ClassCastException: org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution$PlaceholderTask 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:471)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)

Job config is 

<flow-definition plugin="workflow-job@1.8">

<actions/>
<description/>
<keepDependencies>false</keepDependencies>
<properties>

<hudson.plugins.buildblocker.BuildBlockerProperty plugin="build-bloc...@1.7.1">

<useBuildBlocker>false</useBuildBlocker>
<blockLevel>GLOBAL</blockLevel>
<scanQueueFor>DISABLED</scanQueueFor>
<blockingJobs/>
</hudson.plugins.buildblocker.BuildBlockerProperty>
<com.synopsys.arc.jenkins.plugins.ownership.jobs.JobOwnerJobProperty plugin="ownership@0.7"/>
<com.sonyericsson.rebuild.RebuildSettings plugin="reb...@1.25">

<autoRebuild>false</autoRebuild>
<rebuildDisabled>false</rebuildDisabled>
</com.sonyericsson.rebuild.RebuildSettings>
<com.synopsys.arc.jenkinsci.plugins.jobrestrictions.jobs.JobRestrictionProperty plugin="job-restrictions@0.4"/>
<jenkins.plugins.slack.SlackNotifier_-SlackJobProperty plugin="slack@1.8">

<teamDomain/>
<token/>
<room/>
<startNotification>false</startNotification>
<notifySuccess>false</notifySuccess>
<notifyAborted>false</notifyAborted>
<notifyNotBuilt>false</notifyNotBuilt>
<notifyUnstable>false</notifyUnstable>
<notifyFailure>false</notifyFailure>
<notifyBackToNormal>false</notifyBackToNormal>
<notifyRepeatedFailure>false</notifyRepeatedFailure>
<includeTestSummary>false</includeTestSummary>
<showCommitList>false</showCommitList>
<includeCustomMessage>false</includeCustomMessage>
<customMessage/>
</jenkins.plugins.slack.SlackNotifier_-SlackJobProperty>
</properties>
<definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps@1.8">

<script>node { echo 'hello from Workflow' }</script>
<sandbox>false</sandbox>
</definition>
<triggers/>
</flow-definition>

Jesse Glick

unread,
Aug 12, 2015, 5:06:30 PM8/12/15
to Jenkins Users
On Thursday, July 23, 2015 at 2:07:24 AM UTC-4, Brantone wrote:
what am I doing wrong?

Using the Build Blocker plugin, which apparently makes a “blind cast” that now fails. Report a bug for that plugin, add the `workflow` label. 

Brenton

unread,
Aug 12, 2015, 5:41:55 PM8/12/15
to jenkins...@googlegroups.com
Well I'll be a monkey's uncle ... https://issues.jenkins-ci.org/browse/JENKINS-29295 was created a few days prior to my email, and updated just the day before,  welp, there we go. Thanks Jesse.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/HT1XEzfFs_E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0e011390-451c-4f8f-8cc5-8fb027441d6e%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages