missing class com.thoughtworks.xstream.converters.ConversionException (kg.apc.jmeter.control.sampler.SetVariablesAction)

6,071 views
Skip to first unread message

Natallia Savelyeva

unread,
Jul 31, 2018, 10:36:40 AM7/31/18
to codename-taurus
Hi, maybe someone can help me with the following issue, thanks in advance.

I have installed Taurus with "pip install http://gettaurus.org/snapshots/bzt-1.12.0.10091.tar.gz" and run a simple YAML (content highlighted in blue)  inside alpine 3.7 container.
Unfortunately, I am getting the error "missing class com.thoughtworks.xstream.converters.ConversionException" due to missing plugin (path: /jmeterTestPlan/hashTree/hashTree/hashTree/kg.apc.jmeter.control.sampler.SetVariablesAction)
After googling for similar issues, I tried to install standard plugin (jmeter-plugins-standard-1.4.0.jar) and put the jar-file into apache-jmeter-4.0/lib/ext folder, but still no luck.

execution:
- concurrency: 10
  ramp-up: 2s
  hold-for: 30s
  scenario: simple

scenarios:
  simple:
    variables:
       mypaths: ["path1", "path2"]
    requests:
       - set-variables:
           mypath: ${__javaScript(${mypaths}[Math.floor(Math.random()*${mypaths}.length)])}
       - url: http://localhost:8080/${mypath}
         label: mypathtask
         method: POST
         body: '{"mypath": "${mypath}"}'

modules:
  jmeter:
    path: /apache-jmeter-4.0/bin/jmeter


