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.
[jdk 1.5.0-beta3-b56, linux, IDE built from CVS 2004-06-24] I got this at every startup with jdk 1.5.0b56, but not with jdk 1.4.2_04 java.lang.SecurityException at org.netbeans.TopSecurityManager.checkSystemClipboardAccess(TopSecurityManager.java:419) at sun.awt.X11.XToolkit.getSystemClipboard(XToolkit.java:762) at javax.swing.TransferHandler$TransferAction.getClipboard(TransferHandler.java:856) at javax.swing.TransferHandler$TransferAction.actionPerformed(TransferHandler.java:822) at org.netbeans.TopSecurityManager.makeSwingUseSpecialClipboard(TopSecurityManager.java:433) at org.netbeans.core.NonGui.run(NonGui.java:433) at org.netbeans.core.Main.run(Main.java:168) at org.netbeans.core.NbTopManager.getNbTopManager(NbTopManager.java:232) at org.netbeans.core.NbTopManager.get(NbTopManager.java:187) at org.netbeans.core.Main.start(Main.java:310) at org.netbeans.core.TopThreadGroup.run(TopThreadGroup.java:90) at java.lang.Thread.run(Thread.java:595)
Demonstrated by failing tests: org.netbeans.core.NbClipboardIsUsed*
After 20min looking at the issue I think that the jdk changed its behaviour to always ask the for the system clipboard. In past it was enough to just ask once (and fail) and the access to system clipboard was disabled for ever. Then we just replaced the clipboard in AppContext. But this does not work anymore. The simplest solution might be to ask the JDK team to return back the one and only check. Btw. worked with 1.5 b51.
*** Issue 45355 has been marked as a duplicate of this issue. ***
*** Issue 46185 has been marked as a duplicate of this issue. ***
Introduced in build 56 of jdk 1.5, and is included in public beta 3.
Created attachment 16343 [details] This fix gets rid of the exception on 1.5 and makes the clipboard related tests work again
I'll apply the patch tomorrow.
Forcing usage of our ExClipboard in swing components also on JDK 1.5. This is related to JDK bug 5076514: core/bootstrap/src/org/netbeans/TopSecurityManager.java,v <-- TopSecurityManager.java new revision: 1.15;
*** Issue 45873 has been marked as a duplicate of this issue. ***
verified in [nb_dev](200408101800)