如何修复JMETER 5.5中“CannotResolveClassException:node”错误,请提供建议

eit6fx6z  于 12个月前  发布在  其他
关注(0)|答案(1)|浏览(113)

如何修复JMETER 5.5中的"CannotResolveClassException:node"错误,请提供建议。

在某些JMX文件中出现此错误,但可以打开和处理其他文件。

原因:CannotResolveClassException:node
详细信息:com. thoughtworks. xstream. mapper. CannotResolveClassException:node at org. apache. jmeter.保存. SaveService. readTree(SaveService.java:456)~[ApacheJMeter_core. jar:5.5] at org. apache. jmeter. save. SaveService. loadTree(SaveService.java:429)~[ApacheJMeter_core. jar:5.5] at org. apache. jmeter. gui. action. Load. loadProjectFile(Load.java:129)~[ApacheJMeter_core. jar:5.5] at org. apache. jmeter. gui. action. Load. loadProjectFile(Load.java:101)~[ApacheJMeter_core. jar:5.5] at org. apache. jmeter. gui. action. Load. documentAfterCheck(Load.java:88)~[ApacheJMeter_core. jar:5.5] at org. apache. jmeter. gui. action. AbstractList WithNoRunningTest. doAction(Abstract WithNoRunningTest.java:44)~[ApacheJMeter_core. jar:5.5] at org. apache. jmeter. gui. action. Router. performAction(ApacheRouter.java:87)~[ApacheJMeter_core. jar:5.5] at org.apache.jmeter.gui.action.ApacheRouter.juda$actionPerformed$0(ApacheRouter.java:69)~[ApacheJMeter_core. jar:5.5] at java. awt. event. Dispatch(EventcationEvent.java:318)~[?:?] at java. awt. EventQueue. dispatchEventImpl(Eventque.java:773)~[?:?] at java. awt. EventQueue $www.example.com(Eventque.java:720)~[?:?] at java. awt. EventQueue $www.example.com(Eventque.java:714)~[?:?] at java. security. EventController. documented(EventController.java:400)~[?:?]4.run] at java. awt. EventDispatchThread. pumpEventsForFilter(EventDispatchThread.java:124)~[?:?] at java. awt. EventDispatchThread. pumpEventsForHierarchy(EventDispatchThread.java:113)~[?:?] at java. awt. EventDispatchThread. pumpEvents(EventDispatchThread.java:109)~[?:?] at java. awt. EventDispatchThread. pumpEvents(EventDispatchThread.java:101)~[?:?] at www.example.com(EventDispatchThr 4.run:?[英语泛读材料起因:com. thoughtworks. xstream. mapper. CannotResolveClassException:在com. thoughtworks. xstream. mapper. DefaultMapper. realClass处出现节点异常(DefaultMapper.java:81)~[xstream-1.4.19.jar:在com. thoughtworks. xstream. mapper. MapperWrapper. realClass(MapperWrapper.java:125)~[xstream-1.4.19.jar:在com. thoughtworks. xstream. mapper. DynamicProxyMapper. realClass(DynamicProxyMapper.java:55)~[xstream-1.4.19.jar:在com. thoughtworks. xstream. mapper. MapperWrapper. realClass(MapperWrapper.java:125)~[xstream-1.4.19.jar:1.4.19]在com. thoughtworks. xstream. mapper. PackageAliasingMapper. realClass(PackageAliasingMapper. java:88)~[xstream-1.4.19.jar:java.awt.EventDispatchThread.run125)~[xstream-1.4.19.jar:1.4.19] at com. thoughtworks. xstream. mapper. SecurityMapper. realClass(SecurityMapper.java:71)~[xstream-1.4.19.jar:在com. thoughtworks. xstream. mapper. MapperWrapper. realClass(MapperWrapper.java:125)~[xstream-1.4.19.jar:1.4.19]在org.apache.jmeter.save.SaveService$XStreamWrapper$1.realClass(SaveService.java:97)~[ApacheJMeter_core. jar:5.5] at com. thoughtworks. xstream. mapper. MapperWrapper. realClass(MapperWrapper.java:125)~[xstream-1.4.19.jar:1.4.19] at com. thoughtworks. xstream. mapper. CachingMapper. realClass(CachingMapper.java:47)~[xstream-1.4.19.jar:1.4.19] at com. thoughtworks. xstream. core. util. HierarchicalStreams. readClassType(HierarchicalStreams.java:29)~[xstream-1.4.19.jar:1.4.19] at com. thoughtworks. xstream. core. TreeUnmarshaller. start(TreeUnmarshaller.java:135)~[xstream-1.4.19.jar:1.4.19] at com. thoughtworks. xstream. core. AbstractTreeMarshallingStrategy. unmarshal(AbstractTreeMarshallingStrategy.java:32)~[xstream-1.4.19.jar:1.4.19]在com. thoughtworks. xstream. XStream. unmarshal(XStream.java:1421)~[xstream-1.4.19.jar:1.4.19] at com. thoughtworks. xstream. XStream. unmarshal(XStream.java:1399)~[xstream-1.4.19.jar:1.4.19] at com. thoughtworks. xstream. XStream. fromXML(XStream.java:1284)~[xstream-1.4.19.jar:在org. apache. jmeter.保存. SaveService. readTree(SaveService.java:446)~[ApacheJMeter_core. jar:5.5]... 20 more 2023 - 12 - 15 20:02:57,730错误o.a.j.u. JMeterUtils:从"C:\Users\diwgupta\Scripts\IMS_32260.jmx"加载XML时出错。原因:CannotResolveClassException:节点
更新了java类路径

bvn4nwqk

bvn4nwqk1#

看起来你试图打开一个由非常旧的JMeter版本或第三方软件(如Badboy)创建的文件。
尝试使用archives page上提供的以前的JMeter版本之一。完成后,您将能够增量地保存它(注意每个版本的JMeter Changelog的不兼容更改)或只是重播它并使用JMeter的HTTP(S) Test Script RecorderBlazeMeter Proxy Recorder记录执行,后者可以处理相关性。

相关问题