https://bz.apache.org/bugzilla/show_bug.cgi?id=57956

            Bug ID: 57956
           Summary: The hc.parameters reference in jmeter.properties
                    doesn't work when JMeter is not started in bin
           Product: JMeter
           Version: 2.13
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: [email protected]
          Reporter: [email protected]

There is a reference in the jmeter.properties file:

# define a properties file for overriding Apache HttpClient parameters
# See: TBA
# Uncomment this line if you put anything in hc.parameters file
#hc.parameters.file=hc.parameters

Setup:

1. HttpClient4 used in script.

2. In jmeter.properties, uncomment the line:

     #hc.parameters.file=hc.parameters

3. In the file httpclient.parameters uncomment and modify:

     #http.authentication.preemptive$Boolean=true

   to:

     http.authentication.preemptive$Boolean=false

4. In user.properties, add the line:

     httpclient4.retrycount=1

5. In hc.parameters, uncomment and modify:

     #http.connection.stalecheck$Boolean=false

   to:

     http.connection.stalecheck$Boolean=true


Script is in its own project folder. JMeter bin is specified on the path.

Issue:

When script is run, the following error is written to the log file:

ERROR - jmeter.protocol.http.sampler.HttpClientDefaultParameters: Problem
loading properties java.io.FileNotFoundException: hc.parameters (The system
cannot find the file specified)

Work-around:

If EITHER the hc.parameters file is copied into the folder where JMeter is
started (ugly)

OR the line:

  hc.parameters.file=hc.parameters

is added to the file user.properties (less ugly but not documented usage), the
error does not occur.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to