2013-02-21 35 views
6

OK - Tôi chưa chuyển bài kiểm tra này từ máy này sang máy khác. Thử nghiệm này đã được tạo và lưu chính xác nơi tôi đang cố gắng mở nó ngay hôm nay. Hôm qua - Tôi đã thực hiện một vài thay đổi và lưu nó. Bây giờ, tôi đi để mở và tôi nhận được lỗi - Xem tệp nhật ký.lỗi jmeter khi mở tập lệnh

Tôi đã tìm kiếm câu trả lời, nhưng điều duy nhất tôi tìm thấy có liên quan đến việc di chuyển thử nghiệm từ máy này sang máy khác. Điều này có vẻ như nó chỉ là đồng bằng bị hỏng. Hai câu hỏi - 1. Bất cứ ai từng thấy điều này trước đây và biết điều gì gây ra nó? 2. Tôi có bị say không? Tôi có phải hoàn toàn làm lại bài kiểm tra này không?

Không chắc nếu vấn đề này trong trường hợp này, nhưng:
Windows 7 Jmeter 2,9

Dưới đây là thông tin đăng nhập:

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 cho bất kỳ thông tin về vấn đề này!

Jamie

+0

gì có thể vấn đề này đã được nếu bạn muốn di chuyển từ máy này sang máy khác? – yochannah

Trả lời

1

Dường như tệp của bạn bị hỏng.

Hãy thử mở nó trong trình chỉnh sửa xml để xem nó có đúng không.

Kiểm tra dung lượng ổ đĩa hoặc sự cố đĩa. Bạn có gặp sự cố trong khi lưu không?

Bạn có thể thử thêm thẻ thủ công để kết thúc lại thẻ, có thể bạn sẽ cần xóa nút xml cuối cùng.

+0

Phải có lỗi trong quá trình lưu. Khi tôi mở dưới dạng XML, tôi có thể thấy các thẻ bị thiếu. Cảm ơn! –

+0

Chúc mừng tôi đã giúp, vì vậy câu trả lời rất hữu ích cho người khác, bạn nên chấp nhận nó và upvote :) –

4

Đây là cách nhanh chóng để khoanh vùng tệp jmx thử nghiệm bị hỏng của bạn.

  1. Tới thư mục jmeter của bạn và tập tin jmeter.log mở
  2. Các hàng mới nhất rapresents các jmeter lỗi cuối cùng đăng nhập, bạn phải tìm một khối như thế này:

    ---- Gỡ rối thông tin ---- thông báo: com.atlantbh.jmeter.plugins.rest.RestSampler nguyên nhân ngoại lệ: com.thoughtworks.xstream.mapper.CannotResolveClassException thông điệp gây ra: com.atlantbh.jmeter.plugins.rest.RestSampler lớp học : org.apache.jorphan.collections.ListedHashTree bắt buộc-type: org.apache.jorphan.collections.ListedHashTree loại chuyển đổi: org.apache.jmeter.save.converters.HashTreeConverter đường dẫn:/jmeterTestPlan/hashTree/hashTree/hashTree [3]/hashTree [3]/com.atlantbh.jmeter.plugins.rest.số dòng RestSampler: 950

  3. Mở jmx tập tin bị hỏng của bạn với một trình soạn thảo văn bản và tìm dòng hỏng mã (trong ví dụ trên dòng hỏng là 950)

  4. Di chuyển toàn bộ thẻ từ <tag.name> để </tag.name> (hoặc nếu bạn là enought thử tay nghề cao để lướt vào thẻ trẻ em, tìm ra lỗi và sửa chữa nó)
  5. Lưu tập tin chỉnh sửa của bạn với một cái tên khác
  6. tải vào jmeter
  7. Nếu lỗi vẫn tồn tại, lặp lại từ bước 1 (bạn sẽ tìm thấy một thẻ mới để xóa)
+0

Điều này cũng hoạt động nếu bạn có phiên bản plugin khác với bản gốc và thêm/xóa thẻ mà jmeter đang bị nghẹt thở. – Renee

0

Tôi có cùng loại tình huống, jmx sẽ không tải. Chỉ có lỗi thì khác, tôi nhận: java.lang.ArrayIndexOutOfBoundsException

này đã được cố định bằng cách cài đặt Java SE 1.7.0.67

2

Chúng tôi tình cờ gặp một vấn đề tương tự khi cố gắng mở một thử nghiệm sử dụng JMeter 2.13. Điều này đã được giải quyết bằng cách thêm một số plugin JMeter.

Trong trường hợp của chúng tôi, chúng tôi cần thêm bình 'JMeterPlugins-Standard' vào thư mục lib/ext để sử dụng kg.apc.jmeter.vizualizers.ResponseTimesOverTimeGui (HOẶC kg.apc.jmeter.vizualizers.CorrectedResultCollector) trong thử nghiệm.

Ngoài ra, chúng tôi cần thêm bình jmeter-plugins-1.0.0 vào thư mục lib/junit để sử dụng com.atlantbh.jmeter.plugins.rest.gui.RestGui (HOẶC com.atlantbh.jmeter.plugins.rest.RestSampler).

Trong trường hợp này, bạn cần phải tìm dòng 7282 trong thử nghiệm của bạn để xem nó thiếu gì và thêm plugin thích hợp cho nó.

Vì một số lý do, các tệp jar này không được bao gồm trong tải xuống jmeter mặc định.

Hy vọng điều đó sẽ hữu ích.

0

Vui lòng kiểm tra tệp .jmx của bạn có thể có một số mã đã bị xóa .... Tôi đã gặp phải vấn đề tương tự ... nhưng sau khi xem tệp .jmx của tôi, tôi thấy có một số mã bị xóa bởi thành viên nhóm của tôi .. .

0

Thực hiện theo các bước sau

  1. đến bên dưới liên kết https://jmeter-plugins.org/downloads/all/ và thêm plug-in quản lý để Jmeter bạn

  2. Restart Jmeter

  3. Add cần plugin bằng cách nhấp vào "tùy chọn -> Plugins Manager"
  4. Restart Jmeter

Tôi nghĩ rằng nó có thể giải quyết vấn đề của bạn

Các vấn đề liên quan