在子菜单项上使用鼠标scoll时出现异常

时间:2018-03-26 10:52:30

标签: jmeter

我点击添加 - >任何选项作为配置元素,然后向上/向下滚动鼠标

每个滚动都有未捕获的异常:

2018-03-26 13:47:18,742 ERROR o.a.j.JMeter: Uncaught exception: 
java.lang.ArrayIndexOutOfBoundsException: -25
    at org.apache.jorphan.gui.MenuScroller.refreshMenu(MenuScroller.java:550) ~[jorphan.jar:4.0 r1823414]
    at org.apache.jorphan.gui.MenuScroller.access$300(MenuScroller.java:55) ~[jorphan.jar:4.0 r1823414]
    at org.apache.jorphan.gui.MenuScroller$MouseScrollListener.mouseWheelMoved(MenuScroller.java:576) ~[jorphan.jar:4.0 r1823414]
    at java.awt.Component.processMouseWheelEvent(Unknown Source) ~[?:1.8.0_25]
    at java.awt.Component.processEvent(Unknown Source) ~[?:1.8.0_25]
    at java.awt.Container.processEvent(Unknown Source) ~[?:1.8.0_25]
    at java.awt.Component.dispatchEventImpl(Unknown Source) ~[?:1.8.0_25]
    at java.awt.Container.dispatchEventImpl(Unknown Source) ~[?:1.8.0_25]
    at java.awt.Component.dispatchEvent(Unknown Source) ~[?:1.8.0_25]
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) ~[?:1.8.0_25]
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) ~[?:1.8.0_25]
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) ~[?:1.8.0_25]
    at java.awt.Container.dispatchEventImpl(Unknown Source) ~[?:1.8.0_25]
    at java.awt.Window.dispatchEventImpl(Unknown Source) ~[?:1.8.0_25]
    at java.awt.Component.dispatchEvent(Unknown Source) ~[?:1.8.0_25]
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source) ~[?:1.8.0_25]
    at java.awt.EventQueue.access$400(Unknown Source) ~[?:1.8.0_25]
    at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_25]
    at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_25]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_25]
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_25]
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_25]
    at java.awt.EventQueue$4.run(Unknown Source) ~[?:1.8.0_25]
    at java.awt.EventQueue$4.run(Unknown Source) ~[?:1.8.0_25]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_25]
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_25]
    at java.awt.EventQueue.dispatchEvent(Unknown Source) ~[?:1.8.0_25]
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_25]
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_25]
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_25]
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_25]
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_25]
    at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_25]

请注意,它仅在子菜单以及JMeter 3.3和最新4.0版本中发生

滚动示例的选项:

修改

将Root更改为日志级别调试后,vanilla JMeter 4.0出错:

2018-03-26 14:46:22,799 DEBUG o.a.j.g.GuiPackage: Updating gui to new node
2018-03-26 14:46:22,800 DEBUG o.a.j.g.GuiPackage: Showing pop up for org.apache.jmeter.gui.MainFrame$1[,0,0,374x759,invalid,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.synth.SynthBorder@29c29532,flags=16777704,maximumSize=,minimumSize=,preferredSize=,editable=false,invokesStopCellEditing=false,largeModel=false,rootVisible=false,rowHeight=0,scrollsOnExpand=true,showsRootHandles=true,toggleClickCount=2,visibleRowCount=20] at x,y = 77,15
2018-03-26 14:46:24,618 ERROR o.a.j.JMeter: Uncaught exception: 
java.lang.ArrayIndexOutOfBoundsException: -38
    at org.apache.jorphan.gui.MenuScroller.refreshMenu(MenuScroller.java:550) ~[jorphan.jar:4.0 r1823414]
    at org.apache.jorphan.gui.MenuScroller.access$300(MenuScroller.java:55) ~[jorphan.jar:4.0 r1823414]
    at org.apache.jorphan.gui.MenuScroller$MouseScrollListener.mouseWheelMoved(MenuScroller.java:576) ~[jorphan.jar:4.0 r1823414]
    at java.awt.Component.processMouseWheelEvent(Unknown Source) ~[?:1.8.0_25]
    at java.awt.Component.processEvent(Unknown Source) ~[?:1.8.0_25]
    at java.awt.Container.processEvent(Unknown Source) ~[?:1.8.0_25]
    at java.awt.Component.dispatchEventImpl(Unknown Source) ~[?:1.8.0_25]
    at java.awt.Container.dispatchEventToSelf(Unknown Source) ~[?:1.8.0_25]
    at java.awt.Component.dispatchMouseWheelToAncestor(Unknown Source) ~[?:1.8.0_25]
    at java.awt.Component.dispatchEventImpl(Unknown Source) ~[?:1.8.0_25]
    at java.awt.Container.dispatchEventImpl(Unknown Source) ~[?:1.8.0_25]
    at java.awt.Component.dispatchEvent(Unknown Source) ~[?:1.8.0_25]
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) ~[?:1.8.0_25]
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) ~[?:1.8.0_25]
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) ~[?:1.8.0_25]
    at java.awt.Container.dispatchEventImpl(Unknown Source) ~[?:1.8.0_25]
    at java.awt.Window.dispatchEventImpl(Unknown Source) ~[?:1.8.0_25]
    at java.awt.Component.dispatchEvent(Unknown Source) ~[?:1.8.0_25]
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source) ~[?:1.8.0_25]
    at java.awt.EventQueue.access$400(Unknown Source) ~[?:1.8.0_25]
    at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_25]
    at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_25]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_25]
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_25]
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_25]
    at java.awt.EventQueue$4.run(Unknown Source) ~[?:1.8.0_25]
    at java.awt.EventQueue$4.run(Unknown Source) ~[?:1.8.0_25]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_25]
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_25]
    at java.awt.EventQueue.dispatchEvent(Unknown Source) ~[?:1.8.0_25]
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_25]
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_25]
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_25]
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_25]
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_25]
    at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_25]

2 个答案:

答案 0 :(得分:2)

这是JMeter应用程序中的bug,只有在您打开菜单然后执行向下滚动操作时才会出现。

我建议不要在所有选项都可见的情况下向下滚动,只需选择您需要的选项。

答案 1 :(得分:-2)

  1. JMeter issue tracker位于https://bz.apache.org/bugzilla/,而不是
  2. 这个问题不能在香草JMeter 4.0和3.3上重现,所以请用&#34; lib&#34;的内容更新你的问题。和&#34; lib / ext&#34; JMeter安装的文件夹。 JMeter开发人员以及JMeter日志会向您提出相同的详细程度,您需要在 log4j2.xml 文件中将<Root level="info">更改为ie <Root level="debug">(住在JMeter&#34; bin&#34;文件夹)
  3. 安装JMeter插件的推荐方法是JMeter Plugins Manager