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 237177 - NullPointerException at java.awt.datatransfer.SystemFlavorMap.getAllNativesForType
Summary: NullPointerException at java.awt.datatransfer.SystemFlavorMap.getAllNativesFo...
Status: RESOLVED DUPLICATE of bug 236827
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal with 2 votes (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
: 237781 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-16 09:01 UTC by kahatlen
Modified: 2013-11-19 10:23 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 204616


Attachments
stacktrace (764 bytes, text/plain)
2013-10-16 09:01 UTC, kahatlen
Details
stacktrace (764 bytes, text/plain)
2013-10-23 12:38 UTC, infonaut
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kahatlen 2013-10-16 09:01:35 UTC
Build: NetBeans IDE 7.4 (Build 201310012201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b53, Java(TM) SE Runtime Environment, 1.8.0-ea-b111
OS: Linux

User Comments:
kahatlen: I was adding a new method to a class. It looked like this:

    public void test_6361_compilationSchemaDoesNotExist() throws SQLException {
        String user = 
        Connection conn = openUserConnection("USER_WITH_NO_SCHEMA")
    }

I selected the "USER_WITH_NO_SCHEMA" argument and pressed Ctrl-X to cut it. Then got a notification about a NullPointerException.




Stacktrace: 
java.lang.NullPointerException
   at java.awt.datatransfer.SystemFlavorMap.getAllNativesForType(SystemFlavorMap.java:1327)
   at java.awt.datatransfer.SystemFlavorMap.getNativesForFlavor(SystemFlavorMap.java:702)
   at sun.awt.datatransfer.DataTransferer.getFormatsForFlavors(DataTransferer.java:721)
   at sun.awt.datatransfer.DataTransferer.getFormatsForTransferable(DataTransferer.java:659)
   at sun.awt.X11.XClipboard.setContentsNative(XClipboard.java:89)
   at sun.awt.datatransfer.SunClipboard.setContents(SunClipboard.java:110)
Comment 1 kahatlen 2013-10-16 09:01:37 UTC
Created attachment 141129 [details]
stacktrace
Comment 2 infonaut 2013-10-23 12:38:54 UTC
Created attachment 141476 [details]
stacktrace

some CTRL-C / CTRL-V actions from external window (firefox).
Comment 3 infonaut 2013-10-23 12:42:23 UTC
this is a bug in JDK 8 ea on XAWT, is it reported?
Comment 4 Exceptions Reporter 2013-10-23 20:00:07 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=204616
Comment 5 rihlsul 2013-10-28 20:22:29 UTC
I updated to JDK 8 B113.  Thought since the issue at [Java](https://bugs.openjdk.java.net/browse/JDK-8026262) was fixed, this might be.  Negative.  Anyone have any better luck?
Comment 6 Jaroslav Tulach 2013-11-19 08:55:04 UTC
*** Bug 237781 has been marked as a duplicate of this bug. ***
Comment 7 Antonin Nebuzelsky 2013-11-19 10:23:34 UTC

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