This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | LAYOUT: AssertionError when duplicating components | ||
---|---|---|---|
Product: | guibuilder | Reporter: | pribyl <pribyl> |
Component: | Natural Layout | Assignee: | issues@guibuilder <issues> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | alied, theanuradha |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=144294 | ||
Issue Type: | DEFECT | Exception Reporter: | 144294 |
Bug Depends on: | |||
Bug Blocks: | 136425 | ||
Attachments: |
stacktrace
stacktrace stacktrace stacktrace stacktrace stacktrace Project that exhibits the error. |
Description
pribyl
2008-12-12 13:59:14 UTC
Created attachment 74910 [details]
stacktrace
Can you please attach the form where this happened? Or can it be reproduced in an empty form with just one button? Thanks To reproduce, please use following steps: 1, Create new java project and create new JFrame Form file 2, Place new JPanel from the Palette to this form 3, Place a JButton under the JPanel 4, Select the JButton and select "Duplicate" from the popup menu 5, Select both JButtons and again invoke popup menu and select "Duplicate" -> The Assertion Error is thrown Reproducible Product Version: NetBeans IDE Dev (Build 200812180201) Java: 1.6.0_11; Java HotSpot(TM) Client VM 11.0-b16 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb) The stack trace is very similar to (already fixed issues) 145134 and 128426. Steps to reproduce: 1. Place 3 buttons (into a column) into an empty form. 2. Select two of them and invoke Duplicate. Build: NetBeans IDE Dev (Build 090423) VM: OpenJDK Client VM, 14.0-b10, Java(TM) SE Runtime Environment, 1.6.0_14-ea-b01 OS: Windows XP, 5.1, x86 User Comments: Try to duplicate some controls Stacktrace: java.lang.AssertionError at org.netbeans.modules.form.layoutdesign.LayoutModel.addInterval(LayoutModel.java:319) at org.netbeans.modules.form.layoutdesign.LayoutDesigner.duplicateSequentially(LayoutDesigner.java:1831) at org.netbeans.modules.form.layoutdesign.LayoutDesigner.duplicateLayout(LayoutDesigner.java:1717) at org.netbeans.modules.form.actions.DuplicateAction.duplicate(DuplicateAction.java:119) at org.netbeans.modules.form.actions.DuplicateAction.performAction(DuplicateAction.java:84) at org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:589) Created attachment 81159 [details]
stacktrace
Build: NetBeans IDE Dev (Build 200910061401) VM: Java HotSpot(TM) Client VM, 16.0-b06, Java(TM) SE Runtime Environment, 1.7.0-ea-b66 OS: Windows Vista, 6.0, x86 User Comments: Stacktrace: java.lang.AssertionError at org.netbeans.modules.form.layoutdesign.LayoutModel.addInterval(LayoutModel.java:319) at org.netbeans.modules.form.layoutdesign.LayoutDesigner.duplicateSequentially(LayoutDesigner.java:1827) at org.netbeans.modules.form.layoutdesign.LayoutDesigner.duplicateLayout(LayoutDesigner.java:1716) at org.netbeans.modules.form.actions.DuplicateAction.duplicate(DuplicateAction.java:119) at org.netbeans.modules.form.actions.DuplicateAction.performAction(DuplicateAction.java:92) at org.netbeans.modules.form.HandleLayer.processKeyEvent(HandleLayer.java:770) Created attachment 88957 [details]
stacktrace
Created attachment 91784 [details]
stacktrace
Created attachment 92878 [details]
stacktrace
Created attachment 95493 [details]
stacktrace
Still Valid Product Version: NetBeans IDE Dev (Build 201110030601) Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17 System: Linux version 2.6.38-11-generic running on i386; UTF-8; en_US (nb) Created attachment 111624 [details]
Project that exhibits the error.
Choose filler2 and filler3, right click for pop-up menu, choose "Duplicate".
Product Version: NetBeans IDE Dev (Build 201110050601)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/386d3a072ef1 User: Tomas Pavek <tpavek@netbeans.org> Log: #155344: avoid attempts to duplicate components multiple times if in the same sequence |