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 141926 - [65cat] [core] Crash while tabbing through Options
Summary: [65cat] [core] Crash while tabbing through Options
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Viktor Lapitski
URL:
Keywords:
: 141342 144935 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-28 17:56 UTC by esmithbss
Modified: 2008-08-30 00:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
UIGestures (65.00 KB, text/plain)
2008-07-28 17:56 UTC, esmithbss
Details
Metrics (84.74 KB, text/plain)
2008-07-28 17:57 UTC, esmithbss
Details
Messages (96.39 KB, text/plain)
2008-07-28 17:57 UTC, esmithbss
Details
ide log file (127.46 KB, text/plain)
2008-08-20 04:45 UTC, Peter Lam
Details
video for tabbing through options w/NPEs (4.11 MB, application/octet-stream)
2008-08-20 05:00 UTC, Peter Lam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description esmithbss 2008-07-28 17:56:10 UTC
[ BUILD # : 200807280848 ]
[ JDK VERSION : 1.6.0_07 ]

I opened NetBeans and started going back and forth within the options
dialogs.  During the movement I received an exception.  When
attempting to "set Proxy" within the UI Gestures Collector, the "Set
Proxy" button does nothing.

All logs from ~/.netbeans/dev/var/log are attached
Comment 1 esmithbss 2008-07-28 17:56:45 UTC
Created attachment 65831 [details]
UIGestures
Comment 2 esmithbss 2008-07-28 17:57:01 UTC
Created attachment 65832 [details]
Metrics
Comment 3 esmithbss 2008-07-28 17:57:35 UTC
Created attachment 65833 [details]
Messages
Comment 4 Peter Pis 2008-08-01 13:06:50 UTC
Reassigning to "uml" for evaluation.
Comment 5 Peter Lam 2008-08-01 18:49:19 UTC
In today's NB 6.5 UML daily build (from uml-main) 20080801, just clicking on the UML button after bringing up the
Options dialog from a fresh userdir, I got the following AssertionError popped up on Windows Vista.

java.lang.AssertionError
	at org.netbeans.modules.visual.graph.layout.HierarchicalLayout$BuildDatastructure.run(HierarchicalLayout.java:259)
	at org.netbeans.modules.visual.graph.layout.HierarchicalLayout$AlgorithmPart.start(HierarchicalLayout.java:171)
	at org.netbeans.modules.visual.graph.layout.HierarchicalLayout.performGraphLayout(HierarchicalLayout.java:206)
	at org.netbeans.api.visual.graph.layout.GraphLayout.layoutGraph(GraphLayout.java:116)
[catch] at org.netbeans.modules.uml.diagrams.options.ElementCustomizationPanel$1.run(ElementCustomizationPanel.java:168)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 6 Trey Spiva 2008-08-04 15:50:09 UTC
The exception that was mentioned in the original is:
java.lang.NullPointerException
	at org.netbeans.modules.uml.ui.support.commonresources.CommonResourceManager.getIconForElementType(CommonResourceManager.java:452)
	at org.netbeans.modules.uml.diagrams.nodes.UMLNameWidget.getIcon(UMLNameWidget.java:245)
	at org.netbeans.modules.uml.diagrams.nodes.UMLNameWidget.initialize(UMLNameWidget.java:147)
	at org.netbeans.modules.uml.diagrams.nodes.AliasedTypeWidget.createDataTypeView(AliasedTypeWidget.java:117)
	at org.netbeans.modules.uml.diagrams.nodes.AliasedTypeWidget.initializeNode(AliasedTypeWidget.java:95)
	at org.netbeans.modules.uml.drawingarea.view.UMLNodeWidget.initializeNode(UMLNodeWidget.java:251)
	at org.netbeans.modules.uml.diagrams.options.PreviewScene.createWidget(PreviewScene.java:241)
	at org.netbeans.modules.uml.diagrams.options.PreviewScene.attachNodeWidget(PreviewScene.java:212)
	at org.netbeans.modules.uml.diagrams.options.PreviewScene.attachNodeWidget(PreviewScene.java:79)
Comment 7 Trey Spiva 2008-08-08 17:43:44 UTC
I have not been able to reproduce this problem.
Comment 8 Trey Spiva 2008-08-15 21:25:01 UTC
I am now able to reproduce this issue very reliably.

Comment 9 Trey Spiva 2008-08-15 22:45:23 UTC
Fixed
Comment 11 Trey Spiva 2008-08-18 18:47:48 UTC
Reviewed
Comment 12 Trey Spiva 2008-08-18 21:17:38 UTC
*** Issue 141342 has been marked as a duplicate of this issue. ***
Comment 13 Trey Spiva 2008-08-18 21:18:17 UTC
*** Issue 141342 has been marked as a duplicate of this issue. ***
Comment 14 Peter Lam 2008-08-20 04:44:23 UTC
just verified in NB 6.5 uml build 20080819 on Ubuntu 8.04 and still got the following exceptions while tabbing through
the options in the options dialog. see attached ide log file for complete exceptions.

java.lang.NullPointerException
	at
org.netbeans.modules.uml.ui.support.commonresources.CommonResourceManager.getIconForElementType(CommonResourceManager.java:452)
	at org.netbeans.modules.uml.diagrams.nodes.UMLNameWidget.getIcon(UMLNameWidget.java:251)
	at org.netbeans.modules.uml.diagrams.nodes.UMLNameWidget.initialize(UMLNameWidget.java:148)
	at org.netbeans.modules.uml.diagrams.nodes.AliasedTypeWidget.createDataTypeView(AliasedTypeWidget.java:118)
	at org.netbeans.modules.uml.diagrams.nodes.AliasedTypeWidget.initializeNode(AliasedTypeWidget.java:95)
...

Comment 15 Peter Lam 2008-08-20 04:45:29 UTC
Created attachment 67901 [details]
ide log file
Comment 16 Peter Lam 2008-08-20 04:58:47 UTC
Actually the poppup dialog shows the following exception but the other exceptions are in the ide log file. See attached
video on how this was reproduced.

SEVERE [global]
java.lang.NullPointerException
	at
org.netbeans.modules.uml.diagrams.options.ElementCustomizationPanel.getAllCustomizableChildren(ElementCustomizationPanel.java:612)
	at org.netbeans.modules.uml.diagrams.options.ElementCustomizationPanel.updateWidgetList(ElementCustomizationPanel.java:596)
	at org.netbeans.modules.uml.diagrams.options.ElementCustomizationPanel.init(ElementCustomizationPanel.java:168)
	at org.netbeans.modules.uml.diagrams.options.ElementCustomizationPanel.init(ElementCustomizationPanel.java:122)
	at org.netbeans.modules.uml.diagrams.options.ElementOptionsPanel.update(ElementOptionsPanel.java:92)

...
Comment 17 Peter Lam 2008-08-20 05:00:59 UTC
Created attachment 67903 [details]
video for tabbing through options w/NPEs
Comment 18 Trey Spiva 2008-08-20 14:07:33 UTC
After retesting this issue I have found out why I was not able to get the last exceptions.  These exceptions are only occurring when the UML module has not 
been properly warmed up.  Basically if a UML project was already opened you will not get this exception.

This is a module initialization issue that has occurred because we are have tried to optimize our startup time.
Comment 20 Trey Spiva 2008-08-22 18:06:35 UTC
Reviewed
Comment 21 _ jyothivasa 2008-08-27 01:05:30 UTC
*** Issue 144935 has been marked as a duplicate of this issue. ***
Comment 22 Peter Lam 2008-08-30 00:31:41 UTC
verified in build 20080829 on windows and Linux.