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 252120 - SecurityException: All swing access to clipboard should be redirected to ExClipboard
Summary: SecurityException: All swing access to clipboard should be redirected to ExCl...
Status: RESOLVED DUPLICATE of bug 247990
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
: 255935 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-04-27 19:09 UTC by Michel Graciano
Modified: 2016-01-11 12:52 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 216175


Attachments
stacktrace (5.85 KB, text/plain)
2015-04-27 19:09 UTC, Michel Graciano
Details
stacktrace (5.50 KB, text/plain)
2015-06-15 02:01 UTC, Vladimir Voskresensky
Details
stacktrace (5.77 KB, text/plain)
2015-07-20 17:37 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Graciano 2015-04-27 19:09:31 UTC
Build: NetBeans IDE 8.0.2 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.5-b02, Java(TM) SE Runtime Environment, 1.8.0_05-b13
OS: Linux

User Comments:
hmichel: Trying to paste from copy/paste history, overring some already selected text

scanti: Selection multiple lines with the column selector on




Stacktrace: 
java.lang.SecurityException: All swing access to clipboard should be redirected to ExClipboard
   at org.netbeans.TopSecurityManager.checkWhetherAccessedFromSwingTransfer(TopSecurityManager.java:757)
   at org.netbeans.TopSecurityManager.checkPermission(TopSecurityManager.java:501)
   at sun.awt.X11.XToolkit.getSystemSelection(XToolkit.java:1157)
   at org.netbeans.editor.BaseCaret.getSystemSelection(BaseCaret.java:864)
   at org.netbeans.editor.BaseCaret.updateSystemSelection(BaseCaret.java:855)
   at org.netbeans.editor.BaseCaret.fireStateChanged(BaseCaret.java:967)
Comment 1 Michel Graciano 2015-04-27 19:09:33 UTC
Created attachment 153416 [details]
stacktrace
Comment 2 Tomas Hurka 2015-05-06 11:00:30 UTC
It looks like BaseCaret should use ExClipboard instead of XToolkit.getSystemSelection()
Comment 3 Vladimir Voskresensky 2015-06-15 02:01:21 UTC
Created attachment 154212 [details]
stacktrace

pasting from clipboard history
Comment 4 Exceptions Reporter 2015-07-16 18:20:40 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=216175
Comment 5 Exceptions Reporter 2015-07-20 17:37:37 UTC
Created attachment 154743 [details]
stacktrace

I can't reproduce this error again...
Comment 6 Milutin Kristofic 2015-10-16 15:10:05 UTC
*** Bug 255935 has been marked as a duplicate of this bug. ***
Comment 7 Ralph Ruijs 2016-01-11 12:52:37 UTC

*** This bug has been marked as a duplicate of bug 247990 ***