Sorry, I was a bit to lazy there (rtfm on me)! Tried adding a Loop controller and setting the Sampler as child, which worked.
- Mikael On 30/03/06, Mikael Andersson <[EMAIL PROTECTED]> wrote: > > Hi, > your email got me thinking about how I specify the hostname and I had > http:// included in the name.. > Removed http:// and only kept the host name, that removed the previous > error :) Thanks! > > But now I have anothe question, how to I run through the entire log file? > My current project structure only seem to run one query, I thought the > Access log sampler would iterate over the entire log? > > > > On 30/03/06, Peter Lin <[EMAIL PROTECTED]> wrote: > > > > are you going to a proxy by any chance? the error shows it might be > > proxy > > related. > > > > peter > > > > > > On 3/30/06, Mikael Andersson <[EMAIL PROTECTED]> wrote: > > > > > > Hi > > > > > > I am encountering a problem when using Access log sampler with apache > > log > > > files. I followed "Access log sampler Step-by-step" turorial ( > > > > > > > > http://jakarta.apache.org/jmeter/usermanual/jmeter_accesslog_sampler_step_by_step.pdf > > > ), > > > but still can not get it to work. > > > > > > Test Structure: > > > -Test Plan > > > -ThreadGroup > > > -Uniform random timer > > > - Access Log Sampler > > > - Aggregate Report > > > > > > Some jmeter.log content: > > > 2006/03/30 19:06:35 DEBUG - jmeter.testbeans.TestBeanHelper: Preparing > > > class > > > org.apache.jmeter.protocol.http.sampler.AccessLogSampler > > > 2006/03/30 19:06:35 DEBUG - jmeter.testbeans.TestBeanHelper: Setting > > > domain= > > > http://web1.ebi.ac.uk > > > 2006/03/30 19:06:35 DEBUG - jmeter.testbeans.TestBeanHelper : Setting > > > portString=8550 > > > 2006/03/30 19:06:35 DEBUG - jmeter.testbeans.TestBeanHelper: Setting > > > imageParsing=false > > > 2006/03/30 19:06:35 DEBUG - jmeter.testbeans.TestBeanHelper: Setting > > > parserClassName= > > org.apache.jmeter.protocol.http.util.accesslog.TCLogParser > > > 2006/03/30 19:06:35 DEBUG - jmeter.testbeans.TestBeanHelper: Setting > > > filterClassName= > > org.apache.jmeter.protocol.http.util.accesslog.LogFilter > > > 2006/03/30 19:06:35 DEBUG - jmeter.testbeans.TestBeanHelper: Setting > > > logFile=/scratch/usr/jmeter_work/log_dbfetch_get > > > 2006/03/30 19:06:35 DEBUG - > > > jmeter.protocol.http.util.accesslog.TCLogParser: > > > parsing line: web-nat-250-2.web-nat.ebi.ac.uk - - > > [29/Mar/2006:23:59:20 > > > +0100] "GET /Tools/dbfetch/dbfetch?db=embl&id=NM_007045&style=raw > > > HTTP/1.0" > > > 200 19 "-" "lwp-trivial/1.40" > > > 2006/03/30 19:06:35 DEBUG - > > > jmeter.protocol.http.util.accesslog.TCLogParser: > > > filter is not null > > > 2006/03/30 19:06:35 DEBUG - > > > jmeter.protocol.http.util.accesslog.TCLogParser: > > > line was not filtered > > > 2006/03/30 19:06:35 DEBUG - > > jmeter.protocol.http.sampler.HTTPSamplerBase: > > > adding argument: name: db value: embl metaData: = > > > 2006/03/30 19:06:35 DEBUG - > > jmeter.protocol.http.sampler.HTTPSamplerBase : > > > adding argument: name: id value: NM_007045 metaData: = > > > 2006/03/30 19:06:35 DEBUG - > > jmeter.protocol.http.sampler.HTTPSamplerBase: > > > adding argument: name: style value: raw metaData: = > > > 2006/03/30 19:06:35 DEBUG - jmeter.protocol.http.sampler.HTTPSampler: > > > Start > > > : samplehttp://[ > > > > > > http://web1.ebi.ac.uk]:8550/Tools/dbfetch/dbfetch?db=embl&id=NM_007045&style=raw > > > > <http://web1.ebi.ac.uk%5D:8550/Tools/dbfetch/dbfetch?db=embl&id=NM_007045&style=raw> > > > 2006/03/30 19:06:35 WARN - > > jmeter.protocol.http.sampler.AccessLogSampler: > > > Sampling failure java.lang.IllegalArgumentException: URI can't be > > null. > > > at sun.net.spi.DefaultProxySelector.select ( > > > DefaultProxySelector.java > > > :111) > > > at sun.net.www.protocol.http.HttpURLConnection.plainConnect( > > > HttpURLConnection.java:739) > > > at sun.net.www.protocol.http.HttpURLConnection.connect ( > > > HttpURLConnection.java:669) > > > at sun.net.www.protocol.http.HttpURLConnection.getInputStream( > > > HttpURLConnection.java:913) > > > at sun.net.www.protocol.http.HttpURLConnection.getHeaderField( > > > HttpURLConnection.java:1866) > > > at > > org.apache.jmeter.protocol.http.sampler.HTTPSampler.disconnect( > > > HTTPSampler.java:510) > > > at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample( > > > HTTPSampler.java:504) > > > at > > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample( > > > HTTPSamplerBase.java:514) > > > at > > > > > org.apache.jmeter.protocol.http.sampler.AccessLogSampler.sampleWithParser( > > > AccessLogSampler.java:161) > > > at > > org.apache.jmeter.protocol.http.sampler.AccessLogSampler.sample > > > ( > > > AccessLogSampler.java:178) > > > at org.apache.jmeter.threads.JMeterThread.run ( > > JMeterThread.java > > > :247) > > > at java.lang.Thread.run(Thread.java:595) > > > > > > > > > Grateful for any help. > > > Cheers, > > > Mikael > > > > > > > > > > >

