PFA my JMeter script. On Sat, Sep 19, 2020 at 12:38 AM Felix Schumacher < felix.schumac...@internetallee.de> wrote:
> > Am 18.09.20 um 19:27 schrieb Mariusz W: > > Felix, > > I think that problem may be connected with default threadName value in > > SampleResult: > > private String threadName = ""; > > > > and the way WebsocketSampler create sample result: > > > https://bitbucket.org/pjtr/jmeter-websocket-samplers/src/master/src/main/java/eu/luminis/jmeter/wssampler/WebsocketSampler.java#lines-120 > > > > SampleResult result = new SampleResult(); > > result.setSampleLabel(getName()); > > > > and all this is connected with TransactionController.sampleOccured: > > SampleResult sampleResult = se.getResult(); > > res.setThreadName(sampleResult.getThreadName()); // <- still "" > > > > such a hypothesis...:) > > Might be. I haven't looked into the sources of websocket sampler yet. > But I did setup a simple test with one websocket sampler and it did fill > in the thread name correctly. > > I think it is OK to guard against a threadname without any space and use > the thread name completely in that case. I would like to see such a > case, though. > > Felix > > > > > Mariusz > > > > On Fri, 18 Sep 2020 at 16:45, Felix Schumacher < > > felix.schumac...@internetallee.de> wrote: > > > >> Am 18.09.20 um 15:39 schrieb Niraj: > >>> Perfect. It worked. Thanks Mariusz. Really Appreciated it. > >> Could you provide us a minimal test plan to reproduce the issue (even > >> knowing, that the workaround helped you)? > >> > >> I think we shouldn't throw an exception in case the thread name is not > >> exactly like we thought it would be. > >> > >> Thanks > >> > >> Felix > >> > >>> On Fri, Sep 18, 2020 at 6:49 PM Mariusz W <mawa...@gmail.com> wrote: > >>> > >>>> Hi, > >>>> Can you try uncheck "include group name in label" in Aggregate Report > >> and > >>>> recheck? > >>>> > >>>> Mariusz > >>>> > >>>> On Fri, 18 Sep 2020 at 14:48, Niraj <niraj.khatm...@gmail.com> wrote: > >>>> > >>>>> Hi All, > >>>>> > >>>>> I am getting below error in JMeter. When I run the test with more > than > >> 10 > >>>>> users, Basically I am running a few Websocket requests using the > >>>> WebSocket > >>>>> plugin (WebSocket Samplers by Peter Doornbosch). Any suggestions on > how > >>>> to > >>>>> fix this? > >>>>> > >>>>> java.lang.StringIndexOutOfBoundsException: String index out of range: > >> -1 > >>>>> at java.lang.String.substring(Unknown Source) ~[?:1.8.0_261] > >>>>> at > >>>>> > >>>>> > >> > org.apache.jmeter.samplers.SampleResult.getSampleLabel(SampleResult.java:586) > >>>>> ~[ApacheJMeter_core.jar:5.3] > >>>>> at > >>>>> > >> > org.apache.jmeter.visualizers.StatVisualizer.add(StatVisualizer.java:118) > >>>>> ~[ApacheJMeter_components.jar:5.3] > >>>>> at > >>>>> > >>>>> > >> > org.apache.jmeter.reporters.ResultCollector.sendToVisualizer(ResultCollector.java:570) > >>>>> ~[ApacheJMeter_core.jar:5.3] > >>>>> at > >>>>> > >>>>> > >> > org.apache.jmeter.reporters.ResultCollector.sampleOccurred(ResultCollector.java:547) > >>>>> ~[ApacheJMeter_core.jar:5.3] > >>>>> at > >>>>> > >>>>> > >> > org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:58) > >>>>> [ApacheJMeter_core.jar:5.3] > >>>>> at > >>>>> > >>>>> > >> > org.apache.jmeter.control.TransactionController.notifyListeners(TransactionController.java:296) > >>>>> [ApacheJMeter_core.jar:5.3] > >>>>> at > >>>>> > >>>>> > >> > org.apache.jmeter.control.TransactionController.nextWithoutTransactionSampler(TransactionController.java:223) > >>>>> [ApacheJMeter_core.jar:5.3] > >>>>> at > >>>>> > >>>>> > >> > org.apache.jmeter.control.TransactionController.next(TransactionController.java:135) > >>>>> [ApacheJMeter_core.jar:5.3] > >>>>> at > >>>>> > >>>>> > >> > org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:224) > >>>>> [ApacheJMeter_core.jar:5.3] > >>>>> at > >>>>> > >>>>> > >> > org.apache.jmeter.control.TransactionController.nextIsAController(TransactionController.java:173) > >>>>> [ApacheJMeter_core.jar:5.3] > >>>>> at > >>>>> > >>>>> > >> > org.apache.jmeter.control.GenericController.next(GenericController.java:174) > >>>>> [ApacheJMeter_core.jar:5.3] > >>>>> at > >>>>> > >>>>> > >> > org.apache.jmeter.control.TransactionController.nextWithoutTransactionSampler(TransactionController.java:205) > >>>>> [ApacheJMeter_core.jar:5.3] > >>>>> at > >>>>> > >>>>> > >> > org.apache.jmeter.control.TransactionController.next(TransactionController.java:135) > >>>>> [ApacheJMeter_core.jar:5.3] > >>>>> at > >>>>> > >>>>> > >> > org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:221) > >>>>> [ApacheJMeter_core.jar:5.3] > >>>>> at > >>>>> > >>>>> > >> > org.apache.jmeter.control.GenericController.next(GenericController.java:174) > >>>>> [ApacheJMeter_core.jar:5.3] > >>>>> at > >> org.apache.jmeter.control.LoopController.next(LoopController.java:134) > >>>>> [ApacheJMeter_core.jar:5.3] > >>>>> at > >>>>> > >>>>> > >> > org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:224) > >>>>> [ApacheJMeter_core.jar:5.3] > >>>>> at > >>>>> > >>>>> > >> > org.apache.jmeter.control.GenericController.next(GenericController.java:174) > >>>>> [ApacheJMeter_core.jar:5.3] > >>>>> at > >> org.apache.jmeter.control.LoopController.next(LoopController.java:134) > >>>>> [ApacheJMeter_core.jar:5.3] > >>>>> at > >>>>> > >>>>> > >> > org.apache.jmeter.threads.AbstractThreadGroup.next(AbstractThreadGroup.java:91) > >>>>> [ApacheJMeter_core.jar:5.3] > >>>>> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:291) > >>>>> [ApacheJMeter_core.jar:5.3] > >>>>> at java.lang.Thread.run(Unknown Source) [?:1.8.0_261] > >>>>> > >>>>> Thanks, > >>>>> Niraj > >>>>> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > >> For additional commands, e-mail: user-h...@jmeter.apache.org > >> > >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > >
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org