java.lang.ClassCastException: org.jenkinsci.plugins.multiplescms.MultiSCMRevisionState cannot be cast to hudson.scm.SVNRevisionState

Jenkins JIRA | Michael Shmulevich | 2 years ago
  1. 0

    After an upgrade from 1.581 to 1.596 all the jobs that had a Multiple SCM configuration of Git/SVN or SVN/SVN stopped working, showing the following error in their console log: {noformat} Updating [<SVN URL removed>] at revision '2015-02-02T08:51:12.932 +0100' At revision 110220 FATAL: org.jenkinsci.plugins.multiplescms.MultiSCMRevisionState cannot be cast to hudson.scm.SVNRevisionState java.lang.ClassCastException: org.jenkinsci.plugins.multiplescms.MultiSCMRevisionState cannot be cast to hudson.scm.SVNRevisionState at hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:725) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:860) at hudson.scm.SCM.checkout(SCM.java:484) at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:117) at hudson.model.AbstractProject.checkout(AbstractProject.java:1270) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:609) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:531) at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:134) at hudson.model.Run.execute(Run.java:1718) at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:73) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) {noformat} At first, I thought the {{Multiple SCM}} plugin was the one to blame, but downgrading that one didn't provide any result. Unfortunately, the SVN client is a _pinned_ plug-in, thus not easy to just upgrade. However, after un-pinning {{Subversion plugin}} and downgrading to 2.4.5, the {{Multiple SCMs}} builds are working again.

    Jenkins JIRA | 2 years ago | Michael Shmulevich
    java.lang.ClassCastException: org.jenkinsci.plugins.multiplescms.MultiSCMRevisionState cannot be cast to hudson.scm.SVNRevisionState
  2. 0

    After an upgrade from 1.581 to 1.596 all the jobs that had a Multiple SCM configuration of Git/SVN or SVN/SVN stopped working, showing the following error in their console log: {noformat} Updating [<SVN URL removed>] at revision '2015-02-02T08:51:12.932 +0100' At revision 110220 FATAL: org.jenkinsci.plugins.multiplescms.MultiSCMRevisionState cannot be cast to hudson.scm.SVNRevisionState java.lang.ClassCastException: org.jenkinsci.plugins.multiplescms.MultiSCMRevisionState cannot be cast to hudson.scm.SVNRevisionState at hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:725) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:860) at hudson.scm.SCM.checkout(SCM.java:484) at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:117) at hudson.model.AbstractProject.checkout(AbstractProject.java:1270) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:609) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:531) at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:134) at hudson.model.Run.execute(Run.java:1718) at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:73) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) {noformat} At first, I thought the {{Multiple SCM}} plugin was the one to blame, but downgrading that one didn't provide any result. Unfortunately, the SVN client is a _pinned_ plug-in, thus not easy to just upgrade. However, after un-pinning {{Subversion plugin}} and downgrading to 2.4.5, the {{Multiple SCMs}} builds are working again.

    Jenkins JIRA | 2 years ago | Michael Shmulevich
    java.lang.ClassCastException: org.jenkinsci.plugins.multiplescms.MultiSCMRevisionState cannot be cast to hudson.scm.SVNRevisionState
  3. 0

    [JIRA] [multiple-scms-plugin] (JENKINS-26303) Not compatible with Subversion plugin 2.5

    Google Groups | 2 years ago | costesc...@skymail.ro (JIRA)
    java.lang.ClassCastException: org.jenkinsci.plugins.multiplescms.MultiSCMRevisionState cannot be cast to hudson.scm.SVNRevisionState
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JIRA] [subversion-plugin] (JENKINS-27079) ClassCastException: hudson.scm.SVNRevisionState cannot be cast to hudson.scm.SVNRevisionState

    Google Groups | 2 years ago | ogo...@gmail.com (JIRA)
    java.lang.ClassCastException: hudson.scm.SVNRevisionState cannot be cast to hudson.scm.SVNRevisionState

    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.multiplescms.MultiSCMRevisionState cannot be cast to hudson.scm.SVNRevisionState

      at hudson.scm.SubversionSCM.calcChangeLog()
    2. Hudson
      SCM.checkout
      1. hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:725)
      2. hudson.scm.SubversionSCM.checkout(SubversionSCM.java:860)
      3. hudson.scm.SCM.checkout(SCM.java:484)
      3 frames
    3. org.jenkinsci.plugins
      MultiSCM.checkout
      1. org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:117)
      1 frame
    4. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1270)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:609)
      2 frames
    5. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      1 frame
    6. Hudson
      AbstractBuild$AbstractBuildExecution.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:531)
      1 frame
    7. com.tikal.jenkins
      MultiJobBuild$MultiJobRunnerImpl.run
      1. com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:134)
      1 frame
    8. Hudson
      Run.execute
      1. hudson.model.Run.execute(Run.java:1718)
      1 frame
    9. com.tikal.jenkins
      MultiJobBuild.run
      1. com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:73)
      1 frame
    10. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:89)
      2. hudson.model.Executor.run(Executor.java:240)
      2 frames