[JIRA] [performance-plugin] (JENKINS-28787) Number Format exception while using Performance Plugin

34 views
Skip to first unread message

harrish0207@gmail.com (JIRA)

unread,
Jun 8, 2015, 5:18:02 AM6/8/15
to jenkinsc...@googlegroups.com
harrish thangavel created an issue
 
Jenkins / Bug JENKINS-28787
Number Format exception while using Performance Plugin
Issue Type: Bug Bug
Assignee: Manuel Carrasco
Components: performance-plugin
Created: 08/Jun/15 9:17 AM
Labels: plugin
Priority: Blocker Blocker
Reporter: harrish thangavel

Initially Jmeter csv was reporting 100 % errors , then referred this link( https://issues.jenkins-ci.org/browse/JENKINS-28426) which solved the this issue but still in Jmeter field is "timeStamp" where as in the plugin it is "timestamp". Then am facing Number format exception with "timestamp".Please use below details as reference.

Performance: Recording JMeterCsv reports '/appl/linux_jmeter/apache-jmeter-2.13/bin/FunctionalTestResults.jtl'
Performance: Parsing JMeter report file '/appl/jenkins/jobs/Etapi/jobs/Enterprise_Transport_API_Dev_Functional_Testing/builds/39/performance-reports/JMeterCSV/FunctionalTestResults.jtl'.
Performance: Failed to parse file '/appl/jenkins/jobs/Enterprise_Transport_API/jobs/Enterprise_Transport_API_Dev_Functional_Testing/builds/39/performance-reports/JMeterCSV/FunctionalTestResults.jtl': For input string: "timestamp"
java.lang.NumberFormatException: For input string: "timestamp"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:589)
at java.lang.Long.valueOf(Long.java:803)
at hudson.plugins.performance.JMeterCsvParser.getSample(JMeterCsvParser.java:154)
at hudson.plugins.performance.JMeterCsvParser.parse(JMeterCsvParser.java:124)
at hudson.plugins.performance.AbstractParser.parse(AbstractParser.java:66)
at hudson.plugins.performance.PerformancePublisher.perform(PerformancePublisher.java:348)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
at hudson.model.Run.execute(Run.java:1743)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Finished: SUCCESS

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

hitesh.h.patel@gmail.com (JIRA)

unread,
Jul 18, 2016, 5:42:04 AM7/18/16
to jenkinsc...@googlegroups.com
Hitesh Patel resolved as Cannot Reproduce
 

Can you recheck if this is an issue? Maybe the CSV pattern was not specified correctly in the publish performance report plugin.

Please provide a sample file which reproduces the issue using the latest plugin.

Change By: Hitesh Patel
Status: Open Resolved
Resolution: Cannot Reproduce
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

hitesh.h.patel@gmail.com (JIRA)

unread,
Sep 19, 2016, 12:33:04 AM9/19/16
to jenkinsc...@googlegroups.com
Hitesh Patel commented on Bug JENKINS-28787
 
Re: Number Format exception while using Performance Plugin

Encountered similar error with latest changes in master.

Performance: Failed to parse file '/some/path/jobs/jobName/builds/21/performance-reports/JMeter/Test.jtl': For input string: "timeStamp"
java.lang.NumberFormatException: For input string: "timeStamp"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Long.parseLong(Long.java:441)
	at java.lang.Long.valueOf(Long.java:540)
	at hudson.plugins.performance.JMeterCsvParser.getSample(JMeterCsvParser.java:160)
	at hudson.plugins.performance.JMeterCsvParser.parse(JMeterCsvParser.java:131)
	at hudson.plugins.performance.JMeterParser.parseCsv(JMeterParser.java:188)
	at hudson.plugins.performance.JMeterParser.parse(JMeterParser.java:48)
	at hudson.plugins.performance.AbstractParser.parse(AbstractParser.java:56)
	at hudson.plugins.performance.PerformancePublisher.perform(PerformancePublisher.java:346)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
	at hudson.model.Build$BuildExecution.post2(Build.java:185)
	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
	at hudson.model.Run.execute(Run.java:1766)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:410)

hitesh.h.patel@gmail.com (JIRA)

unread,
Sep 19, 2016, 12:37:07 AM9/19/16
to jenkinsc...@googlegroups.com
Hitesh Patel reopened an issue
 
