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

Poll SCM fails with java.lang.AbstractMethodError

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • core
    • None
    • Hudson 1.347, Mercurial plugin 1.25, Tomcat 6.0.20, Linux 2.6.18

      Since we upgraded to Hudson 1.347 and the Mercurial plugin 1.25 the SCM polling stops working once a day and we have to restart Tomcat. These are the symptoms:

      • The "Last Mercurial Polling Log" of any job shows an empty output, without any "hg incoming" command as usual:
        Last Mercurial Polling Log
        
        Started on Feb 25, 2010 6:21:24 AM
        
      • The Tomcat catalina.out log shows the following error all the time:
        Feb 25, 2010 7:57:24 AM hudson.triggers.SCMTrigger$Runner runPolling
        SEVERE: Failed to record SCM polling
        java.lang.AbstractMethodError
        	at hudson.scm.SCM.poll(SCM.java:344)
        	at hudson.model.AbstractProject.poll(AbstractProject.java:1137)
        	at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:319)
        	at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:346)
        	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)
        

      Thanks.

          [JENKINS-5756] Poll SCM fails with java.lang.AbstractMethodError

          jpabloae created issue -

          aldobrucale added a comment -

          I'm having the same problem with hudson 1.348 (I'm not sure if I had previously installed versione 1.347) and mercurial plugin 1.25

          aldobrucale added a comment - I'm having the same problem with hudson 1.348 (I'm not sure if I had previously installed versione 1.347) and mercurial plugin 1.25

          jpabloae added a comment - - edited

          After upgrading to 1.348 it continues happening to me. But now the exception is also shown in the SCM polling log:

          Started on Mar 4, 2010 7:40:41 PM
          Failed to record SCM polling
          java.lang.AbstractMethodError
          	at hudson.scm.SCM.poll(SCM.java:344)
          	at hudson.model.AbstractProject.poll(AbstractProject.java:1137)
          	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)
          
          

          jpabloae added a comment - - edited After upgrading to 1.348 it continues happening to me. But now the exception is also shown in the SCM polling log: Started on Mar 4, 2010 7:40:41 PM Failed to record SCM polling java.lang.AbstractMethodError at hudson.scm.SCM.poll(SCM.java:344) at hudson.model.AbstractProject.poll(AbstractProject.java:1137) 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)

          JUsername added a comment - - edited

          We have the same problem after updating to latest Hudson version (and after updating SVN plugin):

           
          Failed to record SCM polling
          java.lang.AbstractMethodError
          	at hudson.scm.SCM.poll(SCM.java:344)
          	at hudson.model.AbstractProject.poll(AbstractProject.java:1137)
          	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)
          

          There's now the same problem with SVN:

           
          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)
          

          JUsername added a comment - - edited We have the same problem after updating to latest Hudson version (and after updating SVN plugin): Failed to record SCM polling java.lang.AbstractMethodError at hudson.scm.SCM.poll(SCM.java:344) at hudson.model.AbstractProject.poll(AbstractProject.java:1137) 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) There's now the same problem with SVN: 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)

          Mirko Friedenhagen added a comment - - edited

          Hm, I actually do not believe this is a mercurial plugin problem, then. I am running Hudson 1.349 with Mercurial Plugin 1.25 on Linux (Winstone, java version "1.6.0_17" and I am getting these errors for the SVN-plugin:
          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)

          After switching back from subversion-plugin 1.12 to 1.11 the error is gone for me, so I switch the component to the subversion-plugin.

          Mirko Friedenhagen added a comment - - edited Hm, I actually do not believe this is a mercurial plugin problem, then. I am running Hudson 1.349 with Mercurial Plugin 1.25 on Linux (Winstone, java version "1.6.0_17" and I am getting these errors for the SVN-plugin: 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) After switching back from subversion-plugin 1.12 to 1.11 the error is gone for me, so I switch the component to the subversion-plugin.
          Mirko Friedenhagen made changes -
          Component/s New: subversion [ 15485 ]
          Component/s Original: mercurial [ 15502 ]

          There is a fix for the AbstractMethodError in http://github.com/kohsuke/hudson/blob/1.346/core/src/main/java/hudson/scm/SCM.java#L340, so this should be gone from Hudson 1.346 on.

          @Tomcat Users: are you sure tomcat cleaned the webapps directory correctly?

          Regards
          Mirko

          Mirko Friedenhagen added a comment - There is a fix for the AbstractMethodError in http://github.com/kohsuke/hudson/blob/1.346/core/src/main/java/hudson/scm/SCM.java#L340 , so this should be gone from Hudson 1.346 on. @Tomcat Users: are you sure tomcat cleaned the webapps directory correctly? Regards Mirko

          Andrew Bayer added a comment -

          These are two separate (albeit related) issues - I've seen the AbstractMethodError pop up with the git plugin, with only version 1.11 of the subversion plugin installed. They're both related to the SCM changes for better quiet period support, but I'm pretty sure they're actually different.

          Andrew Bayer added a comment - These are two separate (albeit related) issues - I've seen the AbstractMethodError pop up with the git plugin, with only version 1.11 of the subversion plugin installed. They're both related to the SCM changes for better quiet period support, but I'm pretty sure they're actually different.

          Andrew Bayer added a comment -

          @mfriedenhagen - sadly, that fixed a different AbstractMethodError. This one's cropping up on the return in the catch there.

          Andrew Bayer added a comment - @mfriedenhagen - sadly, that fixed a different AbstractMethodError. This one's cropping up on the return in the catch there.

          jpabloae added a comment - - edited

          For what it's worth, I can reproduce this issue with the Subversion plugin version at 1.11. However note that it's just installed, I'm only using the Mercurial plugin.

          jpabloae added a comment - - edited For what it's worth, I can reproduce this issue with the Subversion plugin version at 1.11. However note that it's just installed, I'm only using the Mercurial plugin.

            kohsuke Kohsuke Kawaguchi
            jpabloae jpabloae
            Votes:
            6 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: