-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Maybe someone can give me a hint with the following problem I encountered:
Starting to develop an extension for JMeter, I built version 2.2 from
source. With a downloaded jmeter binary, I was not able to open a jmx
file saved with the version built from the 2.2 sources.
I realized that the jmx format saved by a downloaded binary 2.2 version
and the version built from 2.2 sources look completely different.
A jmx file from the built version starts with:
<jmeterTestPlan version="1.2" properties="1.8">
The jmx file from the built version starts with:
<org.apache.jmeter.save.ScriptWrapper>
Also, the binary built from 2.2 sources reports version 2.1.2.20070227
in its help dialog. When I checked the build.xml I also found the line:
<property name="jmeter.version" value="2.1.2.${DSTAMP}"/>
Is it possible that my built version saves its jmx files in an old
format (or even the binary itself is version 2.1)? And how is it
possible, that a version number 2.1 is reported?
I will give a step-by-step explanation of how I built JMeter. Maybe I
made I mistake in the build procedure. Also, I appended the respective
parts of the log files when saving and openening the jmx file.
- - downloaded and extracted jakarta-jmeter-2.2_src.tgz
- - cd jakarta-jmeter-2.2
- - mkdir lib/opt
- - copied jars from lib/ directory of binary archive
jakarta-jmeter-2.2.tgz to lib/ (if placed inside lib/opt build
works but execution fails)
- - Downloaded and added the following jars to lib/
- jms.jar (jms1.1)
- activation.jar (jaf-1.1)
- mail.jar (javamail-1.4)
- bsh-2.0b4.jar
- - When executing 'ant' the missing directory lib/junit/ is reported
- - I copied lib/junit/ from binary archive jakarta-jmeter-2.2.tgz
- - Due to a
"java.lang.RuntimeException: Could not read JMeter properties file"
when bin/jmeter ist started, I copied bin/jmeter.properties from
binary archive to bin/
- - Now, jmeter executes but shows the version string 2.1.2.20070227
in its help dialog instead of a 2.2 version string.
- - A test plan saved with this build cannot be opened with the
downloadable 2.2 JMeter binary:
"XStream Conversion Exception at line: 2
version: version
Perhaps a missing jar? See log file"
The log files report the following when saving/opening the jmx file:
===== BEGIN: build version saving the jmx file ============
2007/02/27 20:34:36 INFO - jmeter.save.SaveService: Testplan (JMX)
version: 2.2. Testlog (JTL) version: 2.2
2007/02/27 20:34:36 ERROR - jmeter.save.SaveService: Bad saveservice
properties file java.io.FileNotFoundExcep
tion: /home/avanhoorn/tmp/jakarta-jmeter-2.2/bin/saveservice.properties
(No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at
org.apache.jmeter.save.SaveService.loadProperties(SaveService.java:142)
at
org.apache.jmeter.save.SaveService.initProps(SaveService.java:150)
at org.apache.jmeter.save.SaveService.<clinit>(SaveService.java:120)
at org.apache.jmeter.gui.action.Save.doAction(Save.java:108)
at
org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:75)
at
org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:43)
at
org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:60)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
2007/02/27 20:34:36 WARN - jmeter.save.SaveService: Bad _version -
expected 1.8, found .
2007/02/27 20:34:36 WARN - jmeter.save.SaveService: Bad _file_version -
expected 408187, found .
2007/02/27 20:34:36 INFO - jmeter.save.SaveService: All converter
versions present and correct
===== END: build version saving the jmx file ============
===== BEGIN: binary version opening the jmx file ============
2007/02/27 20:38:24 INFO - jmeter.gui.action.Load: Loading file:
/home/avanhoorn/tmp/jakarta-jmeter-2.2/WorkBench.jmx
2007/02/27 20:38:24 INFO - jmeter.save.SaveService: Testplan (JMX)
version: 2.2. Testlog (JTL) version: 2.2
2007/02/27 20:38:24 INFO - jmeter.save.SaveService: Using SaveService
properties file version 408187
2007/02/27 20:38:24 WARN - jmeter.save.SaveService: Could not set up
alias MailerModel java.lang.NoClassDefFoundError: javax/mail/Message
2007/02/27 20:38:24 INFO - jmeter.protocol.http.sampler.HTTPSampler2:
Local host = wsmobil
2007/02/27 20:38:24 INFO - jmeter.protocol.tcp.sampler.TCPSampler:
Protocol Handler name=TCPClientImpl
2007/02/27 20:38:24 INFO - jmeter.protocol.tcp.sampler.TCPSampler:
Status prefix=
2007/02/27 20:38:24 INFO - jmeter.protocol.tcp.sampler.TCPSampler:
Status suffix=
2007/02/27 20:38:24 INFO - jmeter.protocol.tcp.sampler.TCPSampler:
Status properties=
2007/02/27 20:38:24 WARN - jmeter.save.SaveService: Could not set up
alias JMSSampler java.lang.NoClassDefFoundError: javax/jms/Message
2007/02/27 20:38:24 WARN - jmeter.save.SaveService: Could not set up
alias SubscriberSampler java.lang.NoClassDefFoundError:
javax/jms/MessageListener
2007/02/27 20:38:24 WARN - jmeter.save.SaveService: Could not set up
alias MailerVisualizer java.lang.NoClassDefFoundError:
javax/mail/MessagingException
2007/02/27 20:38:24 WARN - jmeter.save.SaveService: Could not set up
alias WebServiceSampler java.lang.NoClassDefFoundError:
javax/mail/MessagingException
2007/02/27 20:38:24 INFO - jmeter.save.SaveService: Using SaveService
properties version 1.8
2007/02/27 20:38:24 INFO - jmeter.save.SaveService: All converter
versions present and correct
2007/02/27 20:38:24 WARN - jmeter.gui.action.Load: Could not convert
file com.thoughtworks.xstream.converters.ConversionException: version :
version
- ---- Debugging information ----
required-type : org.apache.jmeter.save.ScriptWrapper
cause-message : version : version
class : org.apache.jmeter.save.ScriptWrapper
message : version : version
line number : 2
path : /org.apache.jmeter.save.ScriptWrapper/version
cause-exception :
com.thoughtworks.xstream.alias.CannotResolveClassException
- -------------------------------
===== END: binary version opening the jmx file ============
Best regards,
André
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFF5I5ELKwmE5jzZmkRAjl2AJ4rlIsMlmWKlFfLTqW98cgaryOtiACfQ4Ov
5iKVGnKVvn+dreQQ5jrZgVA=
=413I
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]