我在通過jenkins運行時遇到JMeter日誌中的以下錯誤。 我正在使用JMeter版本2.11r。JMeter錯誤:無法實例化org.apache.jmeter.protocol.smtp.sampler.gui
The logs are:
2017/09/14 17:00:16 INFO - jmeter.util.JMeterUtils: Setting Locale to en_US
2017/09/14 17:00:16 INFO - jmeter.JMeter: Loading user properties from: E:\J-Meter\bin\user.properties
2017/09/14 17:00:16 INFO - jmeter.JMeter: Loading system properties from: E:\J-Meter\bin\system.properties
2017/09/14 17:00:16 INFO - jmeter.JMeter: Copyright (c) 1998-2014 The Apache Software Foundation
2017/09/14 17:00:16 INFO - jmeter.JMeter: Version 2.11 r1554548
2017/09/14 17:00:16 INFO - jmeter.JMeter: java.version=1.8.0_121
2017/09/14 17:00:16 INFO - jmeter.JMeter: java.vm.name=Java HotSpot(TM) 64-Bit Server VM
2017/09/14 17:00:16 INFO - jmeter.JMeter: os.name=Windows 8.1
2017/09/14 17:00:16 INFO - jmeter.JMeter: os.arch=amd64
2017/09/14 17:00:16 INFO - jmeter.JMeter: os.version=6.3
2017/09/14 17:00:16 INFO - jmeter.JMeter: file.encoding=Cp1252
2017/09/14 17:00:16 INFO - jmeter.JMeter: Default Locale=English (United States)
2017/09/14 17:00:16 INFO - jmeter.JMeter: JMeter Locale=English (United States)
2017/09/14 17:00:16 INFO - jmeter.JMeter: JMeterHome=E:\J-Meter
2017/09/14 17:00:16 INFO - jmeter.JMeter: user.dir =C:\Program Files (x86)\Jenkins\workspace\J-meter
2017/09/14 17:00:16 INFO - jmeter.JMeter: PWD =C:\Program Files (x86)\Jenkins\workspace\J-meter
2017/09/14 17:00:16 INFO - jmeter.JMeter: IP: 10.150.246.100 Name: NOD-AF1-lo-D1N FullName: NOD-AF1-lo-D1N.timesgroup.com
2017/09/14 17:00:16 INFO - jmeter.JMeter: Loaded icon properties from org/apache/jmeter/images/icon.properties
2017/09/14 17:00:17 INFO - jmeter.engine.util.CompoundVariable: Note: Function class names must contain the string: '.functions.'
2017/09/14 17:00:17 INFO - jmeter.engine.util.CompoundVariable: Note: Function class names must not contain the string: '.gui.'
2017/09/14 17:00:17 INFO - jmeter.gui.action.LookAndFeelCommand: Using look and feel: javax.swing.plaf.metal.MetalLookAndFeel [Metal, CrossPlatform]
2017/09/14 17:00:17 INFO - jmeter.util.BSFTestElement: Registering JMeter version of JavaScript engine as work-round for BSF-22
2017/09/14 17:00:18 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Cannot find .className property for htmlParser, using default
2017/09/14 17:00:18 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is
2017/09/14 17:00:18 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is
2017/09/14 17:00:18 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is
2017/09/14 17:00:18 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is
2017/09/14 17:00:18 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
2017/09/14 17:00:18 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.http.control.gui.WebServiceSamplerGui
2017/09/14 17:00:18 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.http.modifier.gui.ParamModifierGui
2017/09/14 17:00:18 INFO - jorphan.exec.KeyToolUtils: keytool found at 'C:\Program Files\Java\jre1.8.0_121\bin\keytool'
2017/09/14 17:00:18 INFO - jmeter.protocol.http.proxy.ProxyControl: HTTP(S) Test Script Recorder SSL Proxy will use keys that support embedded 3rd party resources in file E:\J-Meter\bin\proxyserver.jks
2017/09/14 17:00:18 WARN - jmeter.gui.util.MenuFactory: Could not instantiate org.apache.jmeter.protocol.smtp.sampler.gui.SmtpSamplerGui java.lang.NullPointerException
at sun.awt.shell.Win32ShellFolder2.access$200(Unknown Source)
at sun.awt.shell.Win32ShellFolder2$1.call(Unknown Source)
at sun.awt.shell.Win32ShellFolder2$1.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run(Unknown Source)
這是JMeter的一個非常舊的版本。嘗試使用更新的東西? –