JDK-6659532 : PIT b12: Java Console can not be closed or invoked through system tray icon
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u10
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,windows,windows_vista
  • CPU: generic,x86
  • Submitted: 2008-02-05
  • Updated: 2010-09-08
  • Resolved: 2008-03-10
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 6
6u10 b13Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Description
Description - Java Console can not be closed or invoked through system tray icon

Steps to reproduce:

Test 1:
Open Java Control Panel and enable the Java Console

Install b12 pit bundles from the following location:
http://j2se.east/plugin/1.6.0_10-pit/2008-02-05/windows-i586/

Invoke any applet, for ex. from java.sun.com at:
http://java.sun.com/products/plugin/1.5.0/demos/plugin/applets.html

Try to close the java console.
Actual Behavior - Java Console can not be closed
The following exceptions are thrown:

Exception in thread "AWT-EventQueue-1" java.lang.ClassCastException: com.sun.deploy.services.WPlatformService cannot be cast to sun.plugin.services.BrowserService
	at sun.plugin2.main.client.Plugin2ConsoleController.isIconifiedOnClose(Unknown Source)
	at com.sun.deploy.util.ConsoleWindow$24.windowClosing(Unknown Source)
	at java.awt.AWTEventMulticaster.windowClosing(Unknown Source)
	at java.awt.Window.processWindowEvent(Unknown Source)
	at javax.swing.JFrame.processWindowEvent(Unknown Source)
	at java.awt.Window.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

Test 2:
Disable Java Console through Java Control Panel

Invoke any applet

Try to open the java console through the system tray java icon
Actual behavior - Java Console does not come up.

Note: Tried with old plugin and this problem is not there.

Comments
SUGGESTED FIX http://sa.sfbay.sun.com/projects/deployment_data/6u10/6659532.1 testcase: http://j2se.east/deployment/www/tests/1.6.0_10/6659532
06-02-2008

EVALUATION Some of the initialization being done in JNLP2Manager.initializeExecutionEnvironment() was redundant (done earlier in Applet2Environment.initialize()), and the re-setting of the Service implementation was causing breakage of certain parts of the new Java Plug-In including the hiding and showing of the Java Console. Tested fix manually. Also ran new JNLP applet Service tests from the workspace to verify that there were no regressions in that functionality. Made minor modifications to shell scripts to be able to compile these tests on Windows.
06-02-2008

EVALUATION Likely regression related to the initialization of JNLP support. Thanks for catching this.
05-02-2008