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

NumberFormatException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: perforce-plugin
    • Labels:
      None
    • Environment:
      Platform: Other, OS: Windows XP
    • Similar Issues:

      Description

      I'm seeing a NumberFormatException in the hudson logs. It doesn't appear to be fatal in any way.

      Jun 16, 2008 8:33:02 PM hudson.triggers.SCMTrigger$Runner runPolling
      SEVERE: Failed to record SCM polling
      java.lang.NumberFormatException: For input string: "revision"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
      at java.lang.Integer.parseInt(Integer.java:447)
      at java.lang.Integer.<init>(Integer.java:620)
      at com.tek42.perforce.parse.Changes.getChangeNumbersToForSinglePath(Changes.java:217)
      at com.tek42.perforce.parse.Changes.getChangeNumbersTo(Changes.java:171)
      at com.tek42.perforce.parse.Changes.getChangeNumbersTo(Changes.java:127)
      at hudson.plugins.perforce.PerforceSCM.pollChanges(PerforceSCM.java:401)
      at hudson.model.AbstractProject.pollSCMChanges(AbstractProject.java:621)
      at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:253)
      at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:285)
      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:650)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      at java.lang.Thread.run(Thread.java:595)

        Attachments

          Activity

          Hide
          zoosnack zoosnack added a comment -

          changing Platform to Win XP.

          Show
          zoosnack zoosnack added a comment - changing Platform to Win XP.
          Hide
          digerata digerata added a comment -

          It looks like the plugin is not able to parse the response from the Perforce
          server. There should be some other lines in the log that look like:

          Executing: p4 changes -m 25...

          This should be directly before the exception happens. If this is present, can
          you copy the p4 changes command and run it from the command line? If you can
          copy and paste the output of that, I can make sure the P4Java library correctly
          handles whatever it is that is breaking it.

          Show
          digerata digerata added a comment - It looks like the plugin is not able to parse the response from the Perforce server. There should be some other lines in the log that look like: Executing: p4 changes -m 25... This should be directly before the exception happens. If this is present, can you copy the p4 changes command and run it from the command line? If you can copy and paste the output of that, I can make sure the P4Java library correctly handles whatever it is that is breaking it.
          Hide
          zoosnack zoosnack added a comment -

          No such log message. The previous P4 Command is:
          p4 workspace -o tpe_build_hudson_tpe

          Then there is (removed timestamp and other info)
          hudson.triggers.SCMTrigger$Runner run
          SCM changes detected in TD Content at tip with SNAPSHOT TPE. Job is already in the queue
          hudson.triggers.SCMTrigger$Runner runPolling
          SEVERE: Failed to record SCM polling
          java.lang.NumberFormatException: For input string: "revision"

          Show
          zoosnack zoosnack added a comment - No such log message. The previous P4 Command is: p4 workspace -o tpe_build_hudson_tpe Then there is (removed timestamp and other info) hudson.triggers.SCMTrigger$Runner run SCM changes detected in TD Content at tip with SNAPSHOT TPE. Job is already in the queue hudson.triggers.SCMTrigger$Runner runPolling SEVERE: Failed to record SCM polling java.lang.NumberFormatException: For input string: "revision"
          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          Un-assigning this from digerata per request by him.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - Un-assigning this from digerata per request by him.
          Hide
          stimms stimms added a comment -

          I have also seen this problem. It actually breaks my builds. I've submitted a
          patch for the tek42 libraries which should address the problem and also provide
          some logging information in the hopes a better fix can be created than what I
          came up with.

          Show
          stimms stimms added a comment - I have also seen this problem. It actually breaks my builds. I've submitted a patch for the tek42 libraries which should address the problem and also provide some logging information in the hopes a better fix can be created than what I came up with.
          Hide
          stimms stimms added a comment -

          now fixed in svn

          Show
          stimms stimms added a comment - now fixed in svn
          Hide
          torbent torbent added a comment -

          I've just upgraded the perforce plugin to 1.0.28 and Hudson to 1.354, and am now seeing the same error (almost).

          14-04-2010 12:43:13 hudson.triggers.SCMTrigger$Runner runPolling

          SEVERE: Failed to record SCM polling

          java.lang.NumberFormatException: For input string: "-"

          at java.lang.NumberFormatException.forInputString(Unknown Source)

          at java.lang.Integer.parseInt(Unknown Source)

          at java.lang.Integer.(Unknown Source)

          at com.tek42.perforce.parse.Changes.getChangeNumbers(Changes.java:144)

          at hudson.plugins.perforce.PerforceSCM.needToBuild(PerforceSCM.java:735)

          at hudson.plugins.perforce.PerforceSCM.pollChanges(PerforceSCM.java:639)

          at hudson.scm.SCM.poll(SCM.java:370)

          at hudson.model.AbstractProject.poll(AbstractProject.java:1157)

          at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:330)

          at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:359)

          at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)

          at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

          at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

          at java.util.concurrent.FutureTask.run(Unknown Source)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

          at java.lang.Thread.run(Unknown Source)

          I haven't figured out which build(s) this is happening for, so cannot provide more information. What should I look for, and where?

          Show
          torbent torbent added a comment - I've just upgraded the perforce plugin to 1.0.28 and Hudson to 1.354, and am now seeing the same error (almost). 14-04-2010 12:43:13 hudson.triggers.SCMTrigger$Runner runPolling SEVERE: Failed to record SCM polling java.lang.NumberFormatException: For input string: "-" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.(Unknown Source) at com.tek42.perforce.parse.Changes.getChangeNumbers(Changes.java:144) at hudson.plugins.perforce.PerforceSCM.needToBuild(PerforceSCM.java:735) at hudson.plugins.perforce.PerforceSCM.pollChanges(PerforceSCM.java:639) at hudson.scm.SCM.poll(SCM.java:370) at hudson.model.AbstractProject.poll(AbstractProject.java:1157) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:330) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:359) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) I haven't figured out which build(s) this is happening for, so cannot provide more information. What should I look for, and where?

            People

            • Assignee:
              Unassigned
              Reporter:
              zoosnack zoosnack
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: