JDK-8027831 : REGRESSION: The test failed automatically and thrown java.lang.NullPointerException.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • CPU: x86
  • Submitted: 2013-10-16
  • Updated: 2013-12-17
  • Resolved: 2013-11-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Resolved
Related Reports
Duplicate :  
Description
Testsuite name: Regression
JDK/JRE tested: JDK8b111(32bit)
OS/architecture: oel6.4-redhat-x86
Reproducible: Always
Reproducible on machine: oel6.4-redhat-x86
Test run log location:
http://jsqalab.us.oracle.com/results/Evergreen/8/b111/regression/oel6.4-redhat-x86/results-awt-part5/workDir/java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest.jtr
Test run result location:
http://jsqalab.us.oracle.com/results/Evergreen/8/b111/regression/oel6.4-redhat-x86/results-awt-part5/workDir/java/awt/datatransfer/HTMLDataFlavors/


Steps to reproduce:
1.Download regression workspace from http://jre.sfbay.sun.com/java/re/jdk/8/promoted/ea/b111/ws/jdk/test/ to /regression
2.Install stable bundle JDK7u25b15 (download from http://jre.us.oracle.com/java/re/jdk/7u25/promoted/fcs/b15/bundles/linux-i586/jdk-7u25-linux-i586.tar.gz) to /regression/jdk1.7.0_25
3. Install test bundle JDK8b111 (download from http://jre.sfbay.sun.com/java/re/jdk/8/promoted/ea/b111/bundles/linux-i586/jdk-8-ea-linux-i586.tar.gz) to /regression/jdk1.8.0_111
4.Download and unzip Jtreg from http://jre.us.oracle.com/java/re/jtreg/4.1/promoted/fcs/b02/bundles/jtreg_bin-4.1.zip locate at /regression
5.Create the script regression.sh as follows and run it
export JT_JAVA=/regression/jdk1.7.0_25
/regression/jtreg/linux/bin/jtreg -v -m -ignore:quiet -jdk:/regression/jdk1.8.0_111 -r:/regression/results/reportDir -w:/regression/results/workDir /regression/test/java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest.html
 
Case Instruction:
1) The test contains a drop-aware panel with a red background
2) Open some page in a browser, select some text Drag and drop it on the red panel 
    IMPORTANT NOTE: the page should be stored locally.otherwise for instance iexplore can
     prohibit drag and drop from the browser to other applications because of the protected mode
     restrictions.
3) Check the data in the output area of this dialog
4) The output should not contain information that any of flavors is not present in the system
    clipboard.
5) The output should contain data in three different formats provided by the system clipboard
    - Data after the "ALL:" marker should include the data from the the "SELECTION:" marker
    - Data after the "FRAGMENT" marker should include the data from the "SELECTION:"   marker
      and may be some closing tags could be added to the mark-up
    - Data after the "SELECTION:" marker should correspond to the data selected in the browser
6) If the above requirements are met, the test is passed

Actual behavior:
Drag some text from the browser and drop it to the red panel ,the test failed automatically and thrown java.lang.NullPointerException.

Exceptions:
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.getTransferData(SunDropTargetContextPeer.java:249)
	at sun.awt.datatransfer.TransferableProxy.getTransferData(TransferableProxy.java:73)
	at java.awt.dnd.DropTargetContext$TransferableProxy.getTransferData(DropTargetContext.java:376)
	at ManualHTMLDataFlavorTest$DropPane.drop(ManualHTMLDataFlavorTest.java:94)
	at java.awt.dnd.DropTarget.drop(DropTarget.java:456)
	at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:541)
	at sun.awt.X11.XDropTargetContextPeer.processDropMessage(XDropTargetContextPeer.java:184)
	at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:855)
	at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:779)
	at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:48)
	at java.awt.Component.dispatchEventImpl(Component.java:4744)
	at java.awt.Container.dispatchEventImpl(Container.java:2293)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4877)
	at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:4611)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4457)
	at java.awt.Container.dispatchEventImpl(Container.java:2279)
	at java.awt.Window.dispatchEventImpl(Window.java:2705)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	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 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)
STATUS:Failed.Applet thread threw exception: java.lang.NullPointerException
result: Failed. Execution failed: Applet thread threw exception: java.lang.NullPointerException

Validation:
8b108(64bit) on win8-x64: have not this issue.
8b108(32bit) on oel6.4-redhat-x86: have not this issue.

Comments
Yes. This is a duplicate of JDK-8026262
05-11-2013

Looks like it was fixed already.
05-11-2013

it is a regression introduced in JDK 8 b110.
05-11-2013

solaris11-x64 8b113(64bit) java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest It has same issue
31-10-2013

win7-x86 openjdk8b112(32bit) closed/java/awt/FontClass/TransformAttribute/FontTransformAttributeTest The test failed automatically and thrown the following java.lang.NullPointerException. java.lang.NullPointerException: AttributedCharacterIterator is null at sun.java2d.SunGraphics2D.drawString(SunGraphics2D.java:2939) at FontTransformAttributeTest.paint(FontTransformAttributeTest.java:44) at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264) at sun.awt.RepaintArea.paint(RepaintArea.java:240) at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:347) at java.awt.Component.dispatchEventImpl(Component.java:4961) at java.awt.Container.dispatchEventImpl(Container.java:2293) 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 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) STATUS:Failed.Applet thread threw exception: java.lang.NullPointerException: AttributedCharacterIterator is null
24-10-2013

The case failed as same issue for openjdk8b112(64bit) on oel6.4-redhat-x64.
22-10-2013

java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest.html
16-10-2013