java.lang.ClassCastException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • A build triggered with the gerrit-trigger plugin failed with the following output: FATAL: org.jenkinsci.plugins.gitclient.CliGitAPIImpl cannot be cast to hudson.plugins.git.GitAPI java.lang.ClassCastException: org.jenkinsci.plugins.gitclient.CliGitAPIImpl cannot be cast to hudson.plugins.git.GitAPI at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser.getFirstParent(GerritTriggerBuildChooser.java:107) at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser.prevBuildForChangelog(GerritTriggerBuildChooser.java:79) at hudson.plugins.git.util.BuildChooser.prevBuildForChangelog(BuildChooser.java:114) at hudson.plugins.git.GitSCM.computeChangeLog(GitSCM.java:1286) at hudson.plugins.git.GitSCM.access$1500(GitSCM.java:57) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1234) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1192) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1192) at hudson.model.AbstractProject.checkout(AbstractProject.java:1342) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:683) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:588) at hudson.model.Run.execute(Run.java:1568) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237)
    via by rere rere,
  • A build triggered with the gerrit-trigger plugin failed with the following output: FATAL: org.jenkinsci.plugins.gitclient.CliGitAPIImpl cannot be cast to hudson.plugins.git.GitAPI java.lang.ClassCastException: org.jenkinsci.plugins.gitclient.CliGitAPIImpl cannot be cast to hudson.plugins.git.GitAPI at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser.getFirstParent(GerritTriggerBuildChooser.java:107) at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser.prevBuildForChangelog(GerritTriggerBuildChooser.java:79) at hudson.plugins.git.util.BuildChooser.prevBuildForChangelog(BuildChooser.java:114) at hudson.plugins.git.GitSCM.computeChangeLog(GitSCM.java:1286) at hudson.plugins.git.GitSCM.access$1500(GitSCM.java:57) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1234) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1192) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1192) at hudson.model.AbstractProject.checkout(AbstractProject.java:1342) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:683) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:588) at hudson.model.Run.execute(Run.java:1568) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237)
    via by rere rere,
    • java.lang.ClassCastException: org.jenkinsci.plugins.gitclient.CliGitAPIImpl cannot be cast to hudson.plugins.git.GitAPI at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser.getFirstParent(GerritTriggerBuildChooser.java:107) at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser.prevBuildForChangelog(GerritTriggerBuildChooser.java:79) at hudson.plugins.git.util.BuildChooser.prevBuildForChangelog(BuildChooser.java:114) at hudson.plugins.git.GitSCM.computeChangeLog(GitSCM.java:1286) at hudson.plugins.git.GitSCM.access$1500(GitSCM.java:57) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1234) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1192) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1192) at hudson.model.AbstractProject.checkout(AbstractProject.java:1342) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:683) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:588) at hudson.model.Run.execute(Run.java:1568) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237)
    No Bugmate found.