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 203131 - AssertionError at org.netbeans.modules.form.layoutdesign.LayoutInterval.getEffectiveAlignmentInParent
Summary: AssertionError at org.netbeans.modules.form.layoutdesign.LayoutInterval.getEf...
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-05 10:15 UTC by MackSix
Modified: 2011-10-21 14:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 181645


Attachments
stacktrace (3.13 KB, text/plain)
2011-10-05 10:15 UTC, MackSix
Details
Project that exhibits the error. (23.45 KB, application/zip)
2011-10-11 05:21 UTC, MackSix
Details
Screenshot shows where to position jRadioButton2. (24.88 KB, image/png)
2011-10-11 05:22 UTC, MackSix
Details
Screenshot shows optional movement of jSlider1 causes same error. (16.73 KB, image/png)
2011-10-11 05:27 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2011-10-05 10:15:33 UTC
Build: NetBeans IDE Dev (Build 201110040601)
VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Windows Vista

User Comments:
MackSix: Trying to align some jRadioButtons with Seperators between them. Will try to reproduce.




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.form.layoutdesign.LayoutInterval.getEffectiveAlignmentInParent(LayoutInterval.java:1187)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.addToGroup(LayoutFeeder.java:2211)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.addInterval(LayoutFeeder.java:1781)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.add(LayoutFeeder.java:516)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.addComponents(LayoutDesigner.java:1204)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.endMoving(LayoutDesigner.java:1116)
Comment 1 MackSix 2011-10-05 10:15:38 UTC
Created attachment 111522 [details]
stacktrace
Comment 2 Jan Stola 2011-10-09 10:00:41 UTC
I am sorry, I am not able to reproduce this issue 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 more details? It would be ideal to attach the problematic form (both .java and .form files) saved in the last good state and describe _exact_ steps that lead to the exception. Thank you in advance.
Comment 3 MackSix 2011-10-11 05:21:26 UTC
Created attachment 111822 [details]
Project that exhibits the error.

Open up attached project and try to position jRadioButton2 to the right a bit as shown in the attached screenshot.
Comment 4 MackSix 2011-10-11 05:22:48 UTC
Created attachment 111823 [details]
Screenshot shows where to position jRadioButton2.

Screenshot shows where to position jRadioButton2.
Comment 5 MackSix 2011-10-11 05:27:37 UTC
Created attachment 111824 [details]
Screenshot shows optional movement of jSlider1 causes same error.

Optionally, try to move jSlider1 to the left and position it as this screenshot shows. It throws same error.
Comment 6 MackSix 2011-10-11 05:27:58 UTC
Product Version: NetBeans IDE Dev (Build 201110100600)
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)
Comment 7 Jan Stola 2011-10-11 08:26:12 UTC
Thank you for the additional information. I am able to reproduce the exception now (using both test-cases that you described).
Comment 8 Tomas Pavek 2011-10-21 14:33:41 UTC
Can reproduce in 201110120600, but not in build from current sources. Must have been fixed recently with something else.