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

perforce plugin: exception in parseDateWithTimezone

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • p4-plugin
    • None
    • Jenkins 1.580.3, perforce-plugin 1.3.33

      This is new in 1.3.33. I have downgraded to 1.3.29 to avoid the issue on my end.

      The bug appears to be caused by the new date parsing. Intermittently, changes will throw the following exception and fail our builds:

      Caught exception communicating with perforce. Failed to retrieve changelist.
      at com.tek42.perforce.parse.ChangelistBuilder.build(ChangelistBuilder.java:254)
      at com.tek42.perforce.parse.Changes.getChangelist(Changes.java:69)
      at com.tek42.perforce.parse.Changes.getChangelistsFromNumbers(Changes.java:431)
      at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:1073)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1257)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
      at hudson.model.Run.execute(Run.java:1745)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)
      Caused by: java.lang.NumberFormatException: For input string: ""
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      at java.lang.Long.parseLong(Long.java:453)
      at java.lang.Long.parseLong(Long.java:483)
      at java.text.DigitList.getLong(DigitList.java:194)
      at java.text.DecimalFormat.parse(DecimalFormat.java:1316)
      at java.text.SimpleDateFormat.subParse(SimpleDateFormat.java:2088)
      at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1455)
      at java.text.DateFormat.parse(DateFormat.java:355)
      at com.tek42.perforce.parse.ChangelistBuilder.parseDateWithTimezone(ChangelistBuilder.java:286)
      at com.tek42.perforce.parse.ChangelistBuilder.build(ChangelistBuilder.java:109)
      ... 11 more

            oleg_nenashev Oleg Nenashev
            ndesjardins Nicolas Desjardins
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: