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

Summary: SecurityException: All swing access to clipboard should be redirected to ExClipboard
Product: editor Reporter: Michel Graciano <hmichel>
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: RESOLVED DUPLICATE    
Severity: normal CC: nathanh, scanti, shayzu, vv159170
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 216175
Attachments: stacktrace
stacktrace
stacktrace

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 ***