Bug 44314

Summary: Not possible to add more than one SyncTimer
Product: JMeter - Now in Github Reporter: yvlk
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   

Description yvlk 2008-01-28 08:46:44 UTC
When trying to add SyncTimer into more than one thread group, second instance is
not initialized well and the following exception is thrown:

Exception in thread "AWT-EventQueue-0" java.lang.Error: java.lang.NumberFormatEx
ception: For input string: ""
        at org.apache.jmeter.testbeans.gui.WrapperEditor.shouldNeverHappen(Wrapp
erEditor.java:228)
        at org.apache.jmeter.testbeans.gui.WrapperEditor.getValue(WrapperEditor.
java:278)
        at org.apache.jmeter.testbeans.gui.GenericTestBeanCustomizer.saveGuiFiel
ds(GenericTestBeanCustomizer.java:570)
        at org.apache.jmeter.testbeans.gui.TestBeanGUI.modifyTestElement(TestBea
nGUI.java:231)
        at org.apache.jmeter.testbeans.gui.TestBeanGUI.createTestElement(TestBea
nGUI.java:208)
        at org.apache.jmeter.gui.GuiPackage.createTestElement(GuiPackage.java:29
7)
        at org.apache.jmeter.gui.action.AddToTree.doAction(AddToTree.java:68)
        at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.
java:80)
        at org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.jav
a:42)
        at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:59)

        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Comment 1 Sebb 2008-01-28 08:52:51 UTC
Confirmed, even in a single thread group

A work-round is to use copy and paste.
Comment 2 Sebb 2008-01-28 16:07:38 UTC
Thanks or the report; fixed in SVN r616113
Comment 3 The ASF infrastructure team 2022-09-24 20:37:41 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2065