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.

Bug 199259 - AssertionError at org.netbeans.modules.form.layoutdesign.LayoutModel.addInterval
Summary: AssertionError at org.netbeans.modules.form.layoutdesign.LayoutModel.addInterval
Status: RESOLVED DUPLICATE of bug 205319
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-08 10:00 UTC by asenk
Modified: 2012-01-27 15:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 7638


Attachments
stacktrace (3.75 KB, text/plain)
2011-06-08 10:00 UTC, asenk
Details
Project that exhibits the error. (29.36 KB, application/zip)
2011-11-18 18:21 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description asenk 2011-06-08 10:00:49 UTC
Build: NetBeans IDE 7.0.1 Dev (Build 201106072116)
VM: Java HotSpot(TM) Client VM, 21.0-b15, Java(TM) SE Runtime Environment, 1.7.0-ea-b145
OS: Linux

User Comments:
GUEST: probelmas al deshacer una componete jframe dentro de de una tableta

asenk: 1. start IDE with fresh userdir
2. create new project
3. add JFrame Form
4. add some Swing components
5. right-click on JFrame > select Set Layout
6. click on Grid Bag L.
7. right-click on JFrame > select Set Layout
8. click on Grid L.
9. Click twice on UNDO

GUEST: GUIBuilder




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.form.layoutdesign.LayoutModel.addInterval(LayoutModel.java:322)
   at org.netbeans.modules.form.layoutdesign.LayoutEvent$Interval.undoIntervalRemoval(LayoutEvent.java:226)
   at org.netbeans.modules.form.layoutdesign.LayoutEvent$Interval.undo(LayoutEvent.java:168)
   at org.netbeans.modules.form.layoutdesign.LayoutModel.undo(LayoutModel.java:889)
   at org.netbeans.modules.form.layoutdesign.LayoutModel$LayoutUndoableEdit.undo(LayoutModel.java:948)
   at javax.swing.undo.CompoundEdit.undo(CompoundEdit.java:63)
Comment 1 asenk 2011-06-08 10:00:54 UTC
Created attachment 108798 [details]
stacktrace
Comment 2 Jan Stola 2011-10-01 16:17:43 UTC
I am sorry, I am not able to reproduce this issue (neither in the current development build nor in NetBeans 7.0.1 where it should be present according to asenk's report) and the attached stack-trace is not sufficient to track the problem down.

Are you still able to reproduce it? If so, could you, please, provide _exact_ steps that lead to the exception? I tried to follow your steps but no exception was thrown. I assume that the problem is in vague description of the 4th step. The exception is thrown for some layouts only I guess.
Comment 3 MackSix 2011-11-18 18:21:15 UTC
Created attachment 113333 [details]
Project that exhibits the error.

1) Open attached project and open both java files in Editor.
2) Change Form to Grid Bag Layout from Navigator
3) Change to Null Layout
4) Change to Free Design
5) Click Undo button back to Free Design again.

This AssertionError happens.

Product Version: NetBeans IDE 7.1 RC1 (Build 201111171527)
Java: 1.7.0_01; Java HotSpot(TM) Client VM 21.1-b02
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb
Comment 4 MackSix 2011-11-18 18:36:04 UTC
Notice Issue 205139 looks the same.
Comment 5 Tomas Pavek 2012-01-27 15:21:43 UTC

*** This bug has been marked as a duplicate of bug 205319 ***