JDK-7027516 : JNLP based applet failed to launch using javaws and from desktop shortcut
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows
  • CPU: generic
  • Submitted: 2011-03-15
  • Updated: 2011-03-15
  • Resolved: 2011-03-15
Related Reports
Duplicate :  
Description
JNLP based applets are failing to get launched diretcly using javaws or from desktop shortcut by throwing following exception
xception in thread "AWT-EventQueue-3" java.lang.ClassCastException: com.sun.deploy.uitoolkit.impl.awt.UIToolkitImpl cannot be cast to com.sun.deploy.uitoolkit.PluginUIToolkit
	at sun.plugin2.applet.viewer.JNLP2Viewer$1.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(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)
preloader: Stop progressCheck thread
Steps to reproduce:
1) Install the latest jdk7 nightly bundle
2) Try to launch applet inside the browser 
http://sqeweb.sfbay.sun.com/deployment2/jitu/latest_ws_test/6/deployment/src/plugin/JNLPSupport/JNLPSupport/html/SimpleJNLPTest.html
- Drag applet outside the browser using left mosue+ALT button
- close the browser and allow to create shorcut
- Try laucnhing the applet again from shortcut
 
OR try launching the applet directly as follows
javaws http://sqeweb.sfbay.sun.com/deployment2/jitu/latest_ws_test/6/deployment/src/plugin/JNLPSupport/JNLPSupport/jnlp/SimpleJNLPTest.jnlp

If applet fails to laucnh by throwing above mentioned exception then bug is reproduced