Change By: Hitesh Patel
Resolution: Cannot Reproduce
Status: Resolved Reopened
Assignee: Manuel Carrasco Andrey Pokhilko

hitesh.h.patel@gmail.com (JIRA)

unread,
Sep 19, 2016, 12:37:07 AM9/19/16
to jenkinsc...@googlegroups.com
Hitesh Patel edited a comment on Bug JENKINS-28787
Encountered similar error with latest changes in master.

{noformat}

Performance: Failed to parse file '/some/path/jobs/jobName/builds/21/performance-reports/JMeter/Test.jtl': For input string: "timeStamp"
java.lang.NumberFormatException: For input string: "timeStamp"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:441)
at java.lang.Long.valueOf(Long.java:540)
at hudson.plugins.performance.JMeterCsvParser.getSample(JMeterCsvParser.java:160)
at hudson.plugins.performance.JMeterCsvParser.parse(JMeterCsvParser.java:131)
at hudson.plugins.performance.JMeterParser.parseCsv(JMeterParser.java:188)
at hudson.plugins.performance.JMeterParser.parse(JMeterParser.java:48)
at hudson.plugins.performance.AbstractParser.parse(AbstractParser.java:56)
at hudson.plugins.performance.PerformancePublisher.perform(PerformancePublisher.java:346)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
at hudson.model.Build$BuildExecution.post2(Build.java:185)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
at hudson.model.Run.execute(Run.java:1766)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
{noformat}

Test.jtl file contents
{noformat}
timeStamp,elapsed,label,responseCode,responseMessage,threadName,dataType,success,failureMessage,bytes,grpThreads,allThreads,Latency,IdleTime
1474258562177,906,/SAAS/API/1.0/oauth2/token?grant_type=client_credentials,200,OK,setUp Thread Group 1-1,text,true,,1693,1,1,905,0
1474258563710,81,/SAAS/API/1.0/REST/oauth2/session,200,OK,setUp Thread Group 1-1,text,true,,1755,1,1,81,0
1474258563818,187,/SAAS/jersey/manager/api/oauth2clients,201,Created,setUp Thread Group 1-1,text,true,,1387,1,1,187,0
1474258564088,24,Create random username,200,OK,Login 1-1,text,true,,0,1,1,0,0
1474258564118,6374,/SAAS/auth/oauthtoken?,200,OK,Login 1-1,text,true,,1651,1,1,6374,0
1474258570493,18,Create random username,200,OK,Login 1-1,text,true,,0,1,1,0,0
1474258570512,7479,/SAAS/auth/oauthtoken?,200,OK,Login 1-1,text,true,,1650,1,1,7479,0
1474258577992,20,Create random username,200,OK,Login 1-1,text,true,,0,1,1,0,0
1474258578012,5930,/SAAS/auth/oauthtoken?,200,OK,Login 1-1,text,true,,1651,1,1,5929,0
1474258583942,16,Create random username,200,OK,Login 1-1,text,true,,0,1,1,0,0
1474258583959,752,/SAAS/auth/oauthtoken?,200,OK,Login 1-1,text,true,,1651,1,1,752,0
1474258584712,15,Create random username,200,OK,Login 1-1,text,true,,0,1,1,0,0
1474258584727,413,/SAAS/auth/oauthtoken?,200,OK,Login 1-1,text,true,,1654,1,1,413,0
{noformat}

hitesh.h.patel@gmail.com (JIRA)

unread,
Sep 19, 2016, 12:38:02 AM9/19/16
to jenkinsc...@googlegroups.com
Hitesh Patel assigned an issue to Unassigned
 
Change By: Hitesh Patel
Assignee: Andrey Pokhilko

zmkhp@sina.cn (JIRA)

unread,
Oct 10, 2016, 11:48:01 PM10/10/16
to jenkinsc...@googlegroups.com
zmkhp cn updated an issue
Change By: zmkhp cn
Attachment: timeStamp error.png

zmkhp@sina.cn (JIRA)

unread,
Oct 10, 2016, 11:49:03 PM10/10/16
to jenkinsc...@googlegroups.com

mreigen@yesllama.com (JIRA)

