Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw CannotResolveClassException: OpenModelThreadGroup when I use SaveService.loadTree() method load the jmx file. #6394

Open
wzhfeianei opened this issue Dec 17, 2024 · 0 comments

Comments

@wzhfeianei
Copy link

wzhfeianei commented Dec 17, 2024

Expected behavior

I hope use SaveService.loadTree() load contain OpenModelThreadGroup jmx file,but it throw CannotResolveClassException

Actual behavior

throw CannotResolveClassException

Steps to reproduce the problem

  1. use jemter gui create a jmx script file it contain OpenModelThreadGroup feature
    image
  2. use java program invoke SaveService.loadTree() method load the jmx file
    HashTree hashTree = SaveService.loadTree(scriptFile);
  3. throw Exception
    java.lang.IllegalArgumentException: Problem loading XML from:'/Users/m/git/service/6760ea60488693106d67df19.jmx'.
    Cause:
    CannotResolveClassException: OpenModelThreadGroup

Detail: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:66)
class : org.apache.jmeter.save.ScriptWrapper
required-type : org.apache.jmeter.save.ScriptWrapper
converter-type : org.apache.jmeter.save.ScriptWrapperConverter
path : /jmeterTestPlan/hashTree/hashTree/OpenModelThreadGroup
line number : 10
version : 5.6.3
at org.apache.jmeter.save.SaveService.readTree(SaveService.java:456)
at org.apache.jmeter.save.SaveService.loadTree(SaveService.java:429)

JMeter Version

5.6.3

Java Version

8

OS Version

mac 14.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant