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 198929 - NullPointerException at javax.swing.SizeRequirements.calculateAlignedPositions
Summary: NullPointerException at javax.swing.SizeRequirements.calculateAlignedPositions
Status: CLOSED WONTFIX
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-05-26 19:21 UTC by hajdamcz
Modified: 2011-06-08 11:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 179032


Attachments
stacktrace (2.50 KB, text/plain)
2011-05-26 19:21 UTC, hajdamcz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hajdamcz 2011-05-26 19:21:10 UTC
Build: NetBeans IDE 7.0 (Build 201104080000)
VM: Java HotSpot(TM) 64-Bit Server VM, 21.0-b02, Java(TM) SE Runtime Environment, 1.7.0-ea-b131
OS: Linux

User Comments:
hajdamcz: Editing Action via GUI (Default Editor) while missing @Action annotation in java file




Stacktrace: 
java.lang.NullPointerException
   at javax.swing.SizeRequirements.calculateAlignedPositions(SizeRequirements.java:461)
   at javax.swing.BoxLayout.layoutContainer(BoxLayout.java:434)
   at java.awt.Container.layout(Container.java:1499)
   at java.awt.Container.doLayout(Container.java:1488)
   at java.awt.Container.validateTree(Container.java:1672)
   at java.awt.Container.validateTree(Container.java:1681)
Comment 1 hajdamcz 2011-05-26 19:21:15 UTC
Created attachment 108537 [details]
stacktrace
Comment 2 Jan Stola 2011-05-27 15:40:01 UTC
This exception seems to be a consequence of some previous exception. I scanned the corresponding message.log and the initial exception seems to be:

java.lang.NullPointerException
	at sun.swing.SwingUtilities2.getLeftSideBearing
           (SwingUtilities2.java:274)
	at sun.swing.MenuItemLayoutHelper.getLeftExtraWidth
           (MenuItemLayoutHelper.java:162)
	at sun.swing.MenuItemLayoutHelper.calcExtraWidths
           (MenuItemLayoutHelper.java:158)
	at sun.swing.MenuItemLayoutHelper.reset(MenuItemLayoutHelper.java:148)
	at sun.swing.MenuItemLayoutHelper.<init>(MenuItemLayoutHelper.java:107)
	at javax.swing.plaf.basic.BasicMenuItemUI.getPreferredMenuItemSize
           (BasicMenuItemUI.java:412)
	at javax.swing.plaf.basic.BasicMenuItemUI.getPreferredSize
           (BasicMenuItemUI.java:367)
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1660)
	at javax.swing.BoxLayout.checkRequests(BoxLayout.java:483)
	at javax.swing.BoxLayout.layoutContainer(BoxLayout.java:424)
	at java.awt.Container.layout(Container.java:1499)
	at java.awt.Container.doLayout(Container.java:1488)
	at java.awt.Container.validateTree(Container.java:1672)
        ...

Event this exception doesn't seem to be related to GUI Builder or NetBeans. It is probably a JDK bug. In fact, it was already reported against JDK under no. 7037283, but it was closed as non-reproducible. Hence, if you are able to reproduce this exception reliably then, please, provide the details to JDK team. Thank you in advance.

The JDK issue: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7037283

I am closing this issue as INVALID because it seems to be outside NetBeans code.
Comment 3 Marian Mirilovic 2011-06-08 11:21:59 UTC
Correct resolution is WONTFIX