unread,
Oct 13, 2016, 11:21:01 PM10/13/16
to jenkinsc...@googlegroups.com

mreigen@yesllama.com (JIRA)

unread,
Oct 13, 2016, 11:26:03 PM10/13/16
to jenkinsc...@googlegroups.com
minh reigen edited a comment on Bug JENKINS-28787
I got the same error here too:

http://screencast.com/t/NRYuGKjCFAm




{code:java}
Performance: Recording JMeter reports '/home/llamaminh/jmeter-tests/reports/test_result.jtl'
Performance: Parsing JMeter report file '/var/lib/jenkins/jobs/Load Testing PROD/builds/9/performance-reports/JMeter/test_result.jtl'.
Performance: Failed to parse file '/var/lib/jenkins/jobs/Load Testing PROD/builds/9/performance-reports/JMeter/test_result.jtl': For input string: "timeStamp"

java.lang.NumberFormatException: For input string: "timeStamp"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:441)
at java.lang.Long.valueOf(Long.java:540)
at hudson.plugins.performance.JMeterCsvParser.getSample(JMeterCsvParser.java:153)
at hudson.plugins.performance.JMeterCsvParser.parse(JMeterCsvParser.java:124)
at hudson.plugins.performance.JMeterParser.parseCsv(JMeterParser.java:189)

at hudson.plugins.performance.JMeterParser.parse(JMeterParser.java:48)
at hudson.plugins.performance.AbstractParser.parse(AbstractParser.java:56)
at hudson.plugins.performance.PerformancePublisher.perform(PerformancePublisher.java:347)

at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
at hudson.model.Build$BuildExecution.post2(Build.java:185)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
at hudson.model.Run.execute(Run.java:1745)

at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:404)
Finished: SUCCESS
{code}

hitesh.h.patel@gmail.com (JIRA)

unread,
Oct 14, 2016, 1:49:02 AM10/14/16
to jenkinsc...@googlegroups.com

hitesh.h.patel@gmail.com (JIRA)

unread,
Oct 14, 2016, 1:54:02 AM10/14/16
to jenkinsc...@googlegroups.com

Andrey Pokhilko If possible, can you include pull request #71, for the 1.15 release. Thanks.

scm_issue_link@java.net (JIRA)

unread,
Oct 14, 2016, 3:14:04 AM10/14/16
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: hitesh22
Path:
src/main/java/hudson/plugins/performance/JMeterCsvParser.java
src/test/java/hudson/plugins/performance/JMeterCsvParserTest.java
http://jenkins-ci.org/commit/performance-plugin/86a14eb4a74c5b3826fc06b2c315b9b1125561c7
Log:
[FIXES JENKINS-28787]: Fixes number format exception (#71)

When JMeter parser is used and a csv file contains header line, a number format exception is thrown.
Fix is to check if the first line is a header and skip the line if it is a header.
Note: Noticed that if there was a test for the constructor with glob only, this issue
would have been caught in testing.

Test added and refactored for cleanup.

scm_issue_link@java.net (JIRA)

unread,
Oct 14, 2016, 3:14:05 AM10/14/16
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon resolved as Fixed
 
Change By: SCM/JIRA link daemon
Status: Reopened Resolved
Resolution: Fixed

apc4@ya.ru (JIRA)

unread,
Oct 14, 2016, 3:14:07 AM10/14/16
to jenkinsc...@googlegroups.com

apc4@ya.ru (JIRA)

unread,
Oct 14, 2016, 3:14:07 AM10/14/16
to jenkinsc...@googlegroups.com

zmkhp@sina.cn (JIRA)

unread,
Oct 16, 2016, 9:44:01 PM10/16/16
to jenkinsc...@googlegroups.com
zmkhp cn updated an issue
Change By: zmkhp cn
Attachment: screenshot-1.png

zmkhp@sina.cn (JIRA)

unread,
Oct 16, 2016, 9:45:01 PM10/16/16
to jenkinsc...@googlegroups.com
zmkhp cn commented on Bug JENKINS-28787
 
Re: Number Format exception while using Performance Plugin

One more question:After the upgrade 1.15,it will generate two reports as the attachment .
And it is exactly the same in the two reports.
Thanks!

Reply all
Reply to author
Forward
0 new messages