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 155267 - Palette Not Working - Icons Disappeared
Summary: Palette Not Working - Icons Disappeared
Status: RESOLVED INCOMPLETE
Alias: None
Product: uml
Classification: Unclassified
Component: General Diagram (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-11 19:34 UTC by carminerimi
Modified: 2009-05-25 21:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description carminerimi 2008-12-11 19:34:45 UTC
In the palette (for any diagram type) the icons have disappeared (well, i just see a generic file type icon for all of
the items in the palette) and I just see a long description (i.e. in Use Case Diagram, I see
"Actor.modeling_palette_item".  Most importantly, I can't add any more elements to a diagram, but I can see previous
diagrams in all their glory.

This occurred after the update of the UML plugin from the released version to something newer (version 1.4.1).

Somewhere in the middle I tried to install the Python plugin, upon restart I got a cryptic message, saw that the python
plugin failed to install, uninstalled it.

I haven't reinstalled 6.5, but I'm about to.
Comment 1 Sergey Petrov 2008-12-11 20:13:29 UTC
looks like a corrupted installation, did you try to uninstall/install uml again?
Comment 2 carminerimi 2008-12-11 22:02:49 UTC
re-installing seemed to fix the problem.  Not sure what created it.
Comment 3 Sergey Petrov 2008-12-12 09:12:37 UTC
do you mean uninstall-install only uml plugin? is it ok to close then?
may be it was some problems with update center right after patch distribution started.
Comment 4 yirco 2009-02-04 11:18:08 UTC
I have experienced the same problem after update from UML plugin 1.4.1 to 1.4.2. However, the generic file icons did not
appear in the palette immediately after update but after some time. Not sure about the cause.

When I 
- deactivated (not unstalled) the UML plugin
- restarted Netbeans
- activated the UML plugin 
- restarted Netbeans

The UML icons in the palette were OK again.
Comment 5 Sergey Petrov 2009-02-04 11:20:49 UTC
thanks, deactivate-activate is a better workaround
Comment 6 yirco 2009-02-05 15:00:23 UTC
When I click on one of the generic file icons which appear in the palette (in place of the UML icons), I get this exception:

java.lang.NullPointerException
	at org.netbeans.modules.uml.drawingarea.actions.SceneAcceptAction.<init>(SceneAcceptAction.java:98)
	at org.netbeans.modules.uml.drawingarea.UMLDiagramTopComponent$6.propertyChange(UMLDiagramTopComponent.java:750)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
	at org.netbeans.spi.palette.PaletteController$1.propertyChange(PaletteController.java:179)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
	at org.netbeans.modules.palette.DefaultModel.setSelectedItem(DefaultModel.java:116)
	at org.netbeans.modules.palette.ui.PalettePanel.select(PalettePanel.java:276)
	at org.netbeans.modules.palette.ui.CategoryDescriptor$2.valueChanged(CategoryDescriptor.java:113)
	at javax.swing.JList.fireSelectionValueChanged(JList.java:1765)
	at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1779)
	at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
	at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:147)
	at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:194)
	at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:388)
	at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:398)
	at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:442)
	at javax.swing.JList.setSelectionInterval(JList.java:2035)
	at javax.swing.plaf.basic.BasicListUI$Handler.adjustSelection(BasicListUI.java:2728)
	at javax.swing.plaf.basic.BasicListUI$Handler.mousePressed(BasicListUI.java:2684)
	at javax.swing.plaf.basic.BasicListUI$MouseInputHandler.mousePressed(BasicListUI.java:1502)
	at org.netbeans.modules.palette.ui.CategoryList$CategoryListUI$ListMouseInputHandler.mousePressed(CategoryList.java:453)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
	at java.awt.Component.processMouseEvent(Component.java:6131)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
	at java.awt.Component.processEvent(Component.java:5899)
	at java.awt.Container.processEvent(Container.java:2023)
	at java.awt.Component.dispatchEventImpl(Component.java:4501)
	at java.awt.Container.dispatchEventImpl(Container.java:2081)
	at java.awt.Component.dispatchEvent(Component.java:4331)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3962)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)
	at java.awt.Container.dispatchEventImpl(Container.java:2067)
	at java.awt.Window.dispatchEventImpl(Window.java:2458)
	at java.awt.Component.dispatchEvent(Component.java:4331)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	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 7 Sergey Petrov 2009-02-05 15:05:39 UTC
May it be similar to http://www.netbeans.org/issues/show_bug.cgi?id=156718 ?
Comment 8 yirco 2009-02-06 11:14:40 UTC
It seems a bit different from 156718. I have Netbeans 6.5 and UML 1.4.2. The UML projects seem OK only the icons from
the palette are sometimes the UML icons and sometimes are the generic file icons. 

Sometimes only a restart of Netbeans makes the UML icons visible again. Deactivation and activation always help but in
some time the problem is repeated.