title: Beanshell Integer.parseInt() errors
body: <p>Hey I'm doing some beanshell scripting for a web application in jmeter. I've written quite a few jmeter scripts with beanshell embedded already and for some reason this one keeps giving me errors about my Integer.parseInt() method invocation.</p>
  
  <p>Here's the error: </p>
  
  <blockquote>
    <p>2014/06/27 10:08:58 ERROR - jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval  Sourced file: inline evaluation of: <code>import java.io.*; import java.util.*;    int containerCount = 0; int secondVal = . . . '' : Method Invocation Integer.parseInt 
    2014/06/27 10:08:58 WARN  - jmeter.modifiers.BeanShellPreProcessor: Problem in BeanShell script org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval    Sourced file: inline evaluation of:</code>import java.io.<em>; import java.util.</em>;    int containerCount = 0; int secondVal = . . . '' : Method Invocation Integer.parseInt </p>
  </blockquote>
  
  <p>All of my Integer.parseInt() invocations are listed below and they all seem pretty legitimate to me, if anyone's a beanshell expert and could help me identify the error, that'd be awesome, Thanks!</p>
  
  <pre><code>int containerCount = 0;
  int secondVal = 0;
  int BPNumSelected = 0;  //Branch Plant only is in response page with more than one container, in the site shipment but must be initialized to something here.
  boolean mult = false;   //Boolean to see if the site shipment has more than one container
  
  String ScontainerCount= vars.get("availableQty_matchNr");
  String SsecondVal = vars.get("secondVal");
  
  
  
  
      if(ScontainerCount!=null)
          containerCount = Integer.parseInt(ScontainerCount); //refers to the number of containers in that site shipment
      if(SsecondVal!=null)
          secondVal = Integer.parseInt(SsecondVal); //A weird value that is passed in the parameter name after selectedLotID, 
  
  
      if(vars.get("BPNumSelected")==null){
          vars.put("BPNumSelected","0");
      }
  
      if(containerCount&gt;1){
      String SBPNumSelected = vars.get("BPNumSelected");
      BPNumSelected = Integer.parseInt(SBPNumSelected); //gets the branch plant ID if more than one container
      mult = true;
      }
  </code></pre>
  
  <p>and also...</p>
  
  <pre><code>SlocPackedQtyValue = vars.get("locPackedQtyValue");
  SavailQtyNoComma = vars.get("availQtyNoComma");
  
          if(vars.get("locPackedQtyValue")!=null)
              packedQtyVal = Integer.parseInt(SlocPackedQtyValue);
          if(vars.get("availQtyNoComma")!=null)
              availableRoom = Integer.parseInt(SavailQtyNoComma);
  </code></pre>