The latest update of the Subversion plugin causes a class cast exception in the Multiple SCM plugin. If subversion is selected as one of the SCM sources in the multiple scm plugin a class cast exception generates the attached logs when updating or checking out new code.

      For the moment we have rolled back our Subversion plugin to 2.4.5 to work around this issue.

          [JENKINS-26303] Not compatible with Subversion plugin 2.5

          LuFrija added a comment -

          Hi Craig

          I had a look but there aren't any differences beside the multiple-scm plugin version. I'll try to move to subversion plugin 2.5.1 and see whether this helps.

          LuFrija added a comment - Hi Craig I had a look but there aren't any differences beside the multiple-scm plugin version. I'll try to move to subversion plugin 2.5.1 and see whether this helps.

          Dave Taddei added a comment -

          This now appears to occur with Subversion plugin 2.5.2 also

          00:00:04.041 FATAL: org.jenkinsci.plugins.multiplescms.MultiSCMRevisionState cannot be cast to hudson.scm.SVNRevisionState
          00:00:04.041 java.lang.ClassCastException: org.jenkinsci.plugins.multiplescms.MultiSCMRevisionState cannot be cast to hudson.scm.SVNRevisionState
          00:00:04.042 at hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:726)
          00:00:04.042 at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:861)
          00:00:04.042 at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:129)
          00:00:04.042 at hudson.scm.SCM.checkout(SCM.java:485)
          00:00:04.042 at hudson.model.AbstractProject.checkout(AbstractProject.java:1284)
          00:00:04.042 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610)
          00:00:04.042 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
          00:00:04.042 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532)
          00:00:04.042 at hudson.model.Run.execute(Run.java:1741)
          00:00:04.042 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
          00:00:04.042 at hudson.model.ResourceController.execute(ResourceController.java:98)
          00:00:04.042 at hudson.model.Executor.run(Executor.java:381)

          Dave Taddei added a comment - This now appears to occur with Subversion plugin 2.5.2 also 00:00:04.041 FATAL: org.jenkinsci.plugins.multiplescms.MultiSCMRevisionState cannot be cast to hudson.scm.SVNRevisionState 00:00:04.041 java.lang.ClassCastException: org.jenkinsci.plugins.multiplescms.MultiSCMRevisionState cannot be cast to hudson.scm.SVNRevisionState 00:00:04.042 at hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:726) 00:00:04.042 at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:861) 00:00:04.042 at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:129) 00:00:04.042 at hudson.scm.SCM.checkout(SCM.java:485) 00:00:04.042 at hudson.model.AbstractProject.checkout(AbstractProject.java:1284) 00:00:04.042 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) 00:00:04.042 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) 00:00:04.042 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) 00:00:04.042 at hudson.model.Run.execute(Run.java:1741) 00:00:04.042 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) 00:00:04.042 at hudson.model.ResourceController.execute(ResourceController.java:98) 00:00:04.042 at hudson.model.Executor.run(Executor.java:381)

          Yariv Sheizaf added a comment -

          I get the following error using version 2.5.2 :

          FATAL: hudson.scm.SVNRevisionState cannot be cast to hudson.scm.SVNRevisionState
          java.lang.ClassCastException: hudson.scm.SVNRevisionState cannot be cast to hudson.scm.SVNRevisionState
          at hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:726)
          at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:861)
          at hudson.scm.SCM.checkout(SCM.java:485)
          at hudson.model.AbstractProject.checkout(AbstractProject.java:1282)
          at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610)
          at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532)
          at hudson.model.Run.execute(Run.java:1744)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:374)

          Yariv Sheizaf added a comment - I get the following error using version 2.5.2 : FATAL: hudson.scm.SVNRevisionState cannot be cast to hudson.scm.SVNRevisionState java.lang.ClassCastException: hudson.scm.SVNRevisionState cannot be cast to hudson.scm.SVNRevisionState at hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:726) at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:861) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1282) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1744) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374)

          Dave Taddei added a comment -

          This now works for me.

          If you installed the MultiSCM plugin first, then update the subversion plugin then a restart of the server is required.

          If you installed subversion plugin first then the MultiSCM plugin it appears to work without a restart.

          Thanks!

          Dave Taddei added a comment - This now works for me. If you installed the MultiSCM plugin first, then update the subversion plugin then a restart of the server is required. If you installed subversion plugin first then the MultiSCM plugin it appears to work without a restart. Thanks!

          Peter Pakos added a comment - - edited

          It does not work for us with Jenkins 1.629 and Subversion plugin 2.5.3 which had to be reverted back to 2.4.5.

          Peter Pakos added a comment - - edited It does not work for us with Jenkins 1.629 and Subversion plugin 2.5.3 which had to be reverted back to 2.4.5.

          Dave Taddei added a comment -

          I have not been able to reproduce this bug with more recent versions of jenkins, multi-scm and svn plugin.

          Dave Taddei added a comment - I have not been able to reproduce this bug with more recent versions of jenkins, multi-scm and svn plugin.

          Peter Pakos added a comment -

          drtaddei, could you please confirm which versions of jenkins, multi-scm and svn plugin you have tried and seen this fully working?

          Peter Pakos added a comment - drtaddei , could you please confirm which versions of jenkins, multi-scm and svn plugin you have tried and seen this fully working?

          Peter Pakos added a comment -

          It's still happening for us with the most recent versions of Jenkins and the plugins.

          drtaddei, what versions have you tried it with?

          Peter Pakos added a comment - It's still happening for us with the most recent versions of Jenkins and the plugins. drtaddei , what versions have you tried it with?

          Dave Taddei added a comment -

          we are now on 2.15, multi-scm 0.6, subversion 2.6, also this bug should not be assigned to me

          Dave Taddei added a comment - we are now on 2.15, multi-scm 0.6, subversion 2.6, also this bug should not be assigned to me

          Cannot reproduce: Jenkins 2.16, multiple-scms 0.6, Subversion Plug-in 2.6

          Craig Rodrigues added a comment - Cannot reproduce: Jenkins 2.16, multiple-scms 0.6, Subversion Plug-in 2.6

            Unassigned Unassigned
            drtaddei Dave Taddei
            Votes:
            9 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: