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 102226 - Exceptions on uninstalling UML module
Summary: Exceptions on uninstalling UML module
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Yang Su
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-23 20:10 UTC by Peter Lam
Modified: 2007-09-15 01:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide log file (32.97 KB, text/plain)
2007-04-23 20:11 UTC, Peter Lam
Details
exceptions (12.36 KB, text/plain)
2007-06-22 06:00 UTC, Peter Lam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2007-04-23 20:10:19 UTC
NetBeans IDE Dev (Build 070423)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
en_US (nb); Cp1252

After installing the IDE with only UML feature using the latest available NB6
build NBI, uninstalling the UML feature pops up the following IOException.

Repro steps:
- download the NB6 NBI that contains UML
- install the IDE with only the UML module is needed
- create a UML project and a class diagram
- create and name a class on the class diagram and leave it as modified
- bring up Plugins manager and select all 18 UML submodules to uninstall
- at the end a dialog comes up asking if you want to save the diagram and answer
Yes to save
Result: the popup dialog comes up showing the following exception.
- dismiss the dialogs and Plugin Manager
- exit IDE and restart IDE
- the ide log file (attached) has the "java.lang.ClassNotFoundException:
org.netbeans.modules.uml.project.ui.UMLProjectSettings from SystemClassLoader"
exception


java.io.IOException: Top component documentation could not be loaded, either
owning module was disabled, has incompatible version or top components settings
file format is broken.
	at
org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentPersistentForID(PersistenceManager.java:496)
	at
org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentForID(PersistenceManager.java:587)
	at
org.netbeans.core.windows.PersistenceHandler.getTopComponentForID(PersistenceHandler.java:392)
	at
org.netbeans.core.windows.WindowManagerImpl.getTopComponentForID(WindowManagerImpl.java:757)
	at
org.netbeans.core.windows.WindowManagerImpl.findTopComponent(WindowManagerImpl.java:215)
	at
org.netbeans.modules.uml.drawingarea.DiagramTopComponent.componentHidden(DiagramTopComponent.java:722)
	at org.openide.windows.WindowManager.componentHidden(WindowManager.java:337)
	at
org.netbeans.core.windows.WindowManagerImpl.componentHidden(WindowManagerImpl.java:1018)
	at org.netbeans.core.windows.view.DefaultView.changeGUI(DefaultView.java:464)
	at org.netbeans.core.windows.ViewRequestor.dispatchRequest(ViewRequestor.java:247)
	at org.netbeans.core.windows.ViewRequestor.processRequest(ViewRequestor.java:223)
	at org.netbeans.core.windows.ViewRequestor.postRequest(ViewRequestor.java:161)
	at org.netbeans.core.windows.ViewRequestor.scheduleRequest(ViewRequestor.java:101)
	at org.netbeans.core.windows.Central.removeModeTopComponent(Central.java:902)
	at org.netbeans.core.windows.ModeImpl.removeTopComponent(ModeImpl.java:372)
	at org.netbeans.core.windows.ModeImpl.close(ModeImpl.java:219)
	at
org.netbeans.core.windows.WindowManagerImpl.topComponentClose(WindowManagerImpl.java:1100)
	at org.openide.windows.TopComponent.close(TopComponent.java:419)
	at org.openide.windows.TopComponent.close(TopComponent.java:405)
	at
org.netbeans.modules.uml.drawingarea.UMLDiagramManager$5.run(UMLDiagramManager.java:722)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
	at java.awt.Dialog$1.run(Dialog.java:1039)
	at java.awt.Dialog$3.run(Dialog.java:1091)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Dialog.show(Dialog.java:1089)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:812)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:846)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:834)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:82)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1201)
	at org.openide.util.Mutex.readAccess(Mutex.java:220)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:819)
	at java.awt.Component.show(Component.java:1419)
	at java.awt.Component.setVisible(Component.java:1372)
	at java.awt.Window.setVisible(Window.java:801)
	at java.awt.Dialog.setVisible(Dialog.java:979)
	at
org.netbeans.modules.autoupdate.ui.UninstallUnitWizard.invokeWizardImpl(UninstallUnitWizard.java:67)
	at
org.netbeans.modules.autoupdate.ui.UninstallUnitWizard.invokeWizard(UninstallUnitWizard.java:41)
	at
org.netbeans.modules.autoupdate.ui.UnitTab.bTabActionActionPerformed(UnitTab.java:421)
	at org.netbeans.modules.autoupdate.ui.UnitTab.access$600(UnitTab.java:47)
	at org.netbeans.modules.autoupdate.ui.UnitTab$6.actionPerformed(UnitTab.java:291)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
	at java.awt.Component.processMouseEvent(Component.java:6038)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
	at java.awt.Component.processEvent(Component.java:5803)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4410)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2429)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
	at java.awt.Dialog$1.run(Dialog.java:1039)
	at java.awt.Dialog$3.run(Dialog.java:1091)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Dialog.show(Dialog.java:1089)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:812)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:846)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:834)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:82)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1201)
	at org.openide.util.Mutex.readAccess(Mutex.java:220)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:819)
	at java.awt.Component.show(Component.java:1419)
	at java.awt.Component.setVisible(Component.java:1372)
	at java.awt.Window.setVisible(Window.java:801)
	at java.awt.Dialog.setVisible(Dialog.java:979)
	at
org.netbeans.modules.autoupdate.ui.actions.PluginManagerAction.performAction(PluginManagerAction.java:50)
	at
org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:96)
	at
org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(ActionsBridge.java:55)
	at
org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:92)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1170)
	at
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1211)
	at java.awt.Component.processMouseEvent(Component.java:6038)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
	at java.awt.Component.processEvent(Component.java:5803)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4410)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2429)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 Peter Lam 2007-04-23 20:11:07 UTC
Created attachment 41495 [details]
ide log file
Comment 2 Peter Lam 2007-06-22 05:55:58 UTC
in recent builds, uninstalling UML results in the following exceptions. See attached for full exceptions.
java.lang.IllegalStateException
java.lang.IllegalArgumentException
Comment 3 Peter Lam 2007-06-22 06:00:03 UTC
Created attachment 44235 [details]
exceptions
Comment 4 Yang Su 2007-07-06 20:15:02 UTC
fixed
Comment 5 Peter Lam 2007-09-15 01:28:59 UTC
verified in trunk build 20070914.