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

SCM polling fails due to NumberFormat problem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • cvs-plugin
    • None
    • Platform: PC, OS: Linux

      Ubuntu 8.04.1
      Hudson 1.274 on Glassfish V2 Update 1 (2.0.1-0ubuntu5)
      LANGUAGE=de_DE.UTF-8:de:en_GB:en
      Maven 2.0.9
      Polling interval: * * * * * (every minute)
      Cvs repository located on the same machine

      Hello,
      I'm having trouble getting the SCM Polling to run. Every minute I get following
      stack trace on the console:

      14.01.2009 10:24:50 hudson.triggers.SCMTrigger
      SCHWERWIEGEND: Failed to record SCM polling
      java.lang.IllegalArgumentException: Cannot format given Object as a Number
      at java.text.NumberFormat.format(NumberFormat.java:230)
      at java.text.Format.format(Format.java:140)
      at java.text.MessageFormat.subformat(MessageFormat.java:1228)
      at java.text.MessageFormat.format(MessageFormat.java:836)
      at java.text.Format.format(Format.java:140)
      at java.text.MessageFormat.format(MessageFormat.java:812)
      at org.jvnet.localizer.ResourceBundleHolder.format(ResourceBundleHolder.java:139)
      at hudson.Messages.Util_second(Messages.java:165)
      at hudson.Util.getTimeSpanString(Util.java:506)
      at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:373)
      at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:405)
      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:885)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
      at java.lang.Thread.run(Thread.java:619)

      I looked into the sources and unfortunately the engendering line is just a
      logging command. However, when I start the build manually everything works
      perfectly! I'm not sure if the causing problem is due to the german locale..

      Finally the cvs protocol:
      Started on 14.01.2009 10:34:49
      [workspace] $ cvs -q -z0 -n update -PdC -D "Wednesday, January 14, 2009 9:34:49
      AM UTC"
      U pom.xml
      cvs update: New directory `apps/jkcAlmoTestApp/src/main/resources' – ignored
      cvs update: New directory `ejbs/jkcCommunicationEjb/src/main/resources' – ignored
      cvs update: New directory `ejbs/jkcDataServicesEjb/src/main/resources' – ignored
      cvs update: New directory `ejbs/jkcEventCalendarEjb/setup' – ignored
      cvs update: New directory `webs/jkcAlmoServerWeb/src/main/webapp/WEB-INF/lib' –
      ignored
      cvs update: New directory `webs/jkcIsmWeb/src/main/webapp/WEB-INF/lib' – ignored
      cvs update: New directory `webs/jkcTestWeb/src/main/webapp/WEB-INF/lib' – ignored

      The only update I checked in was pom.xml in the first line. The update
      recognition remains in the cvs protocol every upcoming minute.

            mindless Alan Harder
            senortorpedo senortorpedo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: