java.lang.ClassCastException: hudson.scm.SVNRevisionState cannot be cast to hudson.scm.SVNRevisionState

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.

  • Hi, if I use the PTC as SCM and have the option "Delete Non Members" checked, the job failed in subfolders with following trace: Preparing to execute si projectinfo for #m:/MKS/Service Station#FDC#CORE Preparing to execute si viewproject for #m:/MKS/Service Station#FDC/CORE Checkout directory is C:\Program Files (x86)\Jenkins\FDC\MAIN\CORE A clean copy is requested; deleting contents of C:\Program Files (x86)\Jenkins\FDC\MAIN\CORE Populating clean workspace... Successfully checked out 1292 files! Saving current Integrity Project configuration... Writing build change log... Change log successfully generated: C:\Program Files (x86)\Jenkins\jobs\FDC\jobs\FDC - MAIN - Get sources for CORE\builds\12\changelog.xml FATAL: com.cloudbees.hudson.plugins.folder.Folder cannot be cast to hudson.model.AbstractProject java.lang.ClassCastException: com.cloudbees.hudson.plugins.folder.Folder cannot be cast to hudson.model.AbstractProject at hudson.scm.IntegrityDeleteNonMembersTask.getRootProject(IntegrityDeleteNonMembersTask.java:74) at hudson.scm.IntegrityDeleteNonMembersTask.invoke(IntegrityDeleteNonMembersTask.java:39) at hudson.scm.IntegrityDeleteNonMembersTask.invoke(IntegrityDeleteNonMembersTask.java:20) at hudson.FilePath.act(FilePath.java:991) at hudson.FilePath.act(FilePath.java:969) at hudson.scm.IntegritySCM.checkout(IntegritySCM.java:822) at hudson.model.AbstractProject.checkout(AbstractProject.java:1276) 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) Warning: this build has no associated authentication, so build permissions may be lacking, and downstream projects which cannot even be seen by an anonymous user will be silently skipped Finished: FAILURE In "root" folder or if the option "Delete Non Members" is unchecked, everything works fine. it would be nice if the PTC plugin can support this option on cloudbees.Folders as well. Regards, Bernd Spickers
    via by Bernd Spickers,
  • Hi, if I use the PTC as SCM and have the option "Delete Non Members" checked, the job failed in subfolders with following trace: Preparing to execute si projectinfo for #m:/MKS/Service Station#FDC#CORE Preparing to execute si viewproject for #m:/MKS/Service Station#FDC/CORE Checkout directory is C:\Program Files (x86)\Jenkins\FDC\MAIN\CORE A clean copy is requested; deleting contents of C:\Program Files (x86)\Jenkins\FDC\MAIN\CORE Populating clean workspace... Successfully checked out 1292 files! Saving current Integrity Project configuration... Writing build change log... Change log successfully generated: C:\Program Files (x86)\Jenkins\jobs\FDC\jobs\FDC - MAIN - Get sources for CORE\builds\12\changelog.xml FATAL: com.cloudbees.hudson.plugins.folder.Folder cannot be cast to hudson.model.AbstractProject java.lang.ClassCastException: com.cloudbees.hudson.plugins.folder.Folder cannot be cast to hudson.model.AbstractProject at hudson.scm.IntegrityDeleteNonMembersTask.getRootProject(IntegrityDeleteNonMembersTask.java:74) at hudson.scm.IntegrityDeleteNonMembersTask.invoke(IntegrityDeleteNonMembersTask.java:39) at hudson.scm.IntegrityDeleteNonMembersTask.invoke(IntegrityDeleteNonMembersTask.java:20) at hudson.FilePath.act(FilePath.java:991) at hudson.FilePath.act(FilePath.java:969) at hudson.scm.IntegritySCM.checkout(IntegritySCM.java:822) at hudson.model.AbstractProject.checkout(AbstractProject.java:1276) 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) Warning: this build has no associated authentication, so build permissions may be lacking, and downstream projects which cannot even be seen by an anonymous user will be silently skipped Finished: FAILURE In "root" folder or if the option "Delete Non Members" is unchecked, everything works fine. it would be nice if the PTC plugin can support this option on cloudbees.Folders as well. Regards, Bernd Spickers
    via by Bernd Spickers,
    • 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:1277) 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:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408)
    No Bugmate found.