jmeter常见问题

这篇具有很好参考价值的文章主要介绍了jmeter常见问题。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

问题1:javax.swing.text.BadLocationException: Position not represented by view 

解决方法

jmeter常见问题

问题2:Could not instantiate class: kg.apc.jmeter.reporters.LoadosophiaUploaderGui

2022-07-01 18:02:52,673 INFO k.a.j.JMeterPluginsUtils: JMeter-Plugins.org v.1.4.0
2022-07-01 18:02:52,733 WARN o.a.j.g.u.MenuFactory: Could not instantiate class: kg.apc.jmeter.reporters.LoadosophiaUploaderGui
java.lang.reflect.InvocationTargetException: null
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_221]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_221]
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_221]
	at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_221]
	at org.apache.jmeter.gui.util.MenuFactory.getGUIComponent(MenuFactory.java:207) ~[ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.gui.util.MenuFactory.initializeMenus(MenuFactory.java:151) ~[ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.gui.util.MenuFactory.<clinit>(MenuFactory.java:107) ~[ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.control.gui.TestPlanGui.createPopupMenu(TestPlanGui.java:94) ~[ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.gui.tree.JMeterTreeNode.createPopupMenu(JMeterTreeNode.java:184) ~[ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.gui.action.EditCommand.doAction(EditCommand.java:46) ~[ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:87) ~[ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:69) ~[ApacheJMeter_core.jar:5.4.1]
	at java.awt.event.InvocationEvent.dispatch(Unknown Source) ~[?:1.8.0_221]
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source) ~[?:1.8.0_221]
	at java.awt.EventQueue.access$500(Unknown Source) ~[?:1.8.0_221]
	at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_221]
	at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_221]
	at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_221]
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_221]
	at java.awt.EventQueue.dispatchEvent(Unknown Source) ~[?:1.8.0_221]
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) ~[?:1.8.0_221]
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) ~[?:1.8.0_221]
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) ~[?:1.8.0_221]
	at java.awt.WaitDispatchSupport$2.run(Unknown Source) ~[?:1.8.0_221]
	at java.awt.WaitDispatchSupport$4.run(Unknown Source) ~[?:1.8.0_221]
	at java.awt.WaitDispatchSupport$4.run(Unknown Source) ~[?:1.8.0_221]
	at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_221]
	at java.awt.WaitDispatchSupport.enter(Unknown Source) ~[?:1.8.0_221]
	at java.awt.Dialog.show(Unknown Source) ~[?:1.8.0_221]
	at java.awt.Component.show(Unknown Source) ~[?:1.8.0_221]
	at java.awt.Component.setVisible(Unknown Source) ~[?:1.8.0_221]
	at java.awt.Window.setVisible(Unknown Source) ~[?:1.8.0_221]
	at java.awt.Dialog.setVisible(Unknown Source) ~[?:1.8.0_221]
	at org.apache.jmeter.SplashScreen.lambda$showScreen$0(SplashScreen.java:95) ~[ApacheJMeter_core.jar:5.4.1]
	at java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:1.8.0_221]
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.8.0_221]
	at java.awt.EventQueue.access$500(Unknown Source) [?:1.8.0_221]
	at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_221]
	at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_221]
	at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_221]
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_221]
	at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.8.0_221]
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_221]
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_221]
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_221]
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_221]
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_221]
	at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_221]
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/httpclient/methods/multipart/PartSource
	at kg.apc.jmeter.reporters.LoadosophiaUploaderGui.init(LoadosophiaUploaderGui.java:114) ~[JMeterPlugins-Standard.jar:?]
	at kg.apc.jmeter.reporters.LoadosophiaUploaderGui.<init>(LoadosophiaUploaderGui.java:28) ~[JMeterPlugins-Standard.jar:?]
	... 48 more
Caused by: java.lang.ClassNotFoundException: org.apache.commons.httpclient.methods.multipart.PartSource
	at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_221]
	at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_221]
	at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_221]
	at kg.apc.jmeter.reporters.LoadosophiaUploaderGui.init(LoadosophiaUploaderGui.java:114) ~[JMeterPlugins-Standard.jar:?]
	at kg.apc.jmeter.reporters.LoadosophiaUploaderGui.<init>(LoadosophiaUploaderGui.java:28) ~[JMeterPlugins-Standard.jar:?]
	... 48 more

问题3:String r . . . '' Encountered "JSONObject" at line 7, column 1.

