java.lang.ClassCastException: org.jenkinsci.plugins.workflow.job.WorkflowJob cannot be cast to hudson.model.AbstractProject

Jenkins JIRA | Flávio Augusto Valones | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    [JIRA] [embeddable-build-status-plugin] (JENKINS-28642) Add Support to the New Workflow Plugin

    Google Groups | 2 years ago | flavio.augusto@gmail.com (JIRA)
    java.lang.ClassCastException: org.jenkinsci.plugins.workflow.job.WorkflowJob cannot be <span class="code-keyword" style="color: #000091">cast</span> to hudson.model.AbstractProject at org.jenkinsci.plugins.badge.RunBadgeAction.&lt;init&gt;(RunBadgeAction.java:18)
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.jenkinsci.plugins.workflow.job.WorkflowJob cannot be cast to hudson.model.AbstractProject

      at org.jenkinsci.plugins.badge.RunBadgeAction.<init>()
    2. org.jenkinsci.plugins
      RunBadgeActionFactory.createFor
      1. org.jenkinsci.plugins.badge.RunBadgeAction.<init>(RunBadgeAction.java:18)
      2. org.jenkinsci.plugins.badge.RunBadgeActionFactory.createFor(RunBadgeActionFactory.java:21)
      2 frames
    3. Hudson
      Run.getTransientActions
      1. hudson.model.Run.getTransientActions(Run.java:376)
      1 frame