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.
When attempting to cut an AWT object in a panel I receive a class cast exception from the IDE. Following the exception any action in the form builder results in the same exception and I cannot recover the work: Mon Mar 11 06:49:55 EST 2002: java.lang.ClassCastException: java.io.ByteArrayInputStream java.lang.ClassCastException: java.io.ByteArrayInputStream at org.netbeans.modules.form.RADComponentNode.createPasteTypes(RA DComponentNode.java:469) at org.openide.nodes.AbstractNode.getPasteTypes(AbstractNode.java:409) at org.openide.explorer.ExplorerActions.updatePasteAction(ExplorerActions.j ava:286) at org.openide.explorer.ExplorerActions.updateActions(ExplorerActions.java: 226) at org.openide.explorer.ExplorerActions.attach(ExplorerActions.java:90) at org.netbeans.modules.form.FormDesigner.componentActivated(FormDe signer.java:170) at org.netbeans.modules.form.HandleLayer$HandleLayerMouseListener.m ousePressed(HandleLayer.java:857) at java.awt.Component.processMouseEvent(Component.java:3713) at java.awt.Component.processEvent(Component.java:3545) at java.awt.Container.processEvent(Container.java:1164) at java.awt.Component.dispatchEventImpl(Component.java:2594) at java.awt.Container.dispatchEventImpl(Container.java:1213) at java.awt.Component.dispatchEvent(Component.java:2498) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451) [catch] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2210 ) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125) at java.awt.Container.dispatchEventImpl(Container.java:1200) at java.awt.Window.dispatchEventImpl(Window.java:959) at java.awt.Component.dispatchEvent(Component.java:2498) at java.awt.EventQueue.dispatchEvent(EventQueue.java:339) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatc hThread.java:131) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchT hread.java:98) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93 ) at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
Created attachment 5018 [details] IDE Log
I'm running the Apple Java VM framework 1.3.1 (Release 2)
Restarting the IDE resolves the problem
Isn't this same as issue 20693? Does it happen only for cutting, or also for copying components? (I remember there are some problems with copying in Apple's JDK in NetBeans. See also issue 12050 and its duplicates.)
*** This issue has been marked as a duplicate of 12050 ***
*** Issue 25007 has been marked as a duplicate of this issue. ***
*** Issue 26499 has been marked as a duplicate of this issue. ***
Resolved for 3.3.x or earlier, no new info since then -> closing.