2022-07-01 17:35:55,318 INFO o.a.j.e.StandardJMeterEngine: Running the test!
2022-07-01 17:35:55,319 INFO o.a.j.s.SampleEvent: List of sample_variables: []
2022-07-01 17:35:55,319 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, *local*)
2022-07-01 17:35:55,320 INFO o.a.j.e.StandardJMeterEngine: Starting setUp thread groups
2022-07-01 17:35:55,320 INFO o.a.j.e.StandardJMeterEngine: Starting setUp ThreadGroup: 1 : setUp Thread Group 
2022-07-01 17:35:55,320 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads for group setUp Thread Group.
2022-07-01 17:35:55,320 INFO o.a.j.e.StandardJMeterEngine: Thread will continue on error
2022-07-01 17:35:55,320 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=1 ramp-up=1 delayedStart=false
2022-07-01 17:35:55,323 INFO o.a.j.t.ThreadGroup: Started thread group number 1
2022-07-01 17:35:55,323 INFO o.a.j.e.StandardJMeterEngine: Waiting for all setup thread groups to exit
2022-07-01 17:35:55,323 INFO o.a.j.t.JMeterThread: Thread started: setUp Thread Group 1-1
2022-07-01 17:35:55,326 ERROR o.a.j.u.BeanShellInterpreter: Error invoking bsh method: eval	In file: inline evaluation of: ``//先引入jar包 import json.*; import org.Application;  String r . . . '' Encountered "JSONObject" at line 7, column 1.

2022-07-01 17:35:55,326 WARN o.a.j.a.BeanShellAssertion: Error in BeanShellAssertion
org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval	In file: inline evaluation of: ``//先引入jar包 import json.*; import org.Application;  String r . . . '' Encountered "JSONObject" at line 7, column 1.

	at org.apache.jmeter.util.BeanShellInterpreter.bshInvoke(BeanShellInterpreter.java:179) ~[ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.util.BeanShellInterpreter.eval(BeanShellInterpreter.java:185) ~[ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.util.BeanShellTestElement.processFileOrScript(BeanShellTestElement.java:150) ~[ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.assertions.BeanShellAssertion.getResult(BeanShellAssertion.java:106) [ApacheJMeter_components.jar:5.4.1]
	at org.apache.jmeter.threads.JMeterThread.processAssertion(JMeterThread.java:931) [ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.threads.JMeterThread.checkAssertions(JMeterThread.java:900) [ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:574) [ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:489) [ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256) [ApacheJMeter_core.jar:5.4.1]
	at java.lang.Thread.run(Unknown Source) [?:1.8.0_221]
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_221]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_221]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_221]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_221]
	at org.apache.jmeter.util.BeanShellInterpreter.bshInvoke(BeanShellInterpreter.java:162) ~[ApacheJMeter_core.jar:5.4.1]
	... 9 more
Caused by: bsh.ParseException: In file: inline evaluation of: ``//先引入jar包 import json.*; import org.Application;  String r . . . '' Encountered "JSONObject" at line 7, column 1.

	at bsh.Parser.generateParseException(Parser.java:6106) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.Parser.jj_consume_token(Parser.java:5977) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.Parser.Statement(Parser.java:2699) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.Parser.BlockStatement(Parser.java:2819) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.Parser.Line(Parser.java:172) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.Interpreter.Line(Interpreter.java:1011) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.Interpreter.eval(Interpreter.java:641) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.Interpreter.eval(Interpreter.java:750) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.Interpreter.eval(Interpreter.java:739) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_221]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_221]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_221]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_221]
	at org.apache.jmeter.util.BeanShellInterpreter.bshInvoke(BeanShellInterpreter.java:162) ~[ApacheJMeter_core.jar:5.4.1]
	... 9 more
2022-07-01 17:35:55,327 INFO o.a.j.t.JMeterThread: Thread is done: setUp Thread Group 1-1
2022-07-01 17:35:55,327 INFO o.a.j.t.JMeterThread: Thread finished: setUp Thread Group 1-1
2022-07-01 17:35:55,327 INFO o.a.j.e.StandardJMeterEngine: All Setup Threads have ended
2022-07-01 17:35:55,411 INFO o.a.j.e.StandardJMeterEngine: No enabled thread groups found
2022-07-01 17:35:55,411 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test
2022-07-01 17:35:55,411 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, *local*)
2022-07-01 17:36:42,372 INFO o.a.j.e.StandardJMeterEngine: Running the test!
2022-07-01 17:36:42,373 INFO o.a.j.s.SampleEvent: List of sample_variables: []
2022-07-01 17:36:42,373 INFO o.a.j.t.TestPlan: added D:\性能\jmeter\openapi.jar to classpath
2022-07-01 17:36:42,374 INFO o.a.j.t.TestPlan: added D:\性能\jmeter\json.jar to classpath
2022-07-01 17:36:42,374 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, *local*)
2022-07-01 17:36:42,374 INFO o.a.j.e.StandardJMeterEngine: Starting setUp thread groups
2022-07-01 17:36:42,374 INFO o.a.j.e.StandardJMeterEngine: Starting setUp ThreadGroup: 1 : setUp Thread Group 
2022-07-01 17:36:42,374 INFO o.a.j.e.StandardJMeterEngine: Starting 1 threads for group setUp Thread Group.
2022-07-01 17:36:42,374 INFO o.a.j.e.StandardJMeterEngine: Thread will continue on error
2022-07-01 17:36:42,374 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=1 ramp-up=1 delayedStart=false
2022-07-01 17:36:42,377 INFO o.a.j.t.ThreadGroup: Started thread group number 1
2022-07-01 17:36:42,377 INFO o.a.j.e.StandardJMeterEngine: Waiting for all setup thread groups to exit
2022-07-01 17:36:42,378 INFO o.a.j.t.JMeterThread: Thread started: setUp Thread Group 1-1
2022-07-01 17:36:42,380 ERROR o.a.j.u.BeanShellInterpreter: Error invoking bsh method: eval	In file: inline evaluation of: ``//先引入jar包 import org.json.*; import org.Application;  Stri . . . '' Encountered "JSONObject" at line 7, column 1.

2022-07-01 17:36:42,380 WARN o.a.j.a.BeanShellAssertion: Error in BeanShellAssertion
org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval	In file: inline evaluation of: ``//先引入jar包 import org.json.*; import org.Application;  Stri . . . '' Encountered "JSONObject" at line 7, column 1.

	at org.apache.jmeter.util.BeanShellInterpreter.bshInvoke(BeanShellInterpreter.java:179) ~[ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.util.BeanShellInterpreter.eval(BeanShellInterpreter.java:185) ~[ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.util.BeanShellTestElement.processFileOrScript(BeanShellTestElement.java:150) ~[ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.assertions.BeanShellAssertion.getResult(BeanShellAssertion.java:106) [ApacheJMeter_components.jar:5.4.1]
	at org.apache.jmeter.threads.JMeterThread.processAssertion(JMeterThread.java:931) [ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.threads.JMeterThread.checkAssertions(JMeterThread.java:900) [ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:574) [ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:489) [ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256) [ApacheJMeter_core.jar:5.4.1]
	at java.lang.Thread.run(Unknown Source) [?:1.8.0_221]
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_221]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_221]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_221]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_221]
	at org.apache.jmeter.util.BeanShellInterpreter.bshInvoke(BeanShellInterpreter.java:162) ~[ApacheJMeter_core.jar:5.4.1]
	... 9 more
Caused by: bsh.ParseException: In file: inline evaluation of: ``//先引入jar包 import org.json.*; import org.Application;  Stri . . . '' Encountered "JSONObject" at line 7, column 1.

	at bsh.Parser.generateParseException(Parser.java:6106) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.Parser.jj_consume_token(Parser.java:5977) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.Parser.Statement(Parser.java:2699) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.Parser.BlockStatement(Parser.java:2819) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.Parser.Line(Parser.java:172) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.Interpreter.Line(Interpreter.java:1011) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.Interpreter.eval(Interpreter.java:641) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.Interpreter.eval(Interpreter.java:750) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.Interpreter.eval(Interpreter.java:739) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_221]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_221]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_221]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_221]
	at org.apache.jmeter.util.BeanShellInterpreter.bshInvoke(BeanShellInterpreter.java:162) ~[ApacheJMeter_core.jar:5.4.1]
	... 9 more
2022-07-01 17:36:42,381 INFO o.a.j.t.JMeterThread: Thread is done: setUp Thread Group 1-1
2022-07-01 17:36:42,381 INFO o.a.j.t.JMeterThread: Thread finished: setUp Thread Group 1-1
2022-07-01 17:36:42,381 INFO o.a.j.e.StandardJMeterEngine: All Setup Threads have ended
2022-07-01 17:36:42,462 INFO o.a.j.e.StandardJMeterEngine: No enabled thread groups found
2022-07-01 17:36:42,462 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test
2022-07-01 17:36:42,462 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, *local*)

解决方法:调整相应的脚本,添加相应的log打印,进行问题的排查

问题4:Caused by: org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]

2022-07-01 18:41:47,182 INFO o.a.j.t.JMeterThread: Thread started: setUp Thread Group 1-1
2022-07-01 18:41:47,186 ERROR o.a.j.u.BeanShellInterpreter: Error invoking bsh method: eval	Sourced file: inline evaluation of: ``//先引入jar包 import org.json.JSONObject; import org.json.JSONArray '' : Typed variable declaration : Object constructor
2022-07-01 18:41:47,186 WARN o.a.j.a.BeanShellAssertion: Error in BeanShellAssertion
org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval	Sourced file: inline evaluation of: ``//先引入jar包 import org.json.JSONObject; import org.json.JSONArray; '' : Typed variable declaration : Object constructor
	at org.apache.jmeter.util.BeanShellInterpreter.bshInvoke(BeanShellInterpreter.java:179) ~[ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.util.BeanShellInterpreter.eval(BeanShellInterpreter.java:185) ~[ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.util.BeanShellTestElement.processFileOrScript(BeanShellTestElement.java:150) ~[ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.assertions.BeanShellAssertion.getResult(BeanShellAssertion.java:106) [ApacheJMeter_components.jar:5.4.1]
	at org.apache.jmeter.threads.JMeterThread.processAssertion(JMeterThread.java:931) [ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.threads.JMeterThread.checkAssertions(JMeterThread.java:900) [ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:574) [ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:489) [ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256) [ApacheJMeter_core.jar:5.4.1]
	at java.lang.Thread.run(Unknown Source) [?:1.8.0_221]
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_221]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_221]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_221]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_221]
	at org.apache.jmeter.util.BeanShellInterpreter.bshInvoke(BeanShellInterpreter.java:162) ~[ApacheJMeter_core.jar:5.4.1]
	... 9 more
Caused by: bsh.TargetError: Sourced file: inline evaluation of: ``//先引入jar包 import org.json.JSONObject; import org.json.JSONArray;'' : Typed variable declaration : Object constructor
	at bsh.BSHAllocationExpression.constructObject(BSHAllocationExpression.java:126) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:108) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:56) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:96) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:41) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.BSHVariableDeclarator.eval(BSHVariableDeclarator.java:80) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.BSHTypedVariableDeclaration.eval(BSHTypedVariableDeclaration.java:78) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.Interpreter.eval(Interpreter.java:659) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.Interpreter.eval(Interpreter.java:750) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.Interpreter.eval(Interpreter.java:739) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_221]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_221]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_221]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_221]
	at org.apache.jmeter.util.BeanShellInterpreter.bshInvoke(BeanShellInterpreter.java:162) ~[ApacheJMeter_core.jar:5.4.1]
	... 9 more
Caused by: org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]
	at org.json.JSONTokener.syntaxError(JSONTokener.java:451) ~[org.json.jar:?]
	at org.json.JSONObject.<init>(JSONObject.java:195) ~[org.json.jar:?]
	at org.json.JSONObject.<init>(JSONObject.java:319) ~[org.json.jar:?]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_221]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_221]
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_221]
	at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_221]
	at bsh.Reflect.constructObject(Reflect.java:621) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.BSHAllocationExpression.constructObject(BSHAllocationExpression.java:117) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:108) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:56) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:96) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:41) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.BSHVariableDeclarator.eval(BSHVariableDeclarator.java:80) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.BSHTypedVariableDeclaration.eval(BSHTypedVariableDeclaration.java:78) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.Interpreter.eval(Interpreter.java:659) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.Interpreter.eval(Interpreter.java:750) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at bsh.Interpreter.eval(Interpreter.java:739) ~[bsh-2.0b6.jar:2.0b6 2016-02-05 05:16:19]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_221]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_221]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_221]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_221]
	at org.apache.jmeter.util.BeanShellInterpreter.bshInvoke(BeanShellInterpreter.java:162) ~[ApacheJMeter_core.jar:5.4.1]
	... 9 more
2022-07-01 18:41:47,187 INFO o.a.j.t.JMeterThread: Thread is done: setUp Thread Group 1-1
2022-07-01 18:41:47,187 INFO o.a.j.t.JMeterThread: Thread finished: setUp Thread Group 1-1
2022-07-01 18:41:47,187 INFO o.a.j.e.StandardJMeterEngine: All Setup Threads have ended
2022-07-01 18:41:47,282 INFO o.a.j.e.StandardJMeterEngine: No enabled thread groups found
2022-07-01 18:41:47,283 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test
2022-07-01 18:41:47,283 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, *local*)

解决方法:调整相应的脚本,添加相应的log打印,进行问题的排查

问题5:提示jmeter内存溢出修改后的验证方法

jmeter常见问题

jmeter常见问题

jmeter常见问题文章来源地址https://www.toymoban.com/news/detail-514617.html

到了这里,关于jmeter常见问题的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • Java开发中的常见问题和解决方法:如何解决常见的性能和bug问题

      在Java开发中,我们经常会面临各种各样的问题,包括性能问题和Bug。这些问题可能会导致应用程序的运行变慢、不稳定甚至崩溃。本文将介绍一些常见的Java开发问题,并提供解决这些问题的方法和技巧,帮助开发人员更好地处理性能和Bug问题。 性能问题是Java开发中最常见

    2024年02月09日
    浏览(55)
  • SAP 常见问题大全及问题解决大全

    1.A:在公司代码分配折旧表时报错?     在公司代码分配折旧表时报错,提示是“3000 的公司代码分录不完全-参见长文本”  希望各位大侠帮我看看。 3000 的公司代码分录不完全-参见长文本  R: a.你把零进项税的代码分配给这个公司代码就可以了 .没有指定非税代码,OBCL   

    2024年02月06日
    浏览(46)
  • Git常见问题与使用实际问题记录。

    git stash 是 Git 版本控制系统提供的一个命令,用于临时保存当前工作目录的修改。当您在进行代码开发时,可能会遇到需要暂时切换到其他分支或处理其他任务的情况,但又不想提交当前的修改。这时,您可以使用 git stash 命令来保存这些修改,以便稍后恢复并继续工作。

    2024年02月04日
    浏览(61)
  • SpringBoot常见问题

    告诉idea,这是一个maven项目 1.如果右侧有Maven选项,刷新一下 2.项目右键,添加Maven框架支持 注意事项:创建项目时,右下角会弹窗:load maven project 尽量下载,如果实在下不下来,就直接删掉 使用的是jdk17 springboot超过3.X 默认使用jdk17 修改jdk版本 一共三个地方 ----------------

    2024年02月06日
    浏览(47)
  • vue常见问题汇总

    来源:https://www.fly63.com/ Q1:安装超时(install timeout) 方案有这么些: Q2:安装一些需要编译的包:提示没有安装python、build失败等  因为一些 npm 的包安装需要编译的环境,mac 和 linux 都还好,大多都齐全 window 用户依赖 visual studio 的一些库和python 2+, windows的小伙伴都装上: windows-buil

    2024年02月10日
    浏览(105)
  • jenkins 常见问题汇总

    1、win11 节点(Error: Unable to access jarfile slave.jar) jenkins 默认cd 进入到设置的目录下面,如果不是C盘的话,直接cd 进入不了其他盘,所以,需要在命令前面,加参数进入到对应盘符。eg:E:    如下配置  2、hudson.plugins.git.GitException: Command \\\"git checkout -f \\\" returned status code 128: jenkin

    2024年02月06日
    浏览(52)
  • hbase启动常见问题

    ** ** 使用xshell连接5台虚拟机,使用具有root权限的用户登录进行操作,我的是admin 使用date命令观察集群时间是否同步,若时间相差在1分钟以内,则无需同步,若相差的时间1minutes则需使用以下命令: su - root date -s “2022-4-20 19:43:20” hwclock -w 启动zookeeper(5台主机都需要启动),使

    2024年02月07日
    浏览(44)
  • MySQL——常见问题

      1、空值不占空间,NULL值占空间。当字段不为NULL时,也可以插入空值。 2、当使用 IS NOT NULL 或者 IS NULL 时,只能查出字段中没有不为NULL的或者为 NULL 的,不能查出空值。 3、判断NULL 用IS NULL 或者 is not null,SQL 语句函数中可以使用IFNULL()函数来进行处理,判断空字符用 =\\\'\\\'或者

    2024年02月09日
    浏览(52)
  • 面试-Dubbo常见问题

    Dubbo 是一个RPC框架,包含注册中心,服务提供方,服务消费方,控制台,监控中心。 Dubbo 启动时会从注册中心拉取消费者需要的提供方信息,如果依赖的服务提供方不可用,Dubbo消费方会启动失败,并且不停的向注册中心请求提供方信息,抛出异常找不到对应的提供方。可以

    2024年02月08日
    浏览(48)
  • 面试-java常见问题

    程序计数器:当前线程所执行的字节码的行号指示器 java虚拟机栈:临时变量 元空间:类常量池,运行时常量池 方法区:类信息,静态变量 堆:对象实例,Sting常量池等 加载-链接(验证+准备+解析)-初始化-使用-卸载 加载 :将硬盘中的二进制文件转为内存中的class对象 链接

    2024年02月08日
    浏览(53)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包