Error on Page Data Extractor: java.lang.IndexOutOfBoundsException: No group 1

89 views
Skip to first unread message

paul.ma...@gmail.com

unread,
Mar 11, 2013, 3:18:14 PM3/11/13
to jmeter-...@googlegroups.com
Hi,

I'm trying to use the Page Data Extractor plugin, but I'm having a lot of trouble.

I'm generating an HTTP Request, and the response data  is something like this:

STATS-APPLICATION=TOMCAT LB2<br/>
STATS-TOTAL_REQUESTS=34<br/>
STATS-ACTIVE_SESSIONS_COUNTER=19<br/>
STATS-TOMCAT LB2-ACTIVE_REQUEST_COUNTER=1<br/>

The values configured for Page Data Extractor are:

Chart Label:      (STATS-TOMCAT LB.*-ACTIVE_REQUEST_COUNTER)=
Regular Expression Value Extractor:  STATS-TOMCAT LB.*-ACTIVE_REQUEST_COUNTER=(.*?)<br/>

(I'm trying to get the value for STATS-TOMCAT LB2-ACTIVE_REQUEST_COUNTER)


The labels seems to be catched correctly because the GUI show me the valid options in the ROWS tab. But the values are wrong.
And when I open the Log Viewer, I'm getting this exceptions:

2013/03/11 14:01:34 INFO  - jmeter.threads.JMeterThread: Thread finished: Grupo de Hilos 1-9
2013/03/11 14:01:35 ERROR - jmeter.threads.ListenerNotifier: Detected problem in Listener:  java.lang.IndexOutOfBoundsException: No group 1
    at java.util.regex.Matcher.group(Matcher.java:470)
    at kg.apc.jmeter.vizualizers.PageDataExtractorOverTimeGui.processPageLabel(PageDataExtractorOverTimeGui.java:255)
    at kg.apc.jmeter.vizualizers.PageDataExtractorOverTimeGui.add(PageDataExtractorOverTimeGui.java:315)
    at org.apache.jmeter.reporters.ResultCollector.sendToVisualizer(ResultCollector.java:525)
    at org.apache.jmeter.reporters.ResultCollector.sampleOccurred(ResultCollector.java:501)
    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(Thread.java:662)


I tested the REGEXP agains this: http://regexpal.com/ and it seems ok.

My Jmeter Version is 2.9.

What could I've been missing?

Thanks.






Reply all
Reply to author
Forward
0 new messages