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

jenkins cannot parse timestamp in jtl file

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      jenkins cannot parse timestamp in jtl file

       

      Getting Error while the script ran successfully. The JTL file generated previously were not showing any error in parsing time stamp , but now showing like '2021/01/15 14:03:00'

      and hence the error showing while parsing. Please review below output and help me out in solving it

       

      C:\Program Files (x86)\Jenkins\workspace\TEST>jmeter -Jjmeter.save.service.output_format=xml -n -Jjmeterengine.force.system.exit=true -t E:\JmeterScripts\Website.jmx -l E:\JmeterScripts\Website.jtl
      Creating summariser <summary>
      Created the tree successfully using E:\JmeterScripts\Website.jmx
      Starting standalone test @ Sun Jan 17 18:11:37 IST 2021 (1610887297588)
      Waiting for possible Shutdown/StopTestNow/HeapDump/ThreadDump message on port 4445
      Warning: Nashorn engine is planned to be removed from a future JDK release
      summary = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
      Tidying up ... @ Sun Jan 17 18:11:43 IST 2021 (1610887303974)
      ... end of run
      Creating parser with percentiles:'0,50,90,100,' filterRegex:
      Performance: Recording JMeterCsv reports 'C:\Program Files (x86)\Jenkins\jobs\Website_Performance\builds\1025\temp\Website.jtl'
      Performance: JMeterCsv copying reports to master, files '[C:\Program Files (x86)\Jenkins\jobs\Website_Performance\builds\1025\temp\Website.jtl]'
      Performance: JMeterCsv parsing local reports '[C:\Program Files (x86)\Jenkins\jobs\Website_Performance\builds\1025\performance-reports\JMeterCSV\Website.jtl]'
      Performance: Parsing report file 'C:\Program Files (x86)\Jenkins\jobs\Website_Performance\builds\1025\performance-reports\JMeterCSV\Website.jtl' with filterRegex ''.
      Performance: Failed to parse file 'C:\Program Files (x86)\Jenkins\jobs\Website_Performance\builds\1025\performance-reports\JMeterCSV\Website.jtl': Cannot parse timestamp: 2021/01/15 14:03:00. Please, use one of supported formats: [yyyy/MM/dd HH:mm:ss.SSS, yyyy-MM-dd HH:mm:ss.SSS, yyyy-MM-dd HH:mm:ss,SSS, yyyy/mm/dd HH:mm:ss]
      java.lang.IllegalArgumentException: Cannot parse timestamp: 2021/01/15 14:03:00. Please, use one of supported formats: [yyyy/MM/dd HH:mm:ss.SSS, yyyy-MM-dd HH:mm:ss.SSS, yyyy-MM-dd HH:mm:ss,SSS, yyyy/mm/dd HH:mm:ss]
      at hudson.plugins.performance.parsers.AbstractParser.parseTimestamp(AbstractParser.java:216)
      at hudson.plugins.performance.parsers.JMeterCsvParser.getSample(JMeterCsvParser.java:136)
      at hudson.plugins.performance.parsers.JMeterCsvParser.parseCSV(JMeterCsvParser.java:80)
      at hudson.plugins.performance.parsers.JMeterCsvParser.parse(JMeterCsvParser.java:70)
      at hudson.plugins.performance.parsers.AbstractParser.parse(AbstractParser.java:85)
      at hudson.plugins.performance.PerformancePublisher.locatePerformanceReports(PerformancePublisher.java:467)
      at hudson.plugins.performance.PerformancePublisher.prepareEvaluation(PerformancePublisher.java:416)
      at hudson.plugins.performance.PerformancePublisher.perform(PerformancePublisher.java:387)
      at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
      at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:753)
      at hudson.model.Build$BuildExecution.post2(Build.java:177)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:698)
      at hudson.model.Run.execute(Run.java:1932)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:429)
      Caused by: java.text.ParseException: Unparseable date: "2021/01/15 14:03:00"
      at java.text.DateFormat.parse(Unknown Source)
      at hudson.plugins.performance.parsers.AbstractParser.parseTimestamp(AbstractParser.java:213)
      ... 18 more
      Finished: SUCCESS

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            undera Andrey Pokhilko
            Reporter:
            nitinqa Nitin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: