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 21422 - attempting to cut a form object results in unrecoverable error
Summary: attempting to cut a form object results in unrecoverable error
Status: CLOSED DUPLICATE of bug 12050
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 25007 26499 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-03-11 11:51 UTC by Richard
Modified: 2003-06-30 18:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE Log (484.50 KB, text/plain)
2002-03-11 11:54 UTC, Richard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard 2002-03-11 11:51:59 UTC
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)
Comment 1 Richard 2002-03-11 11:54:16 UTC
Created attachment 5018 [details]
IDE Log
Comment 2 Richard 2002-03-11 11:56:55 UTC
I'm running the Apple Java VM framework 1.3.1 (Release 2)
Comment 3 Richard 2002-03-11 12:28:45 UTC
Restarting the IDE resolves the problem
Comment 4 Tomas Pavek 2002-03-12 10:57:37 UTC
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.)
Comment 5 Tomas Pavek 2002-03-28 10:57:13 UTC

*** This issue has been marked as a duplicate of 12050 ***
Comment 6 Tomas Pavek 2002-06-24 11:54:53 UTC
*** Issue 25007 has been marked as a duplicate of this issue. ***
Comment 7 Tomas Pavek 2002-08-19 11:07:57 UTC
*** Issue 26499 has been marked as a duplicate of this issue. ***
Comment 8 Quality Engineering 2003-06-30 18:21:11 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 9 Quality Engineering 2003-06-30 18:26:49 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.