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 236827 - NullPointerException at java.awt.datatransfer.SystemFlavorMap.getAllNativesForType
Summary: NullPointerException at java.awt.datatransfer.SystemFlavorMap.getAllNativesFo...
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords: JDK_8
: 237177 237362 240108 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-07 11:43 UTC by Petr Cyhelsky
Modified: 2014-01-08 12:25 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 204404


Attachments
stacktrace (3.39 KB, text/plain)
2013-10-07 11:43 UTC, Petr Cyhelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cyhelsky 2013-10-07 11:43:20 UTC
Build: NetBeans IDE Dev (Build 20131007-b381bbbbd69f)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b52, Java(TM) SE Runtime Environment, 1.8.0-ea-b110
OS: Linux

User Comments:
cyhelsky: drag and drop of file from Krusader (file manager for kde) to NB - running NB on jdk8




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.getFlavorsForFormats(DataTransferer.java:851)
   at sun.awt.dnd.SunDropTargetContextPeer.isDataFlavorSupported(SunDropTargetContextPeer.java:211)
   at sun.awt.datatransfer.TransferableProxy.isDataFlavorSupported(TransferableProxy.java:68)
   at java.awt.dnd.DropTargetContext$TransferableProxy.isDataFlavorSupported(DropTargetContext.java:355)
Comment 1 Petr Cyhelsky 2013-10-07 11:43:22 UTC
Created attachment 140850 [details]
stacktrace
Comment 2 Jaroslav Havlin 2013-10-08 14:02:49 UTC
I cannot reproduce the bug with:

  Product Version: NetBeans IDE Dev (Build 201310080001)
  Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b51
  Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b109
  System: Linux version 3.8.0-26-generic running on amd64; UTF-8; en_US (nb)

But I can reproduce it when I change JDK to:

  Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b52
  Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b110

So it seems to be a JDK bug introduced in 1.8.0-ea-b110.
(I cannot also copy text to clipboard when using this JDK.)
Comment 3 Antonin Nebuzelsky 2013-10-10 14:14:46 UTC
a new JDK bug filed.

https://bugs.openjdk.java.net/browse/JDK-8026262
Comment 4 Antonin Nebuzelsky 2013-10-23 14:53:10 UTC
*** Bug 237362 has been marked as a duplicate of this bug. ***
Comment 5 sreimers 2013-10-23 15:36:56 UTC
Still see it on JDK8 ea b112 although it is said to be fixed. Happens using Copy&Paste History on Nb7.4 running on Windows 7


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.windows.WDataTransferer.getFormatsForFlavors(WDataTransferer.java:177)
	at sun.awt.datatransfer.DataTransferer.getFormatsForTransferable(DataTransferer.java:659)
	at sun.awt.windows.WClipboard.setContentsNative(WClipboard.java:75)
	at sun.awt.datatransfer.SunClipboard.setContents(SunClipboard.java:110)
	at org.netbeans.modules.editor.impl.actions.clipboardhistory.CompletionLayoutPopup.pasteContent(CompletionLayoutPopup.java:646)
	at org.netbeans.modules.editor.impl.actions.clipboardhistory.CompletionLayoutPopup.access$400(CompletionLayoutPopup.java:82)
	at org.netbeans.modules.editor.impl.actions.clipboardhistory.CompletionLayoutPopup$ChMouseAdapter.mouseClicked(CompletionLayoutPopup.java:566)
	at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
	at java.awt.Component.processMouseEvent(Component.java:6532)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
	at java.awt.Component.processEvent(Component.java:6294)
	at java.awt.Container.processEvent(Container.java:2235)
	at java.awt.Component.dispatchEventImpl(Component.java:4885)
	at java.awt.Container.dispatchEventImpl(Container.java:2293)
	at java.awt.Component.dispatchEvent(Component.java:4707)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4877)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4542)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
	at java.awt.Container.dispatchEventImpl(Container.java:2279)
	at java.awt.Component.dispatchEvent(Component.java:4707)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
	at java.awt.EventQueue.access$400(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:697)
	at java.awt.EventQueue$3.run(EventQueue.java:691)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.awt.EventQueue$4.run(EventQueue.java:719)
	at java.awt.EventQueue$4.run(EventQueue.java:717)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:220)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:135)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:123)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:119)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:111)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
Comment 6 Antonin Nebuzelsky 2013-11-19 10:23:34 UTC
*** Bug 237177 has been marked as a duplicate of this bug. ***
Comment 7 Antonin Nebuzelsky 2013-11-19 10:24:24 UTC
(In reply to Antonin Nebuzelsky from comment #3)

> https://bugs.openjdk.java.net/browse/JDK-8026262

Resolved as of JDK8 b115.
Comment 8 Ondrej Vrabec 2014-01-08 12:25:54 UTC
*** Bug 240108 has been marked as a duplicate of this bug. ***