apache / jmeter

Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services
https://jmeter.apache.org/
Apache License 2.0
8.23k stars 2.08k forks source link

Constant Throughput Timer: Java 8 incompatibility #3368

Closed asfimport closed 10 years ago

asfimport commented 10 years ago

Alexei Barantsev (Bug 56459): JMeter version: 2.11

Java version (output from java -version) Java(TM) SE Runtime Environment (build 1.8.0-b132) Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)

OS version: Windows 7

JMeter can't open the attached project file being run with Java 8. Works well if one uses Java 7.

Created attachment timer.jmx: JMeter project file

timer.jmx ````xml false false continue false 1 1 1 1397480781000 1397480781000 false 0 throughput 0.0 0.0 ````

Severity: normal OS: All

asfimport commented 10 years ago

Alexei Barantsev (migrated from Bugzilla): Created attachment jmeter.log: Log file

jmeter.log ```` 2014/04/25 16:35:39 INFO - jmeter.util.JMeterUtils: Setting Locale to ru_RU 2014/04/25 16:35:39 ERROR - jmeter.util.JMeterUtils: Could not find resources for 'ru_RU' 2014/04/25 16:35:39 INFO - jmeter.JMeter: Loading user properties from: C:\Tools\PerfTesting\apache-jmeter-2.11\bin\user.properties 2014/04/25 16:35:39 INFO - jmeter.JMeter: Loading system properties from: C:\Tools\PerfTesting\apache-jmeter-2.11\bin\system.properties 2014/04/25 16:35:39 INFO - jmeter.JMeter: Copyright (c) 1998-2014 The Apache Software Foundation 2014/04/25 16:35:39 INFO - jmeter.JMeter: Version 2.11 r1554548 2014/04/25 16:35:39 INFO - jmeter.JMeter: java.version=1.8.0 2014/04/25 16:35:39 INFO - jmeter.JMeter: java.vm.name=Java HotSpot(TM) 64-Bit Server VM 2014/04/25 16:35:39 INFO - jmeter.JMeter: os.name=Windows 7 2014/04/25 16:35:39 INFO - jmeter.JMeter: os.arch=amd64 2014/04/25 16:35:39 INFO - jmeter.JMeter: os.version=6.1 2014/04/25 16:35:39 INFO - jmeter.JMeter: file.encoding=Cp1251 2014/04/25 16:35:39 INFO - jmeter.JMeter: Default Locale=������� (������) 2014/04/25 16:35:39 INFO - jmeter.JMeter: JMeter Locale=������� (������) 2014/04/25 16:35:39 INFO - jmeter.JMeter: JMeterHome=C:\Tools\PerfTesting\apache-jmeter-2.11 2014/04/25 16:35:39 INFO - jmeter.JMeter: user.dir =C:\Tools\PerfTesting\apache-jmeter-2.11\bin 2014/04/25 16:35:39 INFO - jmeter.JMeter: PWD =C:\Tools\PerfTesting\apache-jmeter-2.11\bin 2014/04/25 16:35:39 INFO - jmeter.JMeter: IP: 192.168.0.100 Name: alexei-pc FullName: alexei-pc 2014/04/25 16:35:39 INFO - jmeter.JMeter: Loaded icon properties from org/apache/jmeter/images/icon.properties 2014/04/25 16:35:40 INFO - jmeter.engine.util.CompoundVariable: Note: Function class names must contain the string: '.functions.' 2014/04/25 16:35:40 INFO - jmeter.engine.util.CompoundVariable: Note: Function class names must not contain the string: '.gui.' 2014/04/25 16:35:41 INFO - jmeter.gui.action.LookAndFeelCommand: Using look and feel: javax.swing.plaf.metal.MetalLookAndFeel [Metal, CrossPlatform] 2014/04/25 16:35:41 INFO - jmeter.gui.util.MenuFactory: Skipping kg.apc.jmeter.config.VariablesFromCSVFile 2014/04/25 16:35:41 INFO - jmeter.util.BSFTestElement: Registering JMeter version of JavaScript engine as work-round for BSF-22 2014/04/25 16:35:42 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Cannot find .className property for htmlParser, using default 2014/04/25 16:35:42 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is 2014/04/25 16:35:42 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is 2014/04/25 16:35:42 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is 2014/04/25 16:35:42 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is 2014/04/25 16:35:42 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser 2014/04/25 16:35:42 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.http.control.gui.WebServiceSamplerGui 2014/04/25 16:35:42 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.http.modifier.gui.ParamModifierGui 2014/04/25 16:35:42 INFO - jorphan.exec.KeyToolUtils: keytool found at 'keytool' 2014/04/25 16:35:42 INFO - jmeter.protocol.http.proxy.ProxyControl: HTTP(S) Test Script Recorder SSL Proxy will use keys that support embedded 3rd party resources in file C:\Tools\PerfTesting\apache-jmeter-2.11\bin\proxyserver.jks 2014/04/25 16:35:42 INFO - jmeter.samplers.SampleResult: Note: Sample TimeStamps are START times 2014/04/25 16:35:42 INFO - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1 2014/04/25 16:35:42 INFO - jmeter.samplers.SampleResult: sampleresult.useNanoTime=true 2014/04/25 16:35:42 INFO - jmeter.samplers.SampleResult: sampleresult.nanoThreadSleep=5000 2014/04/25 16:35:45 INFO - jmeter.services.FileServer: Default base='C:\Tools\PerfTesting\apache-jmeter-2.11\bin' 2014/04/25 16:35:45 INFO - jmeter.gui.action.Load: Loading file: C:\Users\alexei\Desktop\timer.jmx 2014/04/25 16:35:45 INFO - jmeter.services.FileServer: Set new base='C:\Users\alexei\Desktop' 2014/04/25 16:35:45 INFO - jmeter.save.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2 2014/04/25 16:35:45 INFO - jmeter.save.SaveService: Using SaveService properties file encoding UTF-8 2014/04/25 16:35:45 INFO - jmeter.save.SaveService: Using SaveService properties version 2.6 2014/04/25 16:35:45 INFO - jmeter.save.SaveService: Using SaveService properties file version 1554411 2014/04/25 16:35:45 INFO - jmeter.save.SaveService: All converter versions present and correct 2014/04/25 16:35:45 ERROR - jmeter.save.SaveService: Conversion error com.thoughtworks.xstream.converters.ConversionException: -1 : -1 ---- Debugging information ---- message : -1 cause-exception : java.lang.ArrayIndexOutOfBoundsException cause-message : -1 class : org.apache.jmeter.testelement.property.DoubleProperty required-type : org.apache.jmeter.testelement.property.DoubleProperty converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter path : /jmeterTestPlan/hashTree/hashTree/hashTree/ConstantThroughputTimer/doubleProp/name line number : 32 class[1] : org.apache.jmeter.timers.ConstantThroughputTimer converter-type[1] : org.apache.jmeter.save.converters.TestElementConverter class[2] : org.apache.jorphan.collections.ListedHashTree converter-type[2] : org.apache.jmeter.save.converters.HashTreeConverter ------------------------------- : -1 : -1 ---- Debugging information ---- message : -1 cause-exception : java.lang.ArrayIndexOutOfBoundsException cause-message : -1 class : org.apache.jmeter.testelement.property.DoubleProperty required-type : org.apache.jmeter.testelement.property.DoubleProperty converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter path : /jmeterTestPlan/hashTree/hashTree/hashTree/ConstantThroughputTimer/doubleProp/name line number : 32 class[1] : org.apache.jmeter.timers.ConstantThroughputTimer converter-type[1] : org.apache.jmeter.save.converters.TestElementConverter class[2] : org.apache.jorphan.collections.ListedHashTree converter-type[2] : org.apache.jmeter.save.converters.HashTreeConverter ------------------------------- message : -1 : -1 ---- Debugging information ---- message : -1 cause-exception : java.lang.ArrayIndexOutOfBoundsException cause-message : -1 class : org.apache.jmeter.testelement.property.DoubleProperty required-type : org.apache.jmeter.testelement.property.DoubleProperty converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter path : /jmeterTestPlan/hashTree/hashTree/hashTree/ConstantThroughputTimer/doubleProp/name line number : 32 class[1] : org.apache.jmeter.timers.ConstantThroughputTimer converter-type[1] : org.apache.jmeter.save.converters.TestElementConverter class[2] : org.apache.jorphan.collections.ListedHashTree converter-type[2] : org.apache.jmeter.save.converters.HashTreeConverter ------------------------------- cause-exception : com.thoughtworks.xstream.converters.ConversionException cause-message : -1 : -1 first-jmeter-class : org.apache.jmeter.save.converters.TestElementConverter.unmarshal(TestElementConverter.java:107) class : org.apache.jmeter.save.ScriptWrapper required-type : org.apache.jmeter.testelement.property.DoubleProperty converter-type : org.apache.jmeter.save.ScriptWrapperConverter path : /jmeterTestPlan/hashTree/hashTree/hashTree/ConstantThroughputTimer/doubleProp/name line number : 32 version : 2.11 r1554548 ------------------------------- 2014/04/25 16:35:45 WARN - jmeter.gui.action.Load: Unexpected error org.apache.jmeter.exceptions.IllegalUserActionException: Empty TestPlan - see log file at org.apache.jmeter.gui.action.Load.insertLoadedTree(Load.java:174) at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:136) at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:105) at org.apache.jmeter.gui.action.LoadRecentProject.doAction(LoadRecentProject.java:68) at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:81) at org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:40) at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:63) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744) at java.awt.EventQueue.access$400(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:697) at java.awt.EventQueue$3.run(EventQueue.java:691) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75) at java.awt.EventQueue.dispatchEvent(EventQueue.java:714) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) ````
asfimport commented 10 years ago

