2013-02-21 37 views
6

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

私は答えを探していますが、私が見つけた唯一のことは、あるマシンから別のマシンにテストを移動することに関連しています。これはちょうど破損しているように見えます。 2つの質問 - 誰もこれを前に見て、それを引き起こした原因を知っている? 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) 

ありがとう!

ジェイミー

+0

あなたの問題を解決することができると思いますあるマシンから別のマシンへ – yochannah

答えて

1

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

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

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

手動でタグの末尾を追加して、その一部を戻すことができます。最後のXMLノードを削除する必要があります。

+0

保存中にエラーが発生している必要があります。私がXMLとして開いたとき、私は欠けているタグを見ることができました。ありがとう! –

+0

お返事ありがとうございます。回答は他人にとって有益ですので、受け付けてupvoteを受け入れるべきです:) –

4

これは、破損したテストjmxファイルを素早く有効にする方法です。

----デバッグ情報:

  1. は、あなたがこのようなブロックを見つける必要があり、
  2. 最新の行が最後のエラーのJMeterが記録さrapresentsあなたのJMeterディレクトリとオープンjmeter.logファイルに移動します---- メッセージ:com.atlantbh.jmeter.plugins.rest.RestSampler 原因例外:com.thoughtworks.xstream.mapper.CannotResolveClassException 原因メッセージ:com.atlantbh.jmeter.plugins.rest.RestSampler クラス:org.apache.jorphan.collections.ListedHashTree required-type: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>からタグ全体を削除します</tag.name>に(またはあなたが、子タグにサーフィンバグを見つけて、それを修正するためにenought熟練試みている場合)
  5. はJMeterのに別の名前で
  6. ロードを編集したファイルを保存し
  7. エラーが続く場合は、手順1から繰り返します(削除する新しいタグがあります)
+0

これは元のプラグインと違うバージョンがあり、jmeterが窒息しているタグを追加/削除した場合にも機能します。 – Renee

0

同じ状況があり、jmxがロードされません。唯一の誤差が異なっていた、私が得た:JMeterの2.13を使用してテストを開こうとするとjava.lang.ArrayIndexOutOfBoundsException

は、これは、Java SEに1.7.0.67

2

をインストールすることで修正されました私たちは、同様の問題に出くわしました。これはいくつかのJMeterプラグインを追加することで解決しました。

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

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

この場合、テストで7282行目を探して欠落している行を見つけ、関連するプラグインを追加する必要があります。

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

希望に役立ちます。

0

私は同じ問題に直面していた...しかし、私はそこに見た私の.jmxファイルに見た後、いくつかのコードは、私のチームのメンバーによって削除された....いくつかのコードが削除されることがあります をご.jmxファイルを確認してください。.. 。

0

リンク https://jmeter-plugins.org/downloads/all/ 以下にこれらのステップ

  1. 行くに従って、あなたのJMeterに、プラグインマネージャを追加

  2. 再起動JMeterの

  3. をクリックしてプラグインを必要と追加「オプション - > [プラグインマネージャ」
  4. 再起動のJMeter

私はそれはあなたが移動したい場合には問題があったかもしれない何

関連する問題