title: JMeter 3.0 testplan doesn't work in non GUI mode
body: <p>The plan runs fine in GUI mode.
  It also runs in non GUI-mode, but doesn't send proper(?) HTTP requests...</p>
  
  <p>This is how I launch it:
  sh jmeter.sh -n -t thread-test.jmx -l thread-test.csv</p>
  
  <p>When running in the GUI the request is correct:</p>
  
  <pre><code>GET http://www.bing.com/
  
  [no cookies]
  
  Request Headers:
  Connection: keep-alive
  Host: www.bing.com
  User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_73)
  </code></pre>
  
  <p>But when run using non GUI-mode the request has no data to display:
  No data to display</p>
  
  <p>The sampler result looks like this:</p>
  
  <pre><code>Thread Name: Thread Group 1-1
  Sample Start: 2016-11-01 15:24:04 CET
  Load time: 141
  Connect Time: 0
  Latency: 141
  Size in bytes: 85790
  Headers size in bytes: 0
  Body size in bytes: 0
  Sample Count: 1
  Error Count: 0
  Data type ("text"|"bin"|""): text
  Response code: 200
  Response message: OK
  </code></pre>
  
  <p>Response headers:</p>
  
  <p>SampleResult fields:
  ContentType: 
  DataEncoding: null</p>
  
  <p>Any idea? I'm stumped...</p>
  
  <p>Here's the test plan:</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;jmeterTestPlan version="1.2" properties="2.9" jmeter="3.0 r1743807"&gt;
    &lt;hashTree&gt;
      &lt;TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true"&gt;
        &lt;stringProp name="TestPlan.comments"&gt;&lt;/stringProp&gt;
        &lt;boolProp name="TestPlan.functional_mode"&gt;false&lt;/boolProp&gt;
        &lt;boolProp name="TestPlan.serialize_threadgroups"&gt;false&lt;/boolProp&gt;
        &lt;elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"&gt;
          &lt;collectionProp name="Arguments.arguments"/&gt;
        &lt;/elementProp&gt;
        &lt;stringProp name="TestPlan.user_define_classpath"&gt;&lt;/stringProp&gt;
      &lt;/TestPlan&gt;
      &lt;hashTree&gt;
        &lt;ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group" enabled="true"&gt;
          &lt;stringProp name="ThreadGroup.on_sample_error"&gt;stoptest&lt;/stringProp&gt;
          &lt;elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true"&gt;
            &lt;boolProp name="LoopController.continue_forever"&gt;false&lt;/boolProp&gt;
            &lt;stringProp name="LoopController.loops"&gt;1&lt;/stringProp&gt;
          &lt;/elementProp&gt;
          &lt;stringProp name="ThreadGroup.num_threads"&gt;1&lt;/stringProp&gt;
          &lt;stringProp name="ThreadGroup.ramp_time"&gt;1&lt;/stringProp&gt;
          &lt;longProp name="ThreadGroup.start_time"&gt;1478003529000&lt;/longProp&gt;
          &lt;longProp name="ThreadGroup.end_time"&gt;1478003529000&lt;/longProp&gt;
          &lt;boolProp name="ThreadGroup.scheduler"&gt;false&lt;/boolProp&gt;
          &lt;stringProp name="ThreadGroup.duration"&gt;&lt;/stringProp&gt;
          &lt;stringProp name="ThreadGroup.delay"&gt;&lt;/stringProp&gt;
        &lt;/ThreadGroup&gt;
        &lt;hashTree&gt;
          &lt;HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HTTP Request" enabled="true"&gt;
            &lt;elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true"&gt;
              &lt;collectionProp name="Arguments.arguments"/&gt;
            &lt;/elementProp&gt;
            &lt;stringProp name="HTTPSampler.domain"&gt;www.bing.com&lt;/stringProp&gt;
            &lt;stringProp name="HTTPSampler.port"&gt;&lt;/stringProp&gt;
            &lt;stringProp name="HTTPSampler.connect_timeout"&gt;&lt;/stringProp&gt;
            &lt;stringProp name="HTTPSampler.response_timeout"&gt;&lt;/stringProp&gt;
            &lt;stringProp name="HTTPSampler.protocol"&gt;&lt;/stringProp&gt;
            &lt;stringProp name="HTTPSampler.contentEncoding"&gt;&lt;/stringProp&gt;
            &lt;stringProp name="HTTPSampler.path"&gt;&lt;/stringProp&gt;
            &lt;stringProp name="HTTPSampler.method"&gt;GET&lt;/stringProp&gt;
            &lt;boolProp name="HTTPSampler.follow_redirects"&gt;true&lt;/boolProp&gt;
            &lt;boolProp name="HTTPSampler.auto_redirects"&gt;false&lt;/boolProp&gt;
            &lt;boolProp name="HTTPSampler.use_keepalive"&gt;true&lt;/boolProp&gt;
            &lt;boolProp name="HTTPSampler.DO_MULTIPART_POST"&gt;false&lt;/boolProp&gt;
            &lt;boolProp name="HTTPSampler.BROWSER_COMPATIBLE_MULTIPART"&gt;true&lt;/boolProp&gt;
            &lt;boolProp name="HTTPSampler.image_parser"&gt;true&lt;/boolProp&gt;
            &lt;boolProp name="HTTPSampler.concurrentDwn"&gt;true&lt;/boolProp&gt;
            &lt;boolProp name="HTTPSampler.monitor"&gt;false&lt;/boolProp&gt;
            &lt;stringProp name="HTTPSampler.embedded_url_re"&gt;&lt;/stringProp&gt;
          &lt;/HTTPSamplerProxy&gt;
          &lt;hashTree/&gt;
          &lt;ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"&gt;
            &lt;boolProp name="ResultCollector.error_logging"&gt;false&lt;/boolProp&gt;
            &lt;objProp&gt;
              &lt;name&gt;saveConfig&lt;/name&gt;
              &lt;value class="SampleSaveConfiguration"&gt;
                &lt;time&gt;true&lt;/time&gt;
                &lt;latency&gt;true&lt;/latency&gt;
                &lt;timestamp&gt;true&lt;/timestamp&gt;
                &lt;success&gt;true&lt;/success&gt;
                &lt;label&gt;true&lt;/label&gt;
                &lt;code&gt;true&lt;/code&gt;
                &lt;message&gt;true&lt;/message&gt;
                &lt;threadName&gt;true&lt;/threadName&gt;
                &lt;dataType&gt;true&lt;/dataType&gt;
                &lt;encoding&gt;false&lt;/encoding&gt;
                &lt;assertions&gt;true&lt;/assertions&gt;
                &lt;subresults&gt;true&lt;/subresults&gt;
                &lt;responseData&gt;false&lt;/responseData&gt;
                &lt;samplerData&gt;false&lt;/samplerData&gt;
                &lt;xml&gt;false&lt;/xml&gt;
                &lt;fieldNames&gt;true&lt;/fieldNames&gt;
                &lt;responseHeaders&gt;false&lt;/responseHeaders&gt;
                &lt;requestHeaders&gt;false&lt;/requestHeaders&gt;
                &lt;responseDataOnError&gt;false&lt;/responseDataOnError&gt;
                &lt;saveAssertionResultsFailureMessage&gt;true&lt;/saveAssertionResultsFailureMessage&gt;
                &lt;assertionsResultsToSave&gt;0&lt;/assertionsResultsToSave&gt;
                &lt;bytes&gt;true&lt;/bytes&gt;
                &lt;threadCounts&gt;true&lt;/threadCounts&gt;
                &lt;idleTime&gt;true&lt;/idleTime&gt;
              &lt;/value&gt;
            &lt;/objProp&gt;
            &lt;stringProp name="filename"&gt;/Users/jboive/Downloads/apache-jmeter-3.0/bin/thread-test.csv&lt;/stringProp&gt;
          &lt;/ResultCollector&gt;
          &lt;hashTree/&gt;
        &lt;/hashTree&gt;
      &lt;/hashTree&gt;
    &lt;/hashTree&gt;
  &lt;/jmeterTestPlan&gt;
  </code></pre>
  
  <p>Here's the log:</p>
  
  <pre><code>2016/11/01 15:24:31 INFO  - jmeter.util.JMeterUtils: Setting Locale to en_US 
  2016/11/01 15:24:31 INFO  - jmeter.JMeter: Loading user properties from: /Users/jboive/Downloads/apache-jmeter-3.0/bin/user.properties 
  2016/11/01 15:24:31 INFO  - jmeter.JMeter: Loading system properties from: /Users/jboive/Downloads/apache-jmeter-3.0/bin/system.properties 
  2016/11/01 15:24:31 INFO  - jmeter.JMeter: Copyright (c) 1998-2016 The Apache Software Foundation 
  2016/11/01 15:24:31 INFO  - jmeter.JMeter: Version 3.0 r1743807 
  2016/11/01 15:24:31 INFO  - jmeter.JMeter: java.version=1.8.0_73 
  2016/11/01 15:24:31 INFO  - jmeter.JMeter: java.vm.name=Java HotSpot(TM) 64-Bit Server VM 
  2016/11/01 15:24:31 INFO  - jmeter.JMeter: os.name=Mac OS X 
  2016/11/01 15:24:31 INFO  - jmeter.JMeter: os.arch=x86_64 
  2016/11/01 15:24:31 INFO  - jmeter.JMeter: os.version=10.12.1 
  2016/11/01 15:24:31 INFO  - jmeter.JMeter: file.encoding=UTF-8 
  2016/11/01 15:24:31 INFO  - jmeter.JMeter: Max memory     =514850816 
  2016/11/01 15:24:31 INFO  - jmeter.JMeter: Available Processors =8 
  2016/11/01 15:24:31 INFO  - jmeter.JMeter: Default Locale=English (United States) 
  2016/11/01 15:24:31 INFO  - jmeter.JMeter: JMeter  Locale=English (United States) 
  2016/11/01 15:24:31 INFO  - jmeter.JMeter: JMeterHome=/Users/jboive/Downloads/apache-jmeter-3.0 
  2016/11/01 15:24:31 INFO  - jmeter.JMeter: user.dir  =/Users/jboive/Downloads/apache-jmeter-3.0/bin 
  2016/11/01 15:24:31 INFO  - jmeter.JMeter: PWD       =/Users/jboive/Downloads/apache-jmeter-3.0/bin 
  2016/11/01 15:24:31 INFO  - jmeter.JMeter: IP: 10.0.1.19 Name: iMac.local FullName: 10.0.1.19 
  2016/11/01 15:24:31 INFO  - jmeter.gui.action.LookAndFeelCommand: Using look and feel: com.apple.laf.AquaLookAndFeel [Mac OS X, System] 
  2016/11/01 15:24:31 INFO  - jmeter.JMeter: Loaded icon properties from org/apache/jmeter/images/icon.properties 
  2016/11/01 15:24:33 INFO  - jmeter.engine.util.CompoundVariable: Note: Function class names must contain the string: '.functions.' 
  2016/11/01 15:24:33 INFO  - jmeter.engine.util.CompoundVariable: Note: Function class names must not contain the string: '.gui.' 
  2016/11/01 15:24:35 INFO  - org.jmeterplugins.repository.PluginManager: Plugins Status: [jpgc-graphs-basic=2.0, jpgc-graphs-additional=2.0, jpgc-autostop=0.1, blazemeter-debugger=0.3, jpgc-functions=2.0, jmeter-ftp=3.0, jpgc-filterresults=2.1, jmeter-http=3.0, jmeter-jdbc=3.0, jmeter-jms=3.0, jmeter-monitors=3.0, jmeter-core=3.0, jmeter-junit=3.0, jmeter-java=3.0, jmeter-ldap=3.0, jmeter-mail=3.0, jmeter-mongodb=3.0, jmeter-native=3.0, jpgc-plugins-manager=0.10, jpgc-synthesis=2.0, jmeter-tcp=3.0, jmeter-components=3.0] 
  2016/11/01 15:24:36 INFO  - jmeter.util.BSFTestElement: Registering JMeter version of JavaScript engine as work-round for BSF-22 
  2016/11/01 15:24:36 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser 
  2016/11/01 15:24:36 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser 
  2016/11/01 15:24:36 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser 
  2016/11/01 15:24:36 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser 
  2016/11/01 15:24:36 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser 
  2016/11/01 15:24:36 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/css is org.apache.jmeter.protocol.http.parser.CssParser 
  2016/11/01 15:24:37 INFO  - jorphan.exec.KeyToolUtils: keytool found at 'keytool' 
  2016/11/01 15:24:37 INFO  - jmeter.protocol.http.proxy.ProxyControl: HTTP(S) Test Script Recorder SSL Proxy will use keys that support embedded 3rd party resources in file /Users/jboive/Downloads/apache-jmeter-3.0/bin/proxyserver.jks 
  2016/11/01 15:24:37 INFO  - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.mongodb.config.MongoSourceElement 
  2016/11/01 15:24:37 INFO  - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.mongodb.sampler.MongoScriptSampler 
  2016/11/01 15:24:37 INFO  - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.visualizers.DistributionGraphVisualizer 
  2016/11/01 15:24:37 INFO  - jmeter.samplers.SampleResult: Note: Sample TimeStamps are START times 
  2016/11/01 15:24:37 INFO  - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1 
  2016/11/01 15:24:37 INFO  - jmeter.samplers.SampleResult: sampleresult.useNanoTime=true 
  2016/11/01 15:24:37 INFO  - jmeter.samplers.SampleResult: sampleresult.nanoThreadSleep=5000 
  2016/11/01 15:24:37 INFO  - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.visualizers.SplineVisualizer 
  2016/11/01 15:24:49 INFO  - jmeter.services.FileServer: Default base='/Users/jboive/Downloads/apache-jmeter-3.0/bin' 
  2016/11/01 15:24:49 INFO  - jmeter.gui.action.Load: Loading file: /Users/jboive/Downloads/apache-jmeter-3.0/bin/thread-test.jmx 
  2016/11/01 15:24:49 INFO  - jmeter.services.FileServer: Set new base='/Users/jboive/Downloads/apache-jmeter-3.0/bin' 
  2016/11/01 15:24:49 INFO  - jmeter.save.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2 
  2016/11/01 15:24:49 INFO  - jmeter.save.SaveService: Using SaveService properties file encoding UTF-8 
  2016/11/01 15:24:49 INFO  - jmeter.save.SaveService: Using SaveService properties version 2.9 
  2016/11/01 15:24:49 INFO  - jmeter.save.SaveService: All converter versions present and correct 
  2016/11/01 15:24:49 INFO  - jmeter.save.SaveService: Loading file: /Users/jboive/Downloads/apache-jmeter-3.0/bin/thread-test.jmx 
  2016/11/01 15:24:49 INFO  - jmeter.services.FileServer: Set new base='/Users/jboive/Downloads/apache-jmeter-3.0/bin' 
  2016/11/01 15:24:53 INFO  - jmeter.samplers.SampleEvent: List of sample_variables: [] 
  2016/11/01 15:29:59 INFO  - jmeter.engine.StandardJMeterEngine: Running the test! 
  2016/11/01 15:29:59 INFO  - jmeter.samplers.SampleEvent: List of sample_variables: [] 
  2016/11/01 15:29:59 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*) 
  2016/11/01 15:29:59 INFO  - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group 
  2016/11/01 15:29:59 INFO  - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Thread Group. 
  2016/11/01 15:29:59 INFO  - jmeter.engine.StandardJMeterEngine: Test will stop on error 
  2016/11/01 15:29:59 INFO  - jmeter.threads.ThreadGroup: Starting thread group number 1 threads 1 ramp-up 1 perThread 1000.0 delayedStart=false 
  2016/11/01 15:29:59 INFO  - jmeter.threads.ThreadGroup: Started thread group number 1 
  2016/11/01 15:29:59 INFO  - jmeter.engine.StandardJMeterEngine: All thread groups have been started 
  2016/11/01 15:29:59 INFO  - jmeter.threads.JMeterThread: Thread started: Thread Group 1-1 
  2016/11/01 15:29:59 INFO  - jmeter.protocol.http.sampler.HTTPHCAbstractImpl: Local host = iMac.local 
  2016/11/01 15:29:59 INFO  - jmeter.protocol.http.sampler.HTTPHC4Impl: HTTP request retry count = 0 
  2016/11/01 15:29:59 INFO  - jmeter.protocol.http.parser.BaseParser: Created org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser 
  2016/11/01 15:29:59 INFO  - jmeter.threads.JMeterThread: Thread is done: Thread Group 1-1 
  2016/11/01 15:29:59 INFO  - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-1 
  2016/11/01 15:29:59 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test 
  2016/11/01 15:29:59 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*) 
  </code></pre>