Sebb (migrated from Bugzilla): This could be a consequence of https://github.com/apache/jmeter/issues/3355, fixed in r1586693.

If you want to try a nightly build, you can find one via

http://jmeter.apache.org/nightly.html

asfimport commented 10 years ago

Alexei Barantsev (migrated from Bugzilla): Unfortunately nightly has another issue:

C:\Tools\PerfTesting\apache-jmeter-r1590210\bin>jmeter.bat Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true java.lang.NoClassDefFoundError: com/thoughtworks/xstream/converters/ConversionEx ception at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2493) at java.lang.Class.getConstructor0(Class.java:2803) at java.lang.Class.newInstance(Class.java:345) at org.apache.jmeter.NewDriver.main(NewDriver.java:257) Caused by: java.lang.ClassNotFoundException: com.thoughtworks.xstream.converters .ConversionException at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 5 more JMeter home directory was detected as: C:\Tools\PerfTesting\apache-jmeter-r15902 10

asfimport commented 10 years ago

UbikLoadPack support (migrated from Bugzilla): Hello, Are you sure you followed correctly install instructions: Installing JMeter runtime

Download the _bin and _lib files Unpack the archives into the same directory structure The other archives are not needed to run JMeter.

Regards

asfimport commented 10 years ago

Alexei Barantsev (migrated from Bugzilla): Ah, thanks!

Yes, nightly works well, the issue can be closed as resolved.