1. Error calling BSH method: Eval
Error content: error – JMeter util. BeanShellInterpreter: Error invoking bsh method: eval In file: inline evaluation of: “import
The test in eclipse is normal, and the same code is put into JMeter to prompt errors
The first reason is that the data type cannot be specified in the map method, and the same is true in the list
After modifying the code, it will execute successfully
Reason 2: imported package error
Specific errors need to be analyzed and solved according to the returned error code.
2. The request returns an error message error invoking BSH method:
How to Solve:
1. Find the location of the Java source file and class file, eclipse -> Alt + enter can open the file path address
2. Configure the information in beanshellsampler collector and add addclasspaths import file without adding class file name. Fill in the path, as shown in the following figure:
Similar Posts:
- The jar file rt.jar has no source attachment appears in eclipse
- [Solved] JMeter startup error: integer expression expected
- BeanShell error: error invoking BSH method: Eval [How to Solve]
- Solution to the problem of not able to find Java executable or version in JMeter installation
- jmeter-Unable to access jarfile ApacheJMeter.jar
- Error in JMeter import JMX file cannotresolveclassexception: kg.apc.jmeter.perfmon.perfmoncollector solution
- About BeanShell error invoking BSH method
- Python learning notes – Import utils error
- The problem of JUnit test report class not found in maven
- [Solved] Jmeter Error: Not able to find Java executable or version. Please check your Java installation.