The full output I am getting is the following:
# bzt draft.yml
14:10:12 INFO: Taurus CLI Tool v1.12.0.10091
14:10:12 INFO: Starting with configs: ['draft.yml']
14:10:12 INFO: Configuring...
14:10:12 INFO: Artifacts dir: /home/gofer/2018-07-31_14-10-12.573905
14:10:12 INFO: Preparing...
14:10:12 WARNING: There is newer version of Taurus 1.12.1 available, consider upgrading. What's new: http://gettaurus.org/docs/Changelog/
14:10:13 WARNING: Thread group detection: plugin for ConcurrentThreadGroup not found, regular ThreadGroup will be used
14:10:13 WARNING: Failed to detect plugins for /home/gofer/2018-07-31_14-10-12.573905/modified_requests.jmx: [Errno 2] No such file or directory: '/apache-jmeter-4.0/bin/PluginsManagerCMD.sh': '/apache-jmeter-4.0/bin/PluginsManagerCMD.sh'
14:10:13 INFO: Starting...
14:10:13 INFO: Waiting for results...
14:10:13 INFO: Waiting for finish...
14:10:14 WARNING: Please wait for graceful shutdown...
14:10:14 INFO: Shutting down...
14:10:14 INFO: Post-processing...
14:10:14 INFO: Test duration: 0:00:01
14:10:14 ERROR: Child Process Error: Empty results, most likely simple (JMeterExecutor) failed. Actual reason for this can be found in logs under /home/gofer/2018-07-31_14-10-12.573905
JMeter STDOUT:
Error in NonGUIDriver java.lang.IllegalArgumentException: Problem loading XML from:'/home/gofer/2018-07-31_14-10-12.573905/modified_requests.jmx', missing class com.thoughtworks.xstream.converters.ConversionException: 
---- Debugging information ----
cause-exception     : com.thoughtworks.xstream.converters.ConversionException
cause-message       : 
first-jmeter-class  : org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:67)
class               : org.apache.jmeter.save.ScriptWrapper
required-type       : org.apache.jorphan.collections.ListedHashTree
converter-type      : org.apache.jmeter.save.ScriptWrapperConverter
path                : /jmeterTestPlan/hashTree/hashTree/hashTree/kg.apc.jmeter.control.sampler.SetVariablesAction
line number         : 32
version             : 4.0 r1823414
-------------------------------
JMeter log:
2018-07-31 14:10:14,454 ERROR o.a.j.JMeter: Error in NonGUIDriver
java.lang.IllegalArgumentException: Problem loading XML from:'/home/gofer/2018-07-31_14-10-12.573905/modified_requests.jmx', missing class com.thoughtworks.xstream.converters.ConversionException: 
---- Debugging information ----
cause-exception     : com.thoughtworks.xstream.converters.ConversionException
cause-message       : 
first-jmeter-class  : org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:67)
class               : org.apache.jmeter.save.ScriptWrapper
required-type       : org.apache.jorphan.collections.ListedHashTree
converter-type      : org.apache.jmeter.save.ScriptWrapperConverter
path                : /jmeterTestPlan/hashTree/hashTree/hashTree/kg.apc.jmeter.control.sampler.SetVariablesAction
line number         : 32
version             : 4.0 r1823414
-------------------------------
at org.apache.jmeter.save.SaveService.readTree(SaveService.java:457) ~[ApacheJMeter_core.jar:4.0 r1823414]
at org.apache.jmeter.save.SaveService.loadTree(SaveService.java:425) ~[ApacheJMeter_core.jar:4.0 r1823414]
at org.apache.jmeter.JMeter.runNonGui(JMeter.java:928) [ApacheJMeter_core.jar:4.0 r1823414]
at org.apache.jmeter.JMeter.startNonGui(JMeter.java:915) [ApacheJMeter_core.jar:4.0 r1823414]
at org.apache.jmeter.JMeter.start(JMeter.java:543) [ApacheJMeter_core.jar:4.0 r1823414]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_171]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_171]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_171]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_171]
at org.apache.jmeter.NewDriver.main(NewDriver.java:245) [ApacheJMeter.jar:4.0 r1823414]
Caused by: com.thoughtworks.xstream.converters.ConversionException: 
---- Debugging information ----
cause-exception     : com.thoughtworks.xstream.converters.ConversionException
cause-message       : 
first-jmeter-class  : org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:67)
class               : org.apache.jmeter.save.ScriptWrapper
required-type       : org.apache.jorphan.collections.ListedHashTree
converter-type      : org.apache.jmeter.save.ScriptWrapperConverter
path                : /jmeterTestPlan/hashTree/hashTree/hashTree/kg.apc.jmeter.control.sampler.SetVariablesAction
line number         : 32
version             : 4.0 r1823414
-------------------------------
at org.apache.jmeter.save.ScriptWrapperConverter.createConversionException(ScriptWrapperConverter.java:102) ~[ApacheJMeter_core.jar:4.0 r1823414]
at org.apache.jmeter.save.ScriptWrapperConverter.unmarshal(ScriptWrapperConverter.java:96) ~[ApacheJMeter_core.jar:4.0 r1823414]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1486) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1466) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1337) ~[xstream-1.4.10.jar:1.4.10]
at org.apache.jmeter.save.SaveService.readTree(SaveService.java:442) ~[ApacheJMeter_core.jar:4.0 r1823414]
... 9 more
Caused by: com.thoughtworks.xstream.converters.ConversionException: 
---- Debugging information ----
cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message       : kg.apc.jmeter.control.sampler.SetVariablesAction
class               : org.apache.jorphan.collections.ListedHashTree
required-type       : org.apache.jorphan.collections.ListedHashTree
converter-type      : org.apache.jmeter.save.converters.HashTreeConverter
path                : /jmeterTestPlan/hashTree/hashTree/hashTree/kg.apc.jmeter.control.sampler.SetVariablesAction
line number         : 32
-------------------------------
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:73) ~[xstream-1.4.10.jar:1.4.10]
at org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:67) ~[ApacheJMeter_core.jar:4.0 r1823414]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:73) ~[xstream-1.4.10.jar:1.4.10]
at org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:67) ~[ApacheJMeter_core.jar:4.0 r1823414]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50) ~[xstream-1.4.10.jar:1.4.10]
at org.apache.jmeter.save.ScriptWrapperConverter.unmarshal(ScriptWrapperConverter.java:94) ~[ApacheJMeter_core.jar:4.0 r1823414]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1486) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1466) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1337) ~[xstream-1.4.10.jar:1.4.10]
at org.apache.jmeter.save.SaveService.readTree(SaveService.java:442) ~[ApacheJMeter_core.jar:4.0 r1823414]
... 9 more
Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: kg.apc.jmeter.control.sampler.SetVariablesAction
at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:81) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:71) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) ~[xstream-1.4.10.jar:1.4.10]
at org.apache.jmeter.save.SaveService$XStreamWrapper$1.realClass(SaveService.java:97) ~[ApacheJMeter_core.jar:4.0 r1823414]
at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:47) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:72) ~[xstream-1.4.10.jar:1.4.10]
at org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:67) ~[ApacheJMeter_core.jar:4.0 r1823414]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:73) ~[xstream-1.4.10.jar:1.4.10]
at org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:67) ~[ApacheJMeter_core.jar:4.0 r1823414]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:73) ~[xstream-1.4.10.jar:1.4.10]
at org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:67) ~[ApacheJMeter_core.jar:4.0 r1823414]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50) ~[xstream-1.4.10.jar:1.4.10]
at org.apache.jmeter.save.ScriptWrapperConverter.unmarshal(ScriptWrapperConverter.java:94) ~[ApacheJMeter_core.jar:4.0 r1823414]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:70) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1486) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1466) ~[xstream-1.4.10.jar:1.4.10]
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1337) ~[xstream-1.4.10.jar:1.4.10]
at org.apache.jmeter.save.SaveService.readTree(SaveService.java:442) ~[ApacheJMeter_core.jar:4.0 r1823414]
... 9 more
14:10:14 INFO: Artifacts dir: /home/gofer/2018-07-31_14-10-12.573905
14:10:14 WARNING: Done performing with code: 1


Andrey Pokhilko

unread,
Jul 31, 2018, 10:40:06 AM7/31/18
to codenam...@googlegroups.com

Hi,

You need to install Plugins Manager into your JMeter, to make it able to auto-load required plugins. That's the easiest way.

Otherwise you'll have to understand what is each plugin required to run your JMX and install those.

--

Andrey Pokhilko
Open Source Initiatives Leader
CA
          BlazeMeter

31.07.2018 17:36, Natallia Savelyeva пишет:
CAUTION: This email originated from outside of CA. Do not click links or open attachments unless you recognize the sender and know the content is safe.

--
You received this message because you are subscribed to the Google Groups "codename-taurus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codename-taur...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codename-taurus/1351f8a4-f481-4831-b180-45333f1f9f0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Natallia Savelyeva

unread,
Jul 31, 2018, 11:21:41 AM7/31/18
to codename-taurus
Hi Andrey, 

Thank you for the hint.
Previously I saw suggestions to use plugins manager but since I run alpine container (i.e. no GUI and I also wanted to keep the container as less in size as possible) I tried to figure out the exact package.

Finally, I managed to make it work - 
in short, I downloaded https://jmeter-plugins.org/files/packages/jpgc-prmctl-0.4.zip and extracted jmeter-plugins-prmctl-0.4.jar from that archive into lib/ext folder (e.g. apache-jmeter-4.0/lib/ext)

Long way:
2. Noted the message "The full list of plugins available for installation through the plugins manager is available here" and clicked the "here" link which led me to https://jmeter-plugins.org/
3. Noticed "66 more plugins… " link (which I haven't noticed before) and appeared on https://jmeter-plugins.org/wiki/Start/
4. Found "Samplers" section and clicked on "Set Variables Action" (https://jmeter-plugins.org/wiki/SetVariablesAction/)
5. Clicked on "Download" link at the top of the page and downloaded 0.4 version (wget https://jmeter-plugins.org/files/packages/jpgc-prmctl-0.4.zip)
6. Extracted the archive (unzip jpgc-prmctl-0.4.zip) and copied jmeter-plugins-prmctl-0.4.jar from its lib/ext/ folder into mine lib/ext: /apache-jmeter-4.0/lib/ext

raja...@gmail.com

unread,
Mar 4, 2019, 5:21:49 PM3/4/19
to codename-taurus
Thanks Natallia.

Your solution worked for me. I was searching all over the internet for this.
Reply all
Reply to author
Forward
0 new messages