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

SCM polling gives java.lang.NoSuchFieldError: HOURS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: mercurial-plugin
    • Labels:
      None
    • Environment:
      Platform: Macintosh, OS: All
    • Similar Issues:

      Description

      Since I moved to Mercurial plugin 1.20 I get this in the glassfish log and jobs
      aren't scheduled:

      [#|2009-09-23T03:09:31.294-0700|SEVERE|sun-appserver2.1|hudson.triggers.SCMTrigger|_ThreadID=19;_ThreadName=SCM
      polling for
      hudson.matrix.MatrixProject@9c8ce3[AuthoringTool-Continuous];_RequestID=c05bb485-d240-4f72-8b67-e9e2ec8bb5eb;|Failed
      to record SCM polling
      java.lang.NoSuchFieldError: HOURS
      at hudson.plugins.mercurial.MercurialSCM.pollChanges(MercurialSCM.java:192)
      at hudson.model.AbstractProject.pollSCMChanges(AbstractProject.java:1033)
      at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:317)
      at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:344)
      at
      hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:114)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      at java.util.concurrent.FutureTask.run(FutureTask.java:123)
      at
      java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
      at
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
      at java.lang.Thread.run(Thread.java:613)

      #]

      I thought at first it was coming from the fact I was using Hudson war 1.323 and
      possibly the Mercurial plug-in was requiring Hudson war 1.324.
      I moved to Hudson 1.324, not better.
      Now I moved to Mercurial plug-in 1.21, not better.
      Any idea ?

        Attachments

          Activity

          Hide
          jglick Jesse Glick added a comment -

          Probably you are using JDK 5? Try JDK 6.

          Show
          jglick Jesse Glick added a comment - Probably you are using JDK 5? Try JDK 6.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : jglick
          Path:
          trunk/hudson/plugins/mercurial/src/main/java/hudson/plugins/mercurial/MercurialSCM.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=22054
          Log:
          [FIXED JENKINS-4528] TimeUnit.HOURS not in JDK 5.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : jglick Path: trunk/hudson/plugins/mercurial/src/main/java/hudson/plugins/mercurial/MercurialSCM.java http://fisheye4.cenqua.com/changelog/hudson/?cs=22054 Log: [FIXED JENKINS-4528] TimeUnit.HOURS not in JDK 5.

            People

            • Assignee:
              jglick Jesse Glick
              Reporter:
              yjoan yjoan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: