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.
[ 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
Created attachment 65831 [details] UIGestures
Created attachment 65832 [details] Metrics
Created attachment 65833 [details] Messages
Reassigning to "uml" for evaluation.
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)
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)
I have not been able to reproduce this problem.
I am now able to reproduce this issue very reliably.
Fixed
http://hg.netbeans.org/uml-main/rev/760aa64236bf
Reviewed
*** Issue 141342 has been marked as a duplicate of this issue. ***
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) ...
Created attachment 67901 [details] ide log file
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) ...
Created attachment 67903 [details] video for tabbing through options w/NPEs
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.
http://hg.netbeans.org/uml-main?cmd=changeset;node=39f744806ca0 http://hg.netbeans.org/uml-main?cmd=changeset;node=326efd617306
*** Issue 144935 has been marked as a duplicate of this issue. ***
verified in build 20080829 on windows and Linux.