2013-05-13 3 views
1

내가 JMeter를 다음 코드를 실행하려고 :JMeter를 : BSH 메소드를 호출 오류 : 평가

import org.json.JSONArray; 
import org.json.JSONObject; 
String jsonString = prev . . . '' 

나는 다음과 같은 오류 얻을 : 나는 그것이 무엇을 의미하는지 전혀 모르는

ERROR - jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of: 
import org.json.JSONArray; import org.json.JSONObject; String jsonString = prev 
: Typed variable declaration : Object constructor 

script org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval Sourced file: inline evaluation of: 
    import org.json.JSONArray; 
    import org.json.JSONObject; 

    String jsonString = prev . . . '' : 
    Typed variable declaration : 
    Object constructor 

합니다.

답변

0

코드는 잘못된 것입니다 :

prev . . . ''

그것은 당신이 Jsr223 + 당연하지만를 사용하는 옵션이

어쨌든 코드가

0

확실하지 잘못된 JDK 1.4와 호환 자바 코드해야 하지만 BeanShell Processor를 잘못된 위치에 놓았을 것입니다. BeanSheel 프로세서는 같은 레벨이 아닌 HTTP 요청을 받아야합니다.