9

わかりました-このテストをあるマシンから別のマシンに移動していません。このテストは、私が今日開こうとしている場所に正確に作成され、保存されました。昨日-私はいくつかの変更を加えて保存しました。ここで、開いてエラーが発生します-ログファイルを参照してください。

私は答えを探していましたが、私が見つけた唯一のことは、あるマシンから別のマシンにテストを移動することに関するものです。これは、単に破損しているように見えます。2つの質問-1。これまでにこれを見て、何が原因か知っている人はいますか?2.私はねじ込まれていますか?このテストを完全にやり直す必要がありますか?

この場合、これが重要かどうかはわかりませんが、
Windows 7 Jmeter 2.9

ログ情報は次のとおりです。

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)

これに関する情報をありがとう!

ジェイミー

4

6 に答える 6

4

これは、破損したテスト jmx ファイルを骨抜きにする簡単な方法です。

  1. jmeter ディレクトリに移動し、jmeter.log ファイルを開きます
  2. 最新の行は、jmeter がログに記録した最後のエラーを表すため、次のようなブロックを見つける必要があります。

    ---- デバッグ情報 ---- メッセージ: com.atlantbh.jmeter.plugins.rest.RestSampler 原因例外: com.thoughtworks.xstream.mapper.CannotResolveClassException 原因メッセージ: com.atlantbh.jmeter.plugins.rest. RestSampler クラス: org.apache.jorphan.collections.ListedHashTree 必須タイプ: org.apache.jorphan.collections.ListedHashTree コンバーター タイプ: org.apache.jmeter.save.converters.HashTreeConverter パス: /jmeterTestPlan/hashTree/hashTree/hashTree [3]/hashTree[3]/com.atlantbh.jmeter.plugins.rest.RestSampler 行番号: 950

  3. jmx の破損したファイルをテキスト エディタで開き、破損したコード行を見つけます (上記の例では、破損した行は 950 です)。

  4. <tag.name>toからタグ全体を削除し</tag.name>ます (または、十分に熟練している場合は、子タグをサーフィンしてみて、バグを見つけて修正してください)。
  5. 編集したファイルを別の名前で保存する
  6. jmeter に読み込む
  7. エラーが続く場合は、手順 1 から繰り返します (削除する新しいタグが見つかります)。
于 2013-11-06T22:11:44.287 に答える
3

JMeter 2.13 を使用してテストを開こうとすると、同様の問題が発生しました。これは、いくつかの JMeter プラグインを追加することで解決されました。

kg.apc.jmeter.vizualizers.ResponseTimesOverTimeGuiこの場合、テストで(またはkg.apc.jmeter.vizualizers.CorrectedResultCollector) 使用するために、「JMeterPlugins-Standard」jar を lib/ext フォルダーに追加する必要がありました。

また、 (OR ) 使用jmeter-plugins-1.0.0のために lib/junit フォルダーに jarを追加する必要がありました。com.atlantbh.jmeter.plugins.rest.gui.RestGuicom.atlantbh.jmeter.plugins.rest.RestSampler

この場合、テストで行 7282 を探して、不足しているものを確認し、関連するプラグインを追加する必要があります。

何らかの理由で、これらの jar ファイルはデフォルトの jmeter ダウンロードに含まれていません。

それが役立つことを願っています。

于 2016-01-05T15:30:36.590 に答える
1

ファイルが壊れているようです。

xml エディターで開いて、正しいかどうかを確認してください。

ディスク容量またはディスクの問題を確認してください。保存中にクラッシュしましたか?

タグの末尾を手動で追加して一部を取り戻すことができます。最後の xml ノードを削除する必要があるかもしれません。

于 2013-02-21T22:39:36.550 に答える
0

私は同じような状況にありました.jmxはロードされません。エラーだけが異なっていました、私は得ました: java.lang.ArrayIndexOutOfBoundsException

これは、Java SE 1.7.0.67 をインストールすることで修正されました。

于 2014-10-30T15:44:59.690 に答える