Jmeter error when opening script

Good - I did not transfer this test from one machine to another. This test was created and saved exactly where I try to open it today. Yesterday I made a couple of changes and saved them. Now I open and I get an error message - see the log file.

I was looking for answers, but the only thing I found was related to transferring the test from one machine to another. It seems like it's just messed up. Two questions - 1. Has anyone ever seen this before and knew what caused it? 2. Am I screwed on? Should I repeat this test completely?

Not sure if this matters in this case, but: Windows 7 Jmeter 2.9

Here is the log information:

2013/02/21 14:54:53 INFO - jmeter.gui.action.Load: Loading file: C:\Users\jcraig\Desktop\Tools\jmeter\apache-jmeter-2.9\apache-jmeter-2.9\bin\MC_multi_thread.jmx 2013/02/21 14:54:53 INFO - jmeter.services.FileServer: Set new base='C:\Users\jcraig\Desktop\Tools\jmeter\apache-jmeter-2.9\apache-jmeter-2.9\bin' 2013/02/21 14:54:53 INFO - jmeter.services.FileServer: Set new base='C:\Users\jcraig\Desktop\Tools\jmeter\apache-jmeter-2.9\apache-jmeter-2.9\bin' 2013/02/21 14:55:40 INFO - jmeter.gui.action.Load: Loading file: C:\Users\jcraig\Desktop\Tools\jmeter\apache-jmeter-2.9\apache-jmeter-2.9\bin\MC_Multi_Thread02.jmx 2013/02/21 14:55:40 INFO - jmeter.services.FileServer: Set new base='C:\Users\jcraig\Desktop\Tools\jmeter\apache-jmeter-2.9\apache-jmeter-2.9\bin' 2013/02/21 14:55:40 ERROR - jmeter.save.SaveService: Conversion error com.thoughtworks.xstream.converters.ConversionException: : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24 : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24 ---- Debugging information ---- message : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24 cause-exception : com.thoughtworks.xstream.io.StreamException cause-message : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24 class : org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy required-type : org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy converter-type : org.apache.jmeter.protocol.http.sampler.HTTPSamplerBaseConverter path : /jmeterTestPlan/hashTree/hashTree/hashTree[5]/hashTree[4]/HTTPSamplerProxy[16] line number : 7282 class[1] : org.apache.jorphan.collections.ListedHashTree converter-type[1] : org.apache.jmeter.save.converters.HashTreeConverter ------------------------------- : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24 : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24 ---- Debugging information ---- message : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24 cause-exception : com.thoughtworks.xstream.io.StreamException cause-message : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24 class : org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy required-type : org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy converter-type : org.apache.jmeter.protocol.http.sampler.HTTPSamplerBaseConverter path : /jmeterTestPlan/hashTree/hashTree/hashTree[5]/hashTree[4]/HTTPSamplerProxy[16] line number : 7282 class[1] : org.apache.jorphan.collections.ListedHashTree converter-type[1] : org.apache.jmeter.save.converters.HashTreeConverter ------------------------------- message : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24 : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24 ---- Debugging information ---- message : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24 cause-exception : com.thoughtworks.xstream.io.StreamException cause-message : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24 class : org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy required-type : org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy converter-type : org.apache.jmeter.protocol.http.sampler.HTTPSamplerBaseConverter path : /jmeterTestPlan/hashTree/hashTree/hashTree[5]/hashTree[4]/HTTPSamplerProxy[16] line number : 7282 class[1] : org.apache.jorphan.collections.ListedHashTree converter-type[1] : org.apache.jmeter.save.converters.HashTreeConverter ------------------------------- cause-exception : com.thoughtworks.xstream.converters.ConversionException cause-message : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24 : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24 first-jmeter-class : org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:65) class : org.apache.jmeter.save.ScriptWrapper required-type : org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy converter-type : org.apache.jmeter.save.ScriptWrapperConverter path : /jmeterTestPlan/hashTree/hashTree/hashTree[5]/hashTree[4]/HTTPSamplerProxy[16] line number : 7282 version : 2.9 r1437961 ------------------------------- 2013/02/21 14:55:40 WARN - jmeter.gui.action.Load: Unexpected error java.lang.Exception: Error in TestPlan - see log file at org.apache.jmeter.gui.action.Load.insertLoadedTree(Load.java:158) at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:113) 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:251) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705) at java.awt.EventQueue.access$000(EventQueue.java:101) at java.awt.EventQueue$3.run(EventQueue.java:666) at java.awt.EventQueue$3.run(EventQueue.java:664) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:675) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105) at java.awt.EventDispatchThread.run(EventDispatchThread.java:90) 

Thanks for any info on this!

Jamie

+6
source share
6 answers

This is a quick way to trick a corrupted jmx test file.

  • Go to the jmeter directory and open the jmeter.log file.
  • The last lines represent the last recorded error log, you need to find a block like this:

    ---- Debug information ---- message: com.atlantbh.jmeter.plugins.rest.RestSampler reason-exception: com.thoughtworks.xstream.mapper.CannotResolveClassException reason-message: com.atlantbh.jmeter.plugins.rest. RestSampler 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 [3] / hashTree [3] /com.atlantbh.jmeter.plugins.rest.RestSampler line number: 950

  • Open the damaged jmx file with a text editor and find the damaged line of code (in the above example, the damaged line is 950)

  • Remove the entire tag from <tag.name> to </tag.name> (or, if you are experienced enough, try to find in the child tags, find the error and fix it).
  • Save the edited file with a different name
  • Download to jmeter
  • If the error persists, repeat from step 1 (you will see a new tag to delete)
+4
source

We encountered a similar problem when trying to open a test using JMeter 2.13. This was allowed by the addition of some JMeter plugins.

In our case, we needed to add the JMeterPlugins-Standard jar to the lib / ext folder to use kg.apc.jmeter.vizualizers.ResponseTimesOverTimeGui (OR kg.apc.jmeter.vizualizers.CorrectedResultCollector ) in the test.

We also needed to add the jmeter-plugins-1.0.0 jar to the lib / junit folder to use com.atlantbh.jmeter.plugins.rest.gui.RestGui (OR com.atlantbh.jmeter.plugins.rest.RestSampler ).

In this case, you need to look at line 7282 in your test to see what it is missing and add the appropriate plugin for it.

For some reason, these jar files are not included in the jmeter download by default.

Hope this helps.

+2
source

Your file seems to be corrupt.

Try opening it in the xml editor to make sure it is correct.

Check disk space or disk problem. Did you have a crash while saving?

You can try adding the end of the tags manually to get some of it back, you may need to remove the last xml node.

+1
source

I had the same situation, jmx will not load. Only the error was different, I got: java.lang.ArrayIndexOutOfBoundsException

This was fixed by installing Java SE 1.7.0.67

0
source

Please check the .jmx file, maybe some code is deleted ... I encountered the same problem ... but after I looked at my .jmx file, I saw there that some team members deleted the code ...

0
source

Follow these steps.

I think he can solve your problem.

0
source

All Articles