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 2013/03/26 10:32:02 UTC
[Bug 54753] New: StringIndexOutOfBoundsException at
SampleResult.getSampleLabel() if threadName not set
https://issues.apache.org/bugzilla/show_bug.cgi?id=54753
Bug ID: 54753
Summary: StringIndexOutOfBoundsException at
SampleResult.getSampleLabel() if threadName not set
Product: JMeter
Version: 2.9
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: Main
Assignee: issues@jmeter.apache.org
Reporter: dlade@web.de
Classification: Unclassified
Using the StatisticalSampleSender produced always a
StringIndexOutOfBoundsException at SampleResult.getSampleLabel().
I found out that the "threadName" is not set if the parameter "keyOnThreadName"
at StatisticalSampleResult is false, therefore it is empty and a space can't be
found.
IMHO the problem is more based on architecture but on the simple checking if
"threadName" is empty (which is in short terms a workaround). Because the
current implementation is based on the (hidden) knowledge that the
"threadGroup" is part of the "threadName". But this is not always the case,
especially on customized sample results.
Either the "treadGroup" should be part of the SampleResult or the sample label
should be resolved via SampleEvent instead of SampleResult, if needed.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 54753] StringIndexOutOfBoundsException at
SampleResult.getSampleLabel() if key_on_threadname=false when using
Statistical mode
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54753
Sebb <se...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Sebb <se...@apache.org> ---
Thanks for the report.
For some reason, the thread name was not being populated in the
StatisticalSampleResult if key_on_threadname was false. That has been fixed.
URL: http://svn.apache.org/r1461380
Log:
StringIndexOutOfBoundsException at SampleResult.getSampleLabel() if
key_on_threadname=false when using Statistical mode
Bugzilla Id: 5473
Modified:
jmeter/trunk/src/core/org/apache/jmeter/samplers/StatisticalSampleResult.java
jmeter/trunk/src/core/org/apache/jmeter/samplers/StatisticalSampleSender.java
jmeter/trunk/xdocs/changes.xml
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 54753] StringIndexOutOfBoundsException at
SampleResult.getSampleLabel() if threadName not set
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54753
--- Comment #2 from Danny Lade <dl...@web.de> ---
It is rather easy to reproduce - just set following at jmeter.properties:
mode=Statistical
#key_on_threadname=false
Here is the exception:
2013/03/26 15:17:05 ERROR - jmeter.threads.ListenerNotifier: Detected problem
in Listener: java.lang.StringIndexOutOfBoundsException: String index out of
range: -1
at java.lang.String.substring(Unknown Source)
at
org.apache.jmeter.samplers.SampleResult.getSampleLabel(SampleResult.java:530)
at org.apache.jmeter.visualizers.SummaryReport.add(SummaryReport.java:165)
at
org.apache.jmeter.reporters.ResultCollector.sendToVisualizer(ResultCollector.java:525)
at
org.apache.jmeter.reporters.ResultCollector.sampleOccurred(ResultCollector.java:501)
at
org.apache.jmeter.samplers.RemoteSampleListenerImpl.processBatch(RemoteSampleListenerImpl.java:96)
at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown
Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.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)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown
Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at
org.apache.jmeter.samplers.RemoteSampleListenerImpl_Stub.processBatch(Unknown
Source)
at
org.apache.jmeter.samplers.StatisticalSampleSender.sendBatch(StatisticalSampleSender.java:197)
at
org.apache.jmeter.samplers.StatisticalSampleSender.sampleOccurred(StatisticalSampleSender.java:184)
at
org.apache.jmeter.samplers.RemoteListenerWrapper.sampleOccurred(RemoteListenerWrapper.java:104)
at
org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:84)
at
org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:783)
at
org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:442)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256)
at java.lang.Thread.run(Unknown Source)
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 54753] StringIndexOutOfBoundsException at
SampleResult.getSampleLabel() if threadName not set
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54753
Sebb <se...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #1 from Sebb <se...@apache.org> ---
Please can you show the full stack trace?
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 54753] StringIndexOutOfBoundsException at
SampleResult.getSampleLabel() if key_on_threadname=false when using
Statistical mode
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54753
Sebb <se...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
Summary|StringIndexOutOfBoundsExcep |StringIndexOutOfBoundsExcep
|tion at |tion at
|SampleResult.getSampleLabel |SampleResult.getSampleLabel
|() if threadName not set |() if
| |key_on_threadname=false
| |when using Statistical mode
--
You are receiving this mail because:
You are the assignee for the bug.