Hi,

Getting below error :-
Response code: 500
Response message: org.apache.jorphan.util.JMeterException: Error invoking
bsh method: eval    Sourced file: inline evaluation of: ``import
org.apache.http.NameValuePair; import org.apache.http.client.utils.URLEnc .
. . '' : TargetError

Request :-
import org.apache.http.NameValuePair;
import org.apache.http.client.utils.URLEncodedUtils;
import java.net.URI;
import java.util.List;
import java.lang.*;
import java.util.*;
import org.apache.commons.math3.util.Precision;
try
{
 String SFinPlanIDGen = vars.get("323.0");
 System.out.println("SFinPlanIDGen");
int IFinPlanIDGen = Integer.parseInt("SFinPlanIDGen");
int TFinPlanIDGen = Math.round(IFinPlanIDGen);
int NFinPlanIDGen = Integer.valueOf(IFinPlanIDGen).intValue();
System.out.println(NFinPlanIDGen);
vars.put("FinPlanIDGenerated",NFinPlanIDGen);
System.out.println(FinPlanIDGenerated);
}
catch (Exception ex){
    log.warn("Error in my script", ex);
    throw ex; // elsewise JMeter will "swallow" the above exception
}

Kindly help to resolve it.

Sincerely,

Shyam Kishor

+91-7506056770

 

Reply via email to