JDK-8013798 : Applet does not pop up - IllegalArgumentException (...different GraphicsDevice)
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 7u17
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2013-04-24
  • Updated: 2014-11-17
  • Resolved: 2013-10-31
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
both: Java 1.7.0_17, Java 1.7.0_21

ADDITIONAL OS VERSION INFORMATION :
Windows 7 Enterprise, 64 Bit

EXTRA RELEVANT SYSTEM CONFIGURATION :
Two screens connected.

A DESCRIPTION OF THE PROBLEM :
Problems while opening an applet.

Two Screens connected.

Most of our users report:

If starting the applet on a browser in the main monitor, the applet opens without a problem in the same monitor.

If starting the applet on a browser in the second monitor, the applet fails to open in the main monitor.

java.lang.IllegalArgumentException: adding a container to a container on a different GraphicsDevice
at java.awt.Component.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.addImpl(Unknown Source)
at java.awt.Container.add(Unknown Source)

We have users reporting that the applet fails to open on both screens.

Related problem was reported in the internet:
http://bugs.sun.com/view_bug.do?bug_id=8003398

REGRESSION.  Last worked in version 6u45

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
found in internet:
https://netbeans.org/bugzilla/show_bug.cgi?id=222051


ERROR MESSAGES/STACK TRACES THAT OCCUR :
java.lang.IllegalArgumentException: adding a container to a container on a different GraphicsDevice
at java.awt.Component.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.addImpl(Unknown Source)
at java.awt.Container.add(Unknown Source)


REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
For most users: opening window in main monitor.
We have users reporting problems on both screens.
Comments
This seems like it might be an AWT issue.
2013-06-06