JDK-8044240 : Embedding dialog and NPE when loading an applet the first time
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8u20
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2014-05-29
  • Updated: 2014-06-26
  • Resolved: 2014-06-18
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
8u20Resolved
Related Reports
Duplicate :  
Description
It is noticed in jre8u20, when invoking most, if not all, applets the first time, there is a NPE related to the embedding dialog type.  NPE shown in java console due to either Dialog type is not candidate for embedding  or Embedding dialogs not enabled in Configuration.

The NPE does not show if you run the same applet again. To make it re-appear again, javaws -uninstall to clean the deployment cache 

The issue is a regression since jre8u20-b13 

*** Test Configurations:
- x86 Win 7
- All browser
- jre 8u20-b16

*** Steps to reproduce:
0) Install jre 8u20-b16
1) Enable tracing, java console 
2) Use any browser to load java.com verification appelt
http://java.com/en/download/installed.jsp
3) Accept to run at the security dialog

If you find the follow NPE from java console, the issue is reproducible:
Dialog type is not candidate for embedding 
java.lang.NullPointerException
	at sun.awt.windows.WWindowPeer.getActiveWindowHandles(Unknown Source)
	at sun.awt.windows.WToolkit.eventLoop(Native Method)
	at sun.awt.windows.WToolkit.run(Unknown Source)


- For other unsigned applets from the web using ESL to run, the same  NPE from java console
but for Embedding dialogs not enabled in Configuration


The issue does not occur if using 8u20-b12 or earlier build



Comments
This is the duplicate of the issue JDK-8043705
18-06-2014

this is a regression in 8u20, please evaluate it asap
18-06-2014

There are no changes in deploy between b12 and b13. Also, b13 with deploy bits from b12 reproduce issue, so most likely it is not related to deploy.
18-06-2014

Looks like it is related or duplicates JDK-8043705. Re-assigning to AWT Team for investigation.
18-06-2014