title: JMeter can not find method with BSF Sampler
body: <p>I'm using <code>BSF Sampler</code> with this javascript:</p>
  <pre><code>var tokenPass = '1234';
  var serialNo = '1234578740905549583';
  var str = 'hello';
  var hashedpassword = Packages.ml.bn.security.CUpload.signDocument(tokenPass, serialNo, str, false);
  vars.put('HASHEDPASSWORD',hashedpassword);
  </code></pre>
  <p>I copy the jar file in lib folder of JMeter (the classpath). The jar file has a class named <code>CUpload.java</code> in <code>ml.bn.security</code> package. The class has a method named <code>signDocument</code> with this signature:</p>
  <pre><code>public SignInfo signDocument(String pin, String serialNumber, String document, boolean isCheked) throws Throwable {
  ...
  }
  </code></pre>
  <p>When I run the Jmeter, I get error:</p>
  <blockquote>
  <p>Response code: 500</p>
  <p>Response message: org.apache.bsf.BSFException:
  JavaScript Error: Java class
  &quot;ml.bn.security.CUpload&quot; has no public instance
  field or method named &quot;signDocument&quot;</p>
  </blockquote>
  <p>What's the problem it can not find the method in that class file?</p>