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.
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)
Created attachment 5279 [details] ide.log created during exception
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 ***
Resolved for 3.3.x or earlier, no new info since then -> closing.