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 25007 - Strange Exceptions from GUI designer
Summary: Strange Exceptions from GUI designer
Status: CLOSED DUPLICATE of bug 21422
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:
Depends on:
Blocks:
 
Reported: 2002-06-20 20:50 UTC by Ralf Hasemann
Modified: 2003-06-30 18:29 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 Ralf Hasemann 2002-06-20 20:50:17 UTC
Hi,
Since I am using NB 3.3.2 on Mac OS X 10.1.5 the NB GUI Designer is unusable.
While I drag/drop/manage Controls in the Controls-TreeView I get ClassCast Exceptions 
like this:
Thu Jun 20 21:37:27 CEST 2002: java.lang.ClassCastException: 
java.io.ByteArrayInputStream
java.lang.ClassCastException: java.io.ByteArrayInputStream
        at 
org.netbeans.modules.form.RADComponentNode.createPasteTypes(RADComponentN
ode.java:469)
        at org.openide.nodes.AbstractNode.getPasteTypes(AbstractNode.java:409)
        at 
org.openide.explorer.ExplorerActions.updatePasteAction(ExplorerActions.java:286)
        at org.openide.explorer.ExplorerActions.updateActions(ExplorerActions.java:226)
        at 
org.openide.explorer.ExplorerActions$Listener.propertyChange(ExplorerActions.java:662
)
        at 
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:15
2)
        at 
org.openide.explorer.ExplorerManager$Listener.propertyChange(ExplorerManager.java:
695)
        at 
org.openide.util.WeakListener$PropertyChange.propertyChange(WeakListener.java:325
)
        at org.openide.nodes.Node.fireOwnPropertyChange(Node.java:721)
        at org.openide.nodes.Node.fireParentNodeChange(Node.java:681)
        at org.openide.nodes.Children.justComputeNodes(Children.java:452)
        at org.openide.nodes.ChildrenArray.nodes(ChildrenArray.java:69)
        at org.openide.nodes.Children.computeNodes(Children.java:355)
        at org.openide.nodes.Children.getNodes(Children.java:284)
        at org.openide.explorer.view.VisualizerNode$1.run(VisualizerNode.java:149)
        at org.openide.util.Mutex.readAccess(Mutex.java:171)
        at org.openide.explorer.view.VisualizerNode.getChildren(VisualizerNode.java:147)
        at org.openide.explorer.view.VisualizerNode.getIndex(VisualizerNode.java:166)
        at javax.swing.tree.DefaultTreeModel.getIndexOfChild(DefaultTreeModel.java:137)
        at 
javax.swing.tree.VariableHeightLayoutCache.getNodeForPath(VariableHeightLayoutCac
he.java:783)
        at 
javax.swing.tree.VariableHeightLayoutCache.getRowForPath(VariableHeightLayoutCach
e.java:219)
        at 
javax.swing.tree.AbstractLayoutCache.getRowsForPaths(AbstractLayoutCache.java:385)
        at 
javax.swing.tree.DefaultTreeSelectionModel.resetRowSelection(DefaultTreeSelectionMo
del.java:715)
        at 
javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLay
outCache.java:1484)
        at 
javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLay
outCache.java:1221)
        at 
javax.swing.tree.VariableHeightLayoutCache.ensurePathIsExpanded(VariableHeightLay
outCache.java:917)
        at 
javax.swing.tree.VariableHeightLayoutCache.setExpandedState(VariableHeightLayoutC
ache.java:162)
        at 
javax.swing.plaf.basic.BasicTreeUI.updateExpandedDescendants(BasicTreeUI.java:142
8)
        at 
javax.swing.plaf.basic.BasicTreeUI$TreeExpansionHandler.treeExpanded(BasicTreeUI.j
ava:2239)
        at javax.swing.JTree.fireTreeExpanded(JTree.java:2114)
        at javax.swing.JTree.setExpandedState(JTree.java:2794)
        at javax.swing.JTree.expandPath(JTree.java:1646)
        at javax.swing.plaf.basic.BasicTreeUI.toggleExpandState(BasicTreeUI.java:2022)
        at com.apple.mrj.swing.MacTreeUI.access$1001(MacTreeUI.java:53)
        at 
com.apple.mrj.swing.MacTreeUI$TreeArrowMouseInputHandler.mouseReleased(MacTr
eeUI.java:353)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:230)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:230)
[catch] at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:230)
        at java.awt.Component.processMouseEvent(Component.java:3716)
        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)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
        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(EventDispatchThread.java:1
31)
        at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)

Next says:
Thu Jun 20 21:38:16 CEST 2002: java.lang.ClassCastException: Posted StackTrace
Annotation: Exception occurred in Request Processor
Nested annotation: java.io.ByteArrayInputStream
org.openide.util.RequestProcessor$Holder: Posted StackTrace(task 
org.netbeans.core.ModuleActions$1@4870e6 [-53155, 1, -1])
        at 
org.openide.util.RequestProcessor$Holder.fillInStackTrace(RequestProcessor.java:300
)
        at java.lang.Throwable.<init>(Throwable.java:90)
        at java.lang.Exception.<init>(Exception.java:38)
        at org.openide.util.RequestProcessor$Holder.<init>(RequestProcessor.java:280)
        at 
org.openide.util.RequestProcessor$Task.createHolder(RequestProcessor.java:333)
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:100)
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:73)
        at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:123)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.openide.awt.Actions.invokeAction(Actions.java:446)
        at org.openide.awt.Actions$ButtonBridge.actionPerformed(Actions.java:425)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1458)
        at 
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1
512)
        at 
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:285)
[catch] at 
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMe
nuItemUI.java:886)
        at java.awt.Component.processMouseEvent(Component.java:3716)
        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)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
        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(EventDispatchThread.java:1
31)
        at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
Thu Jun 20 21:38:16 CEST 2002: java.lang.ClassCastException: 
java.io.ByteArrayInputStream
java.lang.ClassCastException: java.io.ByteArrayInputStream
        at 
org.netbeans.modules.form.RADComponentNode.createPasteTypes(RADComponentN
ode.java:469)
        at org.openide.nodes.AbstractNode.getPasteTypes(AbstractNode.java:409)
        at 
org.openide.explorer.ExplorerActions.updatePasteAction(ExplorerActions.java:286)
        at org.openide.explorer.ExplorerActions.access$500(ExplorerActions.java:49)
        at 
org.openide.explorer.ExplorerActions$Listener.clipboardChanged(ExplorerActions.java:6
79)
        at 
org.openide.util.datatransfer.ExClipboard.fireClipboardChange(ExClipboard.java:63)
        at org.netbeans.core.CoronaClipboard.setContents(CoronaClipboard.java:171)
        at 
org.openide.explorer.ExplorerActions$CopyCutActionPerformer.performAction(ExplorerA
ctions.java:414)
        at 
org.openide.util.actions.CallbackSystemAction.performAction(CallbackSystemAction.jav
a:109)
        at 
org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.ja
va:69)
        at org.netbeans.core.ModuleActions$1.run(ModuleActions.java:105)
        at org.openide.util.Task.run(Task.java:152)
[catch] at 
org.openide.util.RequestProcessor$ProcessorThread.run(RequestProcessor.java:622)

and the NB Log is:
!!! Can't insert file !!!!
Note to your website:
The Bugtracking (issue) feature is really bad!
1. I have to register to report a bug...
2. logon to the site doesn't work 100%
3. The IDE says: "Send the log-file to Netbeans Website - where should I put it????
4. The Tesxtbox here is much to small
5. Are you really interessted in reported bugs from the users?? If so, change the report 
mechanism!
6. If you are interested in the Log-File, contact me and I send you an eMail with the file 
attached. email: rhasemann@mac.com

Greetings Ralf
Comment 1 David Simonek 2002-06-24 11:02:10 UTC
reassigning to form module, looks to me like some cut/copy problem of
RAD nodes, but I'm not sure. Tomas, please evaluate, thx.
Comment 2 Tomas Pavek 2002-06-24 11:54:54 UTC
This has been already reported. Anyway, thanks Ralf. BTW 
try NetBeans 3.4 (Beta 2 now), it could behave better.

> !!! Can't insert file !!!!
You can - after you create the issue report, go to it, and 
there's "Create a new attachment" link...


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