Below is the code i am trying to execute in Beanshell/JSR223 PreProcessor:
line 12- String cookie = vars.get("cookie");
line 13- int i = cookie.lastIndexOf('.');
line 14- String withoutSignature = cookie.substring(0, i + 1);
line 15- Jwt<Header, Claims> untrusted = Jwts.parser().parseClaimsJwt(withoutSignature); // This line does not get executed.
Below is the exception :
2016/09/06 19:44:59 ERROR - jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval In file: inline evaluation of: ``import io.jsonwebtoken.Jwt; import io.jsonwebtoken.JwtBuilder; import io.jsonweb . . . '' Encountered "," at line 15, column 23.
2016/09/06 19:44:59 WARN - jmeter.extractor.BeanShellPostProcessor: Problem in BeanShell script org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval In file: inline evaluation of: ``import io.jsonwebtoken.Jwt; import io.jsonwebtoken.JwtBuilder; import io.jsonweb . . . '' Encountered "," at line 15, column 23.