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 22073 - ClassCastException when right clicking on Container Component
Summary: ClassCastException when right clicking on Container Component
Status: CLOSED DUPLICATE of bug 20493
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-03 21:36 UTC by kmenzel
Modified: 2003-06-30 18:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide.log created during exception (574.55 KB, text/plain)
2002-04-03 21:38 UTC, kmenzel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kmenzel 2002-04-03 21:36:52 UTC
Whenever I right click on a container component I get a 
classCastException. This happens while using the 
GUIEditor. Get the exception if I click on it from the 
tree or the graphics pallet. 

Is there something I can do to stop this?

*********** Exception occurred ************
Wed Apr 03 16:36:57 EST 2002: 
java.lang.ClassCastException: 
org.openide.loaders.DataShadow$ShadowNode
java.lang.ClassCastException: 
org.openide.loaders.DataShadow$ShadowNode
	at 
org.netbeans.modules.form.palette.CPManager.getAllItems
(CPManager.java:291)
	at 
org.netbeans.modules.form.actions.SelectLayoutAction.getAll
Layouts(SelectLayoutAction.java:124)
	at 
org.netbeans.modules.form.actions.SelectLayoutAction.access
$000(SelectLayoutAction.java:36)
	at 
org.netbeans.modules.form.actions.SelectLayoutAction$1.menu
Selected(SelectLayoutAction.java:156)
	at javax.swing.JMenu.fireMenuSelected
(JMenu.java:1076)
	at 
javax.swing.JMenu$MenuChangeListener.stateChanged
(JMenu.java:1169)
	at javax.swing.DefaultButtonModel.fireStateChanged
(DefaultButtonModel.java:361)
	at javax.swing.DefaultButtonModel.setSelected
(DefaultButtonModel.java:227)
	at javax.swing.JMenu.setSelected(JMenu.java:283)
	at javax.swing.JMenu.menuSelectionChanged
(JMenu.java:1236)
	at javax.swing.MenuSelectionManager.setSelectedPath
(MenuSelectionManager.java:81)
	at javax.swing.JPopupMenu.setVisible
(JPopupMenu.java:692)
	at javax.swing.JPopupMenu.show(JPopupMenu.java:870)
	at org.openide.awt.JPopupMenuPlus.show
(JPopupMenuPlus.java:43)
	at org.openide.explorer.view.TreeView.createPopup
(TreeView.java:858)
	at 
org.openide.explorer.view.TreeView$PopupAdapter.showPopup
(TreeView.java:782)
	at 
org.openide.awt.MouseUtils$PopupMouseAdapter.mouseReleased
(MouseUtils.java:149)
	at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:228)
	at java.awt.Component.processMouseEvent
(Component.java:5021)
	at java.awt.Component.processEvent
(Component.java:4818)
	at java.awt.Container.processEvent
(Container.java:1380)
	at java.awt.Component.dispatchEventImpl
(Component.java:3526)
	at java.awt.Container.dispatchEventImpl
(Container.java:1437)
	at java.awt.Component.dispatchEvent
(Component.java:3367)
	at 
java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:3214)
	at java.awt.LightweightDispatcher.processMouseEvent
(Container.java:2929)
	at java.awt.LightweightDispatcher.dispatchEvent
(Container.java:2859)
	at java.awt.Container.dispatchEventImpl
(Container.java:1423)
	at java.awt.Window.dispatchEventImpl
(Window.java:1566)
	at java.awt.Component.dispatchEvent
(Component.java:3367)
	at java.awt.EventQueue.dispatchEvent
(EventQueue.java:445)
[catch] at 
java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:190)
	at 
java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:144)
	at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:130)
	at java.awt.EventDispatchThread.run
(EventDispatchThread.java:98)
Comment 1 kmenzel 2002-04-03 21:38:03 UTC
Created attachment 5279 [details]
ide.log created during exception
Comment 2 Tomas Pavek 2002-04-04 10:33:17 UTC
I think this is the same as issue 20493. Please see the 
issue, there's also a workaround described.

*** This issue has been marked as a duplicate of 20493 ***
Comment 3 Quality Engineering 2003-06-30 18:20:55 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 4 Quality Engineering 2003-06-30 18:26:37 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.