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.
I don't know the behaviour on other operating systems but each time I want to take snapshot of the IDE and tranfer it to some other application (e.g. MS Paint) after my return to IDE IllegalStateException waits there for me. This is not serious bug at all but it doesn't look nice. After some work with IDE it is not so easy to reproduce so I recommend to take the fresh build and test it immediatelly after its first start. Steps to reproduce: =================== 1. Download and launch fresh build of IDE. 2. Close all initial dialogs and set focus e.g. to some node in the explorer. 3. Push "Print Screen" button to save hardcopy of the screen. 4. Launch MS Paint application through "Start | Programs | Accessories | Paint". 5. Now paste image from clipboard to MS Paint using "Edit | Paste" menu item. 6. Get back to the IDE and mentioned exception should already be thrown there. Note: My MS Paint was always maximized if this matters :-) =====
Created attachment 686 [details] IllegalStateException attachment to issue #9846.
Bug in JDK. Please check whether the bug occurs in 1.3, 1.3.1 and 1.4.
*** Issue 10459 has been marked as a duplicate of this issue. ***
*** Issue 11421 has been marked as a duplicate of this issue. ***
*** Issue 11615 has been marked as a duplicate of this issue. ***
*** Issue 12400 has been marked as a duplicate of this issue. ***
Jirko, can you please verify this on jdk 1.3.1 and 1.4.0 beta on windows, thanks.
Of course :-), I have tested it against these JDKs: Version of JDK | 1.3.0_01 | 1.3.0_02 | 1.3.1 | 1.4.0 Beta ---------------+--------------+--------------+------------+--------------- Occurrence | No | No | Yes | Yes It doesn't depend on IDE (tested on NB #196 and FFJ 3.0 EA) and SDI/MDI.
Reopenning, the new investigation was made. Yarda, what do you think about such that regression, can we handle this somehow?
*** Issue 12460 has been marked as a duplicate of this issue. ***
Ales, I'll help you, but I need windows machine.
Reported to JDK team. Result: it's no JDK bug. In 1.3 getContents() returns null after ctrl+printscreen, since image transfer support was introduced only in 1.4. In 1.3 getContents() returns null if the clipboard doesn't contain data in supported formats. In 1.3.1 and 1.4 getContents() never returns null. If there are no supported formats, it will return empty ClipboardTransferable. and IllegalStateException is thrown. Fix: move calling getContents() to try-catch block. Fixed in main trunk. Diff: http://www.netbeans.org/unbranded- source/browse/core/src/org/netbeans/core/CoronaClipboard.java.diff? r1=1.22&r2=1.23
*** Issue 13007 has been marked as a duplicate of this issue. ***
*** Issue 13640 has been marked as a duplicate of this issue. ***
Excellent! I am glad to announce that it was finally fixed. Verified on JDK 1.3.1 and JDK 1.4 (#73) together with FFJ 3.0 (#010801_1) and NB 3.3 (#200108020800).
*** Issue 14457 has been marked as a duplicate of this issue. ***
*** Issue 14599 has been marked as a duplicate of this issue. ***
*** Issue 14934 has been marked as a duplicate of this issue. ***
*** Issue 15303 has been marked as a duplicate of this issue. ***
*** Issue 13258 has been marked as a duplicate of this issue. ***
Resolved for 3.4.x or earlier, no new info since then -> closing.