https://bz.apache.org/bugzilla/show_bug.cgi?id=65005
Bug ID: 65005
Summary: Copy/paste elements from tree pane throws an error
Product: JMeter
Version: Nightly (Please specify date)
Hardware: PC
Status: NEW
Severity: major
Priority: P2
Component: HTTP
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: JMETER 5.4.1
Created attachment 37627
--> https://bz.apache.org/bugzilla/attachment.cgi?id=37627&action=edit
copy/paste error
Hello,
If Http Sampler is copied from tree pane using Ctrl+C or from context menu from
version JMeter 5.3 and pasted to 5.4 and vice versa, pop up error message is
shown. Check provided image and log:
ERROR o.a.j.g.a.Copy: Clipboard node read error:
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase; local class
incompatible: stream classdesc serialVersionUID = 243, local class
serialVersionUID = 242
java.io.IOException: org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase;
local class incompatible: stream classdesc serialVersionUID = 243, local class
serialVersionUID = 242
at
sun.awt.datatransfer.DataTransferer.translateStream(DataTransferer.java:1379)
~[?:?]
at
sun.awt.windows.WDataTransferer.translateStream(WDataTransferer.java:237)
~[?:?]
at
sun.awt.datatransfer.DataTransferer.translateBytes(DataTransferer.java:1260)
~[?:?]
at
sun.awt.windows.WDataTransferer.translateBytes(WDataTransferer.java:285) ~[?:?]
at sun.awt.datatransfer.SunClipboard.getData(SunClipboard.java:230)
~[?:?]
at org.apache.jmeter.gui.action.Copy.getCopiedNodes(Copy.java:73)
~[ApacheJMeter_core.jar:5.3]
at org.apache.jmeter.gui.action.Paste.doAction(Paste.java:62)
~[ApacheJMeter_core.jar:5.3]
at
org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:87)
~[ApacheJMeter_core.jar:5.3]
at
org.apache.jmeter.gui.action.ActionRouter.doActionNow(ActionRouter.java:124)
~[ApacheJMeter_core.jar:5.3]
at
org.apache.jmeter.gui.tree.JMeterTreeListener.keyPressed(JMeterTreeListener.java:226)
~[ApacheJMeter_core.jar:5.3]
at
java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:258) ~[?:?]
at java.awt.Component.processKeyEvent(Component.java:6594) ~[?:?]
at javax.swing.JComponent.processKeyEvent(JComponent.java:2849) ~[?:?]
at java.awt.Component.processEvent(Component.java:6413) ~[?:?]
at java.awt.Container.processEvent(Container.java:2263) ~[?:?]
at java.awt.Component.dispatchEventImpl(Component.java:5012) ~[?:?]
at java.awt.Container.dispatchEventImpl(Container.java:2321) ~[?:?]
at java.awt.Component.dispatchEvent(Component.java:4844) ~[?:?]
at
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1950)
~[?:?]
at
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:870)
~[?:?]
at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1139)
~[?:?]
at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:1009)
~[?:?]
at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:835)
~[?:?]
at java.awt.Component.dispatchEventImpl(Component.java:4893) ~[?:?]
at java.awt.Container.dispatchEventImpl(Container.java:2321) ~[?:?]
at java.awt.Window.dispatchEventImpl(Window.java:2762) ~[?:?]
at java.awt.Component.dispatchEvent(Component.java:4844) ~[?:?]
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772) ~[?:?]
at java.awt.EventQueue$4.run(EventQueue.java:721) ~[?:?]
at java.awt.EventQueue$4.run(EventQueue.java:715) ~[?:?]
at
java.security.AccessController.doPrivileged(AccessController.java:391) [?:?]
at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
~[?:?]
at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
~[?:?]
at java.awt.EventQueue$5.run(EventQueue.java:745) ~[?:?]
at java.awt.EventQueue$5.run(EventQueue.java:743) ~[?:?]
at
java.security.AccessController.doPrivileged(AccessController.java:391) [?:?]
at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
[?:?]
at java.awt.EventQueue.dispatchEvent(EventQueue.java:742) [?:?]
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
[?:?]
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
[?:?]
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
[?:?]
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) [?:?]
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:?]
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90) [?:?]
The same happens when JSR223 elements like PreProcessor, Timer, PostProcessor,
Assertion, Listener are copy/pasted. Is this an expected issue?
The rest of the frequently used elements can be copy/pasted without an error. I
didn't check them all so there might be more problematic ones.
P.S. GraphQL HTTP Request is presented in 5.4 version, so copying to 5.3 might
be the expected behavior.
Jmeter 5.3
Jmeter 5.4.1 53c6db8
Jmeter 5.4.1 58ad5bc
Microsoft Windows 10 Pro 64-bit
java version "1.8.0_251"
--
You are receiving this mail because:
You are the assignee for the bug.