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 128813 - LAYOUT: AssertionError at LayoutModel.addInterval
Summary: LAYOUT: AssertionError at LayoutModel.addInterval
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-29 12:37 UTC by kate
Modified: 2008-04-01 16:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 14970


Attachments
stacktrace (5.53 KB, text/plain)
2008-02-29 12:37 UTC, kate
Details
stacktrace (3.02 KB, text/plain)
2008-02-29 13:15 UTC, kate
Details
a.jpg (starting position of component before shift) (53.48 KB, image/jpeg)
2008-02-29 13:27 UTC, kate
Details
b.jpg (when JPanel is moved here and released, exception is raised) (44.12 KB, image/jpeg)
2008-02-29 13:28 UTC, kate
Details
Assertion Error_128813 (2.31 KB, text/plain)
2008-03-03 08:02 UTC, Jana Maleckova
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kate 2008-02-29 12:37:02 UTC
Build: NetBeans IDE Dev (Build 200802270005)
VM: Java HotSpot(TM) Client VM, 10.0-b19
OS: Windows XP, 5.1, x86

User Comments: 
Sudden exception reported from IDE. More details will follow.
Comment 1 kate 2008-02-29 12:37:44 UTC
Created attachment 57529 [details]
stacktrace
Comment 2 kate 2008-02-29 12:41:31 UTC

*** This issue has been marked as a duplicate of 14970 ***
Comment 3 kate 2008-02-29 12:53:18 UTC
Issue marked as duplicate of non relevant issue.
Comment 4 kate 2008-02-29 13:15:14 UTC
Build: NetBeans IDE Dev (Build 200802270005)
VM: Java HotSpot(TM) Client VM, 10.0-b19
OS: Windows XP, 5.1, x86

User Comments: 
Exception raised in IDE when moving JPanel in Designer Window (Null Layout set)
Comment 5 kate 2008-02-29 13:15:18 UTC
Created attachment 57535 [details]
stacktrace
Comment 6 kate 2008-02-29 13:27:40 UTC
Created attachment 57536 [details]
a.jpg (starting position of component before shift)
Comment 7 kate 2008-02-29 13:28:39 UTC
Created attachment 57537 [details]
b.jpg (when JPanel is moved here and released, exception is raised)
Comment 8 kate 2008-02-29 13:46:06 UTC
Description:
===========

1] New JFrame
2] Add new JMenuBar to JFrame
3] Add new JPanel (jPanel1) to JFrame
4] Add new JPanel (jPanel2) to JFrame
5] Inspector Window: JFrame -> Set Layout -> Null Layout
6] In Designer Window move jPanel1 over JMenuBar as displayed in screenshot b.jpg

This results in java.lang.AssertionError regularly but I think that the previous exception (NullPointer) is just only
another consequence of the same problem.
Comment 9 Jana Maleckova 2008-03-03 08:01:21 UTC
I followed the description you wrote there and I encountered AssertionError. I will enclose it there as well.
Thanks for reproducible steps.


StackTrace:
===========
java.lang.AssertionError
	at org.netbeans.modules.form.layoutdesign.LayoutModel.addInterval(LayoutModel.java:308)
	at org.netbeans.modules.form.layoutdesign.LayoutFeeder.addToGroup(LayoutFeeder.java:1039)
	at org.netbeans.modules.form.layoutdesign.LayoutFeeder.addInterval(LayoutFeeder.java:750)
	at org.netbeans.modules.form.layoutdesign.LayoutFeeder.add(LayoutFeeder.java:307)
	at org.netbeans.modules.form.layoutdesign.LayoutDesigner.addComponents(LayoutDesigner.java:806)
Comment 10 Jana Maleckova 2008-03-03 08:02:40 UTC
Created attachment 57638 [details]
Assertion Error_128813
Comment 11 Jan Stola 2008-03-03 15:10:14 UTC
This issue has nothing to do with JMenuBar. It is sufficient to use the following steps:

1. Add two JPanels into JFrame with Free Design.
2. Change layout manager to null layout.
3. Move one panel into the other.
   => exception is thrown
Comment 12 Tomas Pavek 2008-03-25 10:49:15 UTC
Fixed.

http://hg.netbeans.org/main/rev/bbc150777194
Comment 13 kate 2008-04-01 16:35:34 UTC
verified in build 200803311211