title: JMeter - Variable set in jsr 223 preprocessor is not available within while controller
body: <p>Inside the Thread Group, I have "jsr 223 preprocessor" where I am setting variable like this -</p>
  
  <pre><code>List&lt;String&gt; EDPResultList = new ArrayList();
  vars.putObject("EDPResultList",EDPResultList);
  </code></pre>
  
  <p>Then inside the while controller, I have an "HTTP Request Sampler". For processing the response, I have added a "jsr 223  postprocessor" where I am trying to access the object like this -</p>
  
  <pre><code>Object resObj = vars.getObject("EDPResultList");
  </code></pre>
  
  <p>I am getting the exception -</p>
  
  <p>"ERROR o.a.j.e.JSR223PostProcessor: Problem in JSR223 script, JSR223 PostProcessor For Initial Get
  javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: EDPResultList for class: Script238
      at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:324) ~[groovy-all-2.4.16.jar:2.4.16]"</p>
  
  <p>How can I define a list which I can user throughout my "Thread Group" and for multiple iterations of "While Controller".</p>