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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Component/s: subversion-plugin
    • Labels:
      None
    • Environment:
      v 1.12 @ hudson 1.348
    • Similar Issues:

      Description

      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)

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in hudson
            User: : abayer
            Path:
            trunk/hudson/main/core/src/main/java/hudson/scm/SCM.java
            http://jenkins-ci.org/commit/28470
            Log:
            [JENKINS-5827, JENKINS-5756] This approach fixes both bugs in one fell swoop

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : abayer Path: trunk/hudson/main/core/src/main/java/hudson/scm/SCM.java http://jenkins-ci.org/commit/28470 Log: [JENKINS-5827, JENKINS-5756] This approach fixes both bugs in one fell swoop
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in hudson
            User: : abayer
            Path:
            trunk/hudson/main/core/src/main/java/hudson/scm/SCM.java
            http://jenkins-ci.org/commit/28471
            Log:
            [JENKINS-5827, JENKINS-5756] Whoops - missed something I had intended.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : abayer Path: trunk/hudson/main/core/src/main/java/hudson/scm/SCM.java http://jenkins-ci.org/commit/28471 Log: [JENKINS-5827, JENKINS-5756] Whoops - missed something I had intended.
            Hide
            jglick Jesse Glick added a comment -

            For what it's worth, I am running a snapshot build containing Kohsuke's latest 28499 and have not so far observed either JENKINS-5827 or JENKINS-5756. Near time for 1.350 to be released?

            Show
            jglick Jesse Glick added a comment - For what it's worth, I am running a snapshot build containing Kohsuke's latest 28499 and have not so far observed either JENKINS-5827 or JENKINS-5756 . Near time for 1.350 to be released?
            Hide
            jenkins_mizuho Jose Arevalo added a comment -

            I updated to the latest version of the plugin and I am seeing the issue:

            At revision 3327
            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: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)
            Finished: FAILURE

            Show
            jenkins_mizuho Jose Arevalo added a comment - I updated to the latest version of the plugin and I am seeing the issue: At revision 3327 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: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) Finished: FAILURE
            Hide
            recena Manuel Recena Soto added a comment -

            Jose Arevalo, Could you clean up your workspace? Which working copy version are you using?

            Show
            recena Manuel Recena Soto added a comment - Jose Arevalo , Could you clean up your workspace? Which working copy version are you using?

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: