其他分享
首页 > 其他分享> > Jmeter点击打开文件和保存测试计划时会报错"Could not instantiate class: kg.apc.jmeter.reporters.LoadosophiaUploade

Jmeter点击打开文件和保存测试计划时会报错"Could not instantiate class: kg.apc.jmeter.reporters.LoadosophiaUploade

作者:互联网

Jmeter点击打开文件和保存测试计划时都会报错,应该怎么解决呢?

2021-12-15 17:42:39,208 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_311]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_311]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_311]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_311]
at org.apache.jmeter.gui.util.MenuFactory.getGUIComponent(MenuFactory.java:174) ~[ApacheJMeter_core.jar:5.1 r1853635]
at org.apache.jmeter.gui.util.MenuFactory.initializeMenus(MenuFactory.java:141) ~[ApacheJMeter_core.jar:5.1 r1853635]
at org.apache.jmeter.gui.util.MenuFactory.<clinit>(MenuFactory.java:106) ~[ApacheJMeter_core.jar:5.1 r1853635]
at org.apache.jmeter.control.gui.TestPlanGui.createPopupMenu(TestPlanGui.java:92) ~[ApacheJMeter_core.jar:5.1 r1853635]
at org.apache.jmeter.gui.tree.JMeterTreeNode.createPopupMenu(JMeterTreeNode.java:185) ~[ApacheJMeter_core.jar:5.1 r1853635]
at org.apache.jmeter.gui.action.EditCommand.doAction(EditCommand.java:46) ~[ApacheJMeter_core.jar:5.1 r1853635]
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:88) ~[ApacheJMeter_core.jar:5.1 r1853635]
at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:70) ~[ApacheJMeter_core.jar:5.1 r1853635]
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) [?:1.8.0_311]
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) [?:1.8.0_311]
at java.awt.EventQueue.access$500(EventQueue.java:97) [?:1.8.0_311]
at java.awt.EventQueue$3.run(EventQueue.java:709) [?:1.8.0_311]
at java.awt.EventQueue$3.run(EventQueue.java:703) [?:1.8.0_311]
at java.security.AccessController.doPrivileged(Native Method) [?:1.8.0_311]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) [?:1.8.0_311]
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) [?:1.8.0_311]
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) [?:1.8.0_311]
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [?:1.8.0_311]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [?:1.8.0_311]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:1.8.0_311]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [?:1.8.0_311]
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [?:1.8.0_311]
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:?]
... 26 more
Caused by: java.lang.ClassNotFoundException: org.apache.commons.httpclient.methods.multipart.PartSource
at java.net.URLClassLoader.findClass(URLClassLoader.java:387) ~[?:1.8.0_311]
at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_311]
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_311]
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:?]
... 26 more
2021-12-15 17:42:42,617 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/html is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2021-12-15 17:42:42,618 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for application/xhtml+xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2021-12-15 17:42:42,618 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for application/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2021-12-15 17:42:42,618 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2021-12-15 17:42:42,618 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
2021-12-15 17:42:42,618 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/css is org.apache.jmeter.protocol.http.parser.CssParser
2021-12-15 17:42:43,906 INFO o.a.j.e.KeyToolUtils: keytool found at 'keytool'
2021-12-15 17:42:43,906 INFO o.a.j.p.h.p.ProxyControl: HTTP(S) Test Script Recorder SSL Proxy will use keys that support embedded 3rd party resources in file D:\Program Files (x86)\QQdownloads\apache-jmeter-5.1\bin\proxyserver.jks
2021-12-15 17:42:44,132 INFO o.a.j.s.FileServer: Default base='D:\Program Files (x86)\QQdownloads\apache-jmeter-5.1\bin'
2021-12-15 17:42:44,838 WARN o.a.j.g.u.MenuFactory: Could not instantiate class: org.apache.jmeter.protocol.smtp.sampler.gui.SmtpSamplerGui
java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_311]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_311]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_311]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_311]
at org.apache.jmeter.gui.util.MenuFactory.getGUIComponent(MenuFactory.java:174) ~[ApacheJMeter_core.jar:5.1 r1853635]
at org.apache.jmeter.gui.util.MenuFactory.initializeMenus(MenuFactory.java:141) ~[ApacheJMeter_core.jar:5.1 r1853635]
at org.apache.jmeter.gui.util.MenuFactory.<clinit>(MenuFactory.java:106) ~[ApacheJMeter_core.jar:5.1 r1853635]
at org.apache.jmeter.control.gui.TestPlanGui.createPopupMenu(TestPlanGui.java:92) ~[ApacheJMeter_core.jar:5.1 r1853635]
at org.apache.jmeter.gui.tree.JMeterTreeNode.createPopupMenu(JMeterTreeNode.java:185) ~[ApacheJMeter_core.jar:5.1 r1853635]
at org.apache.jmeter.gui.action.EditCommand.doAction(EditCommand.java:46) ~[ApacheJMeter_core.jar:5.1 r1853635]
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:88) ~[ApacheJMeter_core.jar:5.1 r1853635]
at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:70) ~[ApacheJMeter_core.jar:5.1 r1853635]
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) [?:1.8.0_311]
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) [?:1.8.0_311]
at java.awt.EventQueue.access$500(EventQueue.java:97) [?:1.8.0_311]
at java.awt.EventQueue$3.run(EventQueue.java:709) [?:1.8.0_311]
at java.awt.EventQueue$3.run(EventQueue.java:703) [?:1.8.0_311]
at java.security.AccessController.doPrivileged(Native Method) [?:1.8.0_311]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) [?:1.8.0_311]
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) [?:1.8.0_311]
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) [?:1.8.0_311]
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [?:1.8.0_311]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [?:1.8.0_311]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:1.8.0_311]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [?:1.8.0_311]
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [?:1.8.0_311]
Caused by: java.lang.NullPointerException
at sun.awt.shell.Win32ShellFolder2.getFileSystemPath(Win32ShellFolder2.java:571) ~[?:1.8.0_311]
at sun.awt.shell.Win32ShellFolder2.access$400(Win32ShellFolder2.java:72) ~[?:1.8.0_311]
at sun.awt.shell.Win32ShellFolder2$2.call(Win32ShellFolder2.java:298) ~[?:1.8.0_311]
at sun.awt.shell.Win32ShellFolder2$2.call(Win32ShellFolder2.java:296) ~[?:1.8.0_311]
at sun.awt.shell.Win32ShellFolderManager2$ComInvoker.invoke(Win32ShellFolderManager2.java:609) ~[?:1.8.0_311]
at sun.awt.shell.ShellFolder.invoke(ShellFolder.java:518) ~[?:1.8.0_311]
at sun.awt.shell.Win32ShellFolder2.<init>(Win32ShellFolder2.java:296) ~[?:1.8.0_311]
at sun.awt.shell.Win32ShellFolder2$1.call(Win32ShellFolder2.java:261) ~[?:1.8.0_311]
at sun.awt.shell.Win32ShellFolder2$1.call(Win32ShellFolder2.java:237) ~[?:1.8.0_311]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_311]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_311]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_311]
at sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run(Win32ShellFolderManager2.java:585) ~[?:1.8.0_311]
at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_311]
2021-12-15 17:42:45,122 INFO o.a.j.s.SampleResult: Note: Sample TimeStamps are START times
2021-12-15 17:42:45,122 INFO o.a.j.s.SampleResult: sampleresult.default.encoding is set to ISO-8859-1
2021-12-15 17:42:45,123 INFO o.a.j.s.SampleResult: sampleresult.useNanoTime=true
2021-12-15 17:42:45,123 INFO o.a.j.s.SampleResult: sampleresult.nanoThreadSleep=5000
2021-12-15 17:42:48,134 INFO o.j.r.PluginManager: Plugins Status: [jpgc-graphs-basic=Standard, jpgc-graphs-additional=Extras, jpgc-autostop=Extras, jpgc-sense=Standard, jpgc-cmd=Standard, jpgc-graphs-composite=Standard, jpgc-csl=Standard, jpgc-functions=Standard, jpgc-casutg=Standard, jpgc-dbmon=Extras, jpgc-graphs-dist=Extras, jpgc-dummy=Standard, jpgc-filterresults=Standard, jpgc-ffw=Standard, jpgc-ggl=Extras, jpgc-httpraw=Extras, jpgc-sts=Extras, jpgc-fifo=Standard, jpgc-jmxmon=Extras, jpgc-graphs-vs=Extras, jpgc-lockfile=Extras, jpgc-mergeresults=Standard, jpgc-pde=Extras, jpgc-prmctl=Extras, jpgc-perfmon=2.1, jpgc-plugins-manager=1.6, jpgc-synthesis=Standard, jpgc-plancheck=Standard, jpgc-tst=Standard, jpgc-udp=Extras, jpgc-csvars=Extras, jpgc-wsc=Standard, jpgc-xml=Extras, jmeter-core=5.1, jmeter-ftp=5.1, jmeter-http=5.1, jmeter-jdbc=5.1, jmeter-jms=5.1, jmeter-junit=5.1, jmeter-java=5.1, jmeter-ldap=5.1, jmeter-mail=5.1, jmeter-mongodb=5.1, jmeter-native=5.1, jmeter-tcp=5.1, jmeter-components=5.1, jpgc-standard=2.0]
2021-12-15 17:42:49,198 WARN o.j.r.h.StatsReporter: Failed to send repo stats
org.apache.http.conn.ConnectTimeoutException: Connect to jmeter-plugins.org:443 timed out
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:545) ~[httpclient-4.5.7.jar:4.5.7]
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:415) ~[httpclient-4.5.7.jar:4.5.7]
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180) ~[httpclient-4.5.7.jar:4.5.7]
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:326) ~[httpclient-4.5.7.jar:4.5.7]
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:605) ~[httpclient-4.5.7.jar:4.5.7]
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:440) ~[httpclient-4.5.7.jar:4.5.7]
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835) ~[httpclient-4.5.7.jar:4.5.7]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) ~[httpclient-4.5.7.jar:4.5.7]
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) ~[httpclient-4.5.7.jar:4.5.7]
at org.jmeterplugins.repository.JARSourceHTTP.execute(JARSourceHTTP.java:499) ~[jmeter-plugins-manager-1.6.jar:?]
at org.jmeterplugins.repository.JARSourceHTTP.execute(JARSourceHTTP.java:494) ~[jmeter-plugins-manager-1.6.jar:?]
at org.jmeterplugins.repository.JARSourceHTTP.reportStats(JARSourceHTTP.java:451) ~[jmeter-plugins-manager-1.6.jar:?]
at org.jmeterplugins.repository.http.StatsReporter.run(StatsReporter.java:24) [jmeter-plugins-manager-1.6.jar:?]
2021-12-15 17:47:17,835 INFO o.a.j.u.JMeterUtils: Setting Locale to zh_CN
2021-12-15 18:39:40,433 INFO o.a.j.g.a.t.TemplateManager: Reading templates from: D:\Program Files (x86)\QQdownloads\apache-jmeter-5.1\bin\templates\templates.xml
2021-12-15 18:42:30,102 ERROR o.a.j.JMeter: Uncaught exception:
java.lang.ExceptionInInitializerError: null
at org.apache.jmeter.gui.action.Load.doActionAfterCheck(Load.java:76) ~[ApacheJMeter_core.jar:5.1 r1853635]
at org.apache.jmeter.gui.action.AbstractActionWithNoRunningTest.doAction(AbstractActionWithNoRunningTest.java:45) ~[ApacheJMeter_core.jar:5.1 r1853635]
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:88) ~[ApacheJMeter_core.jar:5.1 r1853635]
at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:70) ~[ApacheJMeter_core.jar:5.1 r1853635]
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) ~[?:1.8.0_311]
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) ~[?:1.8.0_311]
at java.awt.EventQueue.access$500(EventQueue.java:97) ~[?:1.8.0_311]
at java.awt.EventQueue$3.run(EventQueue.java:709) ~[?:1.8.0_311]
at java.awt.EventQueue$3.run(EventQueue.java:703) ~[?:1.8.0_311]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_311]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) ~[?:1.8.0_311]
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) ~[?:1.8.0_311]
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) [?:1.8.0_311]
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [?:1.8.0_311]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [?:1.8.0_311]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:1.8.0_311]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [?:1.8.0_311]
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [?:1.8.0_311]
Caused by: java.lang.NullPointerException
at sun.awt.shell.Win32ShellFolder2.getFileSystemPath(Win32ShellFolder2.java:571) ~[?:1.8.0_311]
at sun.awt.shell.Win32ShellFolder2.access$400(Win32ShellFolder2.java:72) ~[?:1.8.0_311]
at sun.awt.shell.Win32ShellFolder2$2.call(Win32ShellFolder2.java:298) ~[?:1.8.0_311]
at sun.awt.shell.Win32ShellFolder2$2.call(Win32ShellFolder2.java:296) ~[?:1.8.0_311]
at sun.awt.shell.Win32ShellFolderManager2$ComInvoker.invoke(Win32ShellFolderManager2.java:609) ~[?:1.8.0_311]
at sun.awt.shell.ShellFolder.invoke(ShellFolder.java:518) ~[?:1.8.0_311]
at sun.awt.shell.Win32ShellFolder2.<init>(Win32ShellFolder2.java:296) ~[?:1.8.0_311]
at sun.awt.shell.Win32ShellFolder2$1.call(Win32ShellFolder2.java:261) ~[?:1.8.0_311]
at sun.awt.shell.Win32ShellFolder2$1.call(Win32ShellFolder2.java:237) ~[?:1.8.0_311]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_311]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_311]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_311]
at sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run(Win32ShellFolderManager2.java:585) ~[?:1.8.0_311]
at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_311]

 
View Code

 

 

 

2021-12-15 18:44:16,305 ERROR o.a.j.JMeter: Uncaught exception: 
java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.FileDialoger
    at org.apache.jmeter.gui.action.Save.computeFileName(Save.java:203) ~[ApacheJMeter_core.jar:5.1 r1853635]
    at org.apache.jmeter.gui.action.Save.doAction(Save.java:165) ~[ApacheJMeter_core.jar:5.1 r1853635]
    at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:88) ~[ApacheJMeter_core.jar:5.1 r1853635]
    at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:70) ~[ApacheJMeter_core.jar:5.1 r1853635]
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) ~[?:1.8.0_311]
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) ~[?:1.8.0_311]
    at java.awt.EventQueue.access$500(EventQueue.java:97) ~[?:1.8.0_311]
    at java.awt.EventQueue$3.run(EventQueue.java:709) ~[?:1.8.0_311]
    at java.awt.EventQueue$3.run(EventQueue.java:703) ~[?:1.8.0_311]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_311]
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) ~[?:1.8.0_311]
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) ~[?:1.8.0_311]
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) [?:1.8.0_311]
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [?:1.8.0_311]
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [?:1.8.0_311]
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:1.8.0_311]
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [?:1.8.0_311]
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [?:1.8.0_311]

 

标签:java,Could,awt,1.8,311,org,jmeter,class
来源: https://www.cnblogs.com/qiang6313669/p/15694560.html