Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-5827

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

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • subversion-plugin
    • None
    • v 1.12 @ hudson 1.348

      I just installed the v1.12 of the plugin and it fails with this error. I have to go back to 1.11

      Mar 4, 2010 9:43:45 AM hudson.triggers.SCMTrigger$Runner runPolling
      SEVERE: Failed to record SCM polling
      java.lang.ClassCastException: hudson.scm.SCMRevisionState$None cannot be cast to hudson.scm.SVNRevisionState
      at hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1051)
      at hudson.scm.SCM.poll(SCM.java:342)
      at hudson.model.AbstractProject.poll(AbstractProject.java:1150)
      at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:319)
      at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:348)
      at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)

          [JENKINS-5827] java.lang.ClassCastException: hudson.scm.SCMRevisionState$None cannot be cast to hudson.scm.SVNRevisionState

          Arnaud Héritier created issue -

          Same for me. However, when rolling back, you will face other exceptions:

          Mar 4, 2010 1:57:22 PM hudson.util.RobustCollectionConverter populateCollection
          WARNING: Failed to resolve class
          com.thoughtworks.xstream.mapper.CannotResolveClassException: hudson.scm.SVNRevisionState : hudson.scm.SVNRevisionState

          Regis

          Régis Desgroppes added a comment - Same for me. However, when rolling back, you will face other exceptions: Mar 4, 2010 1:57:22 PM hudson.util.RobustCollectionConverter populateCollection WARNING: Failed to resolve class com.thoughtworks.xstream.mapper.CannotResolveClassException: hudson.scm.SVNRevisionState : hudson.scm.SVNRevisionState Regis

          Same issue for me; started when upgrading to SVN Plugin 1.12.

          daniel_franzen added a comment - Same issue for me; started when upgrading to SVN Plugin 1.12.

          Restore pervious Version: renaming subversion.bak to subversion.hpi works for me.

          rainerweinhold added a comment - Restore pervious Version: renaming subversion.bak to subversion.hpi works for me.

          alacenaire added a comment -

          Same issue, renaming subversion.bak to subversion.hpi didn't work for me. I had to remove subversion plugin files and come back to Hudson 1.347 (that seems to include the version 1.11 of the subversion plugin)

          alacenaire added a comment - Same issue, renaming subversion.bak to subversion.hpi didn't work for me. I had to remove subversion plugin files and come back to Hudson 1.347 (that seems to include the version 1.11 of the subversion plugin)

          anilc added a comment -

          I was able to restore by renaming subversion.bak to subversion.hpi

          anilc added a comment - I was able to restore by renaming subversion.bak to subversion.hpi
          fpavageau made changes -
          Link New: This issue is duplicated by JENKINS-5855 [ JENKINS-5855 ]

          lcantey added a comment - - edited

          Reverting to subversion.bak didn't appear on first poll to work but is now working for me.

          lcantey added a comment - - edited Reverting to subversion.bak didn't appear on first poll to work but is now working for me.

          Code changed in hudson
          User: : abayer
          Path:
          trunk/hudson/plugins/subversion/src/main/java/hudson/scm/SubversionSCM.java
          http://jenkins-ci.org/commit/28405
          Log:
          JENKINS-5827 Tentative fix for ClassCastException

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : abayer Path: trunk/hudson/plugins/subversion/src/main/java/hudson/scm/SubversionSCM.java http://jenkins-ci.org/commit/28405 Log: JENKINS-5827 Tentative fix for ClassCastException
          Andrew Bayer made changes -
          Assignee New: Andrew Bayer [ abayer ]

            recena Manuel Recena Soto
            aheritier Arnaud Héritier
            Votes:
            17 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: