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 17223 - Onload, Last Project Open, Right-Click Dir in FileSysView == Class Cast Exception Box
Summary: Onload, Last Project Open, Right-Click Dir in FileSysView == Class Cast Excep...
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P2 blocker (vote)
Assignee: _ ttran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-01 22:27 UTC by rsk
Modified: 2008-12-22 23:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log file for netbeans, exception dialog instructed that it be attached. (18.58 KB, text/plain)
2001-11-01 22:30 UTC, rsk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rsk 2001-11-01 22:27:59 UTC
System:
Windows XP Final
JDK 1.4 Beta 3
Netbeans 3.3 Beta 2

Operation:
Load Netbeans, once netbeans is loaded (with the project I was last working 
on), I went to a directory in the filesystem view about 3 levels down, and 
right-clicked it (so I could create a new class). Nothing happened for the 
longest time. In fact, MSN Messenger for some reason decided to die with an 
exception about 10 seconds later, and THEN netbeans reported a "Class cast 
exception" with this stack trace:

Thu Nov 01 15:22:13 GMT-07:00 2001: java.lang.ClassCastException: null
Nested annotation: java.io.IOException
java.lang.InternalError
        at org.netbeans.core.lookup.TMLookup$I.getInstance(TMLookup.java:115)
        at org.openide.util.lookup.AbstractLookup.lookup
(AbstractLookup.java:235)
        at org.openide.util.lookup.ProxyLookup.lookup(ProxyLookup.java:121)
        at org.openide.explorer.ExplorerActions.getClipboard
(ExplorerActions.java:328)
        at org.openide.explorer.ExplorerActions.attach(ExplorerActions.java:85)
        at org.openide.explorer.ExplorerPanel.componentActivated
(ExplorerPanel.java:118)
        at org.netbeans.core.NbMainExplorer$MainTab.componentActivated
(NbMainExplorer.java:673)
        at org.openide.windows.WindowManager.activateComponent
(WindowManager.java:157)
        at org.netbeans.core.windows.WindowManagerImpl.activateComponent
(WindowManagerImpl.java:710)
        at 
org.netbeans.core.windows.frames.DefaultContainerImpl.doActivateComponent
(DefaultContainerImpl.java:546)
        at 
org.netbeans.core.windows.frames.DefaultContainerImpl.reactivateSelectedCompone
nt(DefaultContainerImpl.java:714)
        at org.netbeans.core.windows.frames.DefaultContainerImpl$2.run
(DefaultContainerImpl.java:873)
        at org.netbeans.core.windows.frames.DefaultContainerImpl$4.run
(DefaultContainerImpl.java:888)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:181)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:446)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:193)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:147)
        at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:141)
        at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:133)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:101)
 
Thu Nov 01 15:22:13 GMT-07:00 2001: java.lang.ClassCastException: 
java.io.IOException
java.lang.ClassCastException: java.io.IOException
        at sun.awt.datatransfer.ClipboardTransferable.fetchOneFlavor
(ClipboardTransferable.java:144)
        at sun.awt.datatransfer.ClipboardTransferable.<init>
(ClipboardTransferable.java:83)
        at sun.awt.datatransfer.SunClipboard.getContents(SunClipboard.java:83)
        at org.netbeans.core.CoronaClipboard.refreshClipboard
(CoronaClipboard.java:125)
        at org.netbeans.core.CoronaClipboard.<init>(CoronaClipboard.java:91)
        at org.netbeans.core.CoronaClipboard.<init>(CoronaClipboard.java:66)
        at org.netbeans.core.NbTopManager.getClipboard(NbTopManager.java:485)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:42)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:28)
        at java.lang.reflect.Method.invoke(Method.java:327)
        at org.netbeans.core.lookup.TMLookup$I.getInstance(TMLookup.java:112)
        at org.openide.util.lookup.AbstractLookup.lookup
(AbstractLookup.java:235)
        at org.openide.util.lookup.ProxyLookup.lookup(ProxyLookup.java:121)
        at org.openide.explorer.ExplorerActions.getClipboard
(ExplorerActions.java:328)
        at org.openide.explorer.ExplorerActions.attach(ExplorerActions.java:85)
        at org.openide.explorer.ExplorerPanel.componentActivated
(ExplorerPanel.java:118)
        at org.netbeans.core.NbMainExplorer$MainTab.componentActivated
(NbMainExplorer.java:673)
        at org.openide.windows.WindowManager.activateComponent
(WindowManager.java:157)
        at org.netbeans.core.windows.WindowManagerImpl.activateComponent
(WindowManagerImpl.java:710)
        at 
org.netbeans.core.windows.frames.DefaultContainerImpl.doActivateComponent
(DefaultContainerImpl.java:546)
        at 
org.netbeans.core.windows.frames.DefaultContainerImpl.reactivateSelectedCompone
nt(DefaultContainerImpl.java:714)
        at org.netbeans.core.windows.frames.DefaultContainerImpl$2.run
(DefaultContainerImpl.java:873)
        at org.netbeans.core.windows.frames.DefaultContainerImpl$4.run
(DefaultContainerImpl.java:888)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:181)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:446)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:193)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:147)
        at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:141)
        at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:133)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:101)


As instructed, I have also attached my log file.

Best wishes,
-Riyad
Comment 1 rsk 2001-11-01 22:30:46 UTC
Created attachment 3238 [details]
Log file for netbeans, exception dialog instructed that it be attached.
Comment 2 _ ttran 2001-11-02 07:31:41 UTC
Windows XP + jdk 1.4 beta3 combo => P2
Comment 3 _ ttran 2001-11-02 09:31:22 UTC
> java.lang.ClassCastException: java.io.IOException
>         at sun.awt.datatransfer.ClipboardTransferable.fetchOneFlavor
> (ClipboardTransferable.java:144)
>         at sun.awt.datatransfer.ClipboardTransferable.<init>
> (ClipboardTransferable.java:83)
>         at
sun.awt.datatransfer.SunClipboard.getContents(SunClipboard.java:83)
>         at org.netbeans.core.CoronaClipboard.refreshClipboard
(CoronaClipboard.java:125)

this is clearly a bug in JVM.  getContents() is not allowed to throw
an IOException.  CoronaClipboard will catch and ignore all Throwable's


Comment 4 Quality Engineering 2003-07-01 16:05:25 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified.

Comment 5 Quality Engineering 2003-07-01 16:21:23 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.