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.
This is a sporadic issue which I wasn't able to reproduce. Nevertheless it happens to me more than once a day working with latest 7.1. I'm doing some coding work and copy and past stuff from my editor (notepad or notepad++ on windows) to a Java Class in NetBeans. In some point of time during the day this simply doesn't work anymore. It seems as if the clipboard in NetBeans isn't updated anymore. It still has the last (!) content, I copied (NetBeans internally!) and refuses to past any external stuff into the any editor view. Only IDE restart solves this. Product Version: NetBeans IDE 7.1 (Build 201112071828) Java: 1.6.0_26; Java HotSpot(TM) 64-Bit Server VM 20.1-b02 System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)
Adding to CC list. I've typically seen this when copying from an HTML or formatted editor. Copy/pasting from a text editor has always worked on my Mac.
Mila, please evaluate. Thanks.
Is this still reproducible even in NB 7.2 Beta? Thanks.
Please reopen if the problem would persist.
(In reply to comment #3) > Is this still reproducible even in NB 7.2 Beta? Thanks. Yes, it is stil happening. (NB 7.2)
I would say that now "Copy & Paste starts working sporadically" as I have this problem quite often: - copied text to clipboard from external software is often impossible to paste in IDE - copied text from IDE cannot be pasted into external software If you Ctrl+C/X in IDE and then paste in IDE, it works fine. But clipboard interaction between NetBeans and other software is really 50:50. Restarting IDE sometimes helps. Milo, can I give you some extra logging? Product Version = NetBeans IDE Dev (Build 201209050001) (#3645cb9e4f5d) Operating System = Linux version 3.2.0-29-generic-pae running on i386 Java; VM; Vendor = 1.7.0_06; Java HotSpot(TM) Client VM 23.2-b09; Oracle Corporation
Running 7u4 and 7.2 beta triggers it in less than 10 minutes work every time for me. Running 7u6 or above - nothing, ever.
I constantly have this problem on Windows, even copying from Notepad. It doesn't have to be a rich text to cause the problem. I didn't have the chance to check on other platforms because I simply didn't need to perform copy & paste there ... so far. It also start working suddenly. I have no idea how to reproduce that. Maybe, if you do what I was doing, it may happen: I was doing a re-factory in hundreds of classes, normalizing the use of Logger. So I left a Notepad window opened with the following text: private static final Logger LOGGER = Logger.getLogger([].class.getName()); LOGGER.log(Level. Then I was copying and pasting those lines to the code every time I noticed something different. If you do something insanely repetitive like this you may find the issue.
I am also experiencing this more frequently recently. My current version is build 201209110001 running on Windows 7 64-bit with JDK 7u5 64-bit.
Also have a look at Bug 205697.
I just noticed this exception in my NetBeans Platform application, when I wasn't even doing anything related to the clipboard. Maybe this will shed some light on the issue in the IDE... java.lang.OutOfMemoryError: OutOfMemoryError at sun.awt.windows.WClipboard.getClipboardData(Native Method) at sun.awt.datatransfer.ClipboardTransferable.fetchOneFlavor(ClipboardTransferable.java:118) at sun.awt.datatransfer.ClipboardTransferable.<init>(ClipboardTransferable.java:97) at sun.awt.datatransfer.SunClipboard.getContents(SunClipboard.java:147) at org.netbeans.NbClipboard.run(NbClipboard.java:315) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1452) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2032)
Copy Paste issue was fixed in Bug #218447.