You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2016/09/13 09:32:31 UTC
[Bug 60125] New: Report / Dashboard : Dashboard cannot be generated
if the default delimiter is \t
https://bz.apache.org/bugzilla/show_bug.cgi?id=60125
Bug ID: 60125
Summary: Report / Dashboard : Dashboard cannot be generated if
the default delimiter is \t
Product: JMeter
Version: 3.0
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Main
Assignee: issues@jmeter.apache.org
Reporter: tamas.szabadi@rightside.co
If the delimiter is set up for tab, the dashboard cannot be generated.
Steps to reproduce:
1. Use the following property for setting up the tab in the user.properties:
jmeter.save.saveservice.default_delimiter=\t
2. Try to run and generate the dashboard.
Expected result:
Report dashboard should be generated.
Actual result:
The following error appears:
Writing log file to: d:\apache-jmeter-3.0\bin\jmeter.log
Creating summariser <summary>
An error occurred: null
errorlevel=1
Press any key to continue . . .
In the jmeter.log the following exception happens:
2016/09/13 02:27:48 INFO - jmeter.JMeter: Creating summariser <summary>
2016/09/13 02:27:48 FATAL - jmeter.JMeter: An error occurred:
java.lang.ExceptionInInitializerError
at org.apache.jmeter.JMeter.runNonGui(JMeter.java:922)
at org.apache.jmeter.JMeter.startNonGui(JMeter.java:876)
at org.apache.jmeter.JMeter.start(JMeter.java:501)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.jmeter.NewDriver.main(NewDriver.java:259)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of
range: 0
at java.lang.String.charAt(String.java:658)
at
org.apache.jmeter.report.dashboard.ReportGenerator.<clinit>(ReportGenerator.java:80)
... 8 more
It seems that when in the ReportGenerator.java file the property is read like
this:
private static final char CSV_DEFAULT_SEPARATOR =
JMeterUtils.getPropDefault("jmeter.save.saveservice.default_delimiter",
",").charAt(0); //$NON-NLS-1$ //$NON-NLS-2$
And getPropDefault will trim the value before returning, so the tab will be
trimmed down, and then charAt(0) will be called for an empty string.
Let me know if you need any more information.
Regards,
Tamas
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 60125] Report / Dashboard : Dashboard cannot be generated if
the default delimiter is \t
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60125
--- Comment #1 from Felix Schumacher <fe...@internetallee.de> ---
Created attachment 34254
--> https://bz.apache.org/bugzilla/attachment.cgi?id=34254&action=edit
Add special handling for TAB and SPACE
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 60125] Report / Dashboard : Dashboard cannot be generated if
the default delimiter is \t
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60125
Antonio Gomes Rodrigues <ra...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ra0077@gmail.com
OS| |All
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 60125] Report / Dashboard : Dashboard cannot be generated if
the default delimiter is \t
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60125
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |p.mouawad@ubik-ingenierie.c
| |om
Resolution|--- |FIXED
--- Comment #2 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Author: pmouawad
Date: Sat Sep 17 12:33:09 2016
New Revision: 1761205
URL: http://svn.apache.org/viewvc?rev=1761205&view=rev
Log:
Bug 60125 - Report / Dashboard : Dashboard cannot be generated if the default
delimiter is \t
Bugzilla Id: 60125
Modified:
jmeter/trunk/src/core/org/apache/jmeter/report/core/CsvSampleReader.java
jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/ReportGenerator.java
jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleSaveConfiguration.java
jmeter/trunk/src/core/org/apache/jmeter/util/JMeterUtils.java
jmeter/trunk/xdocs/changes.xml
--
You are receiving this mail because:
You are the assignee for the bug.