JDK-6282084 : Jre autodownload test hang on security warning dialogs
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 5.0u6,6
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,windows_xp
  • CPU: generic,x86
  • Submitted: 2005-06-08
  • Updated: 2010-12-07
  • Resolved: 2005-06-22
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.
Other JDK 6
5.0u6Fixed 6 b42Fixed
Related Reports
Duplicate :  
Duplicate :  
Description
Jre autodownload test hang on security warning dialog on all platforms.

Steps to reproduce:
- clean cache
- install jre1.6.0 build 40
- try to execute test 
http://nicole1.sfbay.sun.com:8080/JavawsMustangIntegTest/hellojaws/JRE_AutoDownload_13002.jnlp
It will hang on Security Warning dialog
###@###.### 2005-06-08 00:59:12 GMT
--------------------------------------------------
After fix has been delivered in build 42 (PIT build) it has a new problem now:
Java Web Start can not invoke application from cache after autodownload it (second launch autodowload) on Solaris:

This is what I am getting  (Solaris10):
 - It is coming with Application Error window: Unable to launch the application. Click on the details do nothing. I attached log for this: 
#### Java Web Start Error:
#### java.lang.NoClassDefFoundError: java/net/URISyntaxException
Exception occurred during event dispatching:
java.awt.AWTError: Invalid axis
	at javax.swing.BoxLayout.<init>(BoxLayout.java:115)
	at com.sun.deploy.ui.MoreInfoDialog.initComponents(Unknown Source)
	at com.sun.deploy.ui.MoreInfoDialog.<init>(Unknown Source)
	at com.sun.deploy.ui.DialogTemplate.showMoreInfo(Unknown Source)
	at com.sun.deploy.ui.DialogTemplate.actionPerformed(Unknown Source)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216)
	at java.awt.Component.processMouseEvent(Component.java:3715)
	at java.awt.Component.processEvent(Component.java:3544)
	at java.awt.Container.processEvent(Container.java:1165)
	at java.awt.Component.dispatchEventImpl(Component.java:2593)
	at java.awt.Container.dispatchEventImpl(Container.java:1214)
	at java.awt.Component.dispatchEvent(Component.java:2497)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2452)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2217)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2126)
	at java.awt.Container.dispatchEventImpl(Container.java:1201)
	at java.awt.Window.dispatchEventImpl(Window.java:917)
	at java.awt.Component.dispatchEvent(Component.java:2497)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:333)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:134)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:101)
	at java.awt.Dialog.show(Dialog.java:383)
	at java.awt.Component.show(Component.java:946)
	at java.awt.Component.setVisible(Component.java:903)
	at com.sun.deploy.ui.DialogTemplate.setVisible(Unknown Source)
	at com.sun.deploy.ui.UIFactory$10.execute(Unknown Source)
	at com.sun.javaws.ui.JavawsSysRun.delegate(Unknown Source)
	at com.sun.deploy.util.DeploySysRun.execute(Unknown Source)
	at com.sun.deploy.util.DeploySysRun$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.deploy.util.DeploySysRun.executePrivileged(Unknown Source)
	at com.sun.deploy.ui.UIFactory.showProgressDialog(Unknown Source)
	at com.sun.javaws.ui.DownloadWindow$7.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:331)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:134)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:96)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:88)
Exception occurred during event dispatching:
java.awt.AWTError: Invalid axis
	at javax.swing.BoxLayout.<init>(BoxLayout.java:115)
	at com.sun.deploy.ui.MoreInfoDialog.initComponents(Unknown Source)
	at com.sun.deploy.ui.MoreInfoDialog.<init>(Unknown Source)
	at com.sun.deploy.ui.DialogTemplate.showMoreInfo(Unknown Source)
	at com.sun.deploy.ui.DialogTemplate.actionPerformed(Unknown Source)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216)
	at java.awt.Component.processMouseEvent(Component.java:3715)
	at java.awt.Component.processEvent(Component.java:3544)
	at java.awt.Container.processEvent(Container.java:1165)
	at java.awt.Component.dispatchEventImpl(Component.java:2593)
	at java.awt.Container.dispatchEventImpl(Container.java:1214)
	at java.awt.Component.dispatchEvent(Component.java:2497)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2452)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2217)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2126)
	at java.awt.Container.dispatchEventImpl(Container.java:1201)
	at java.awt.Window.dispatchEventImpl(Window.java:917)
	at java.awt.Component.dispatchEvent(Component.java:2497)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:333)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:134)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:101)
	at java.awt.Dialog.show(Dialog.java:383)
	at java.awt.Component.show(Component.java:946)
	at java.awt.Component.setVisible(Component.java:903)
	at com.sun.deploy.ui.DialogTemplate.setVisible(Unknown Source)
	at com.sun.deploy.ui.UIFactory$10.execute(Unknown Source)
	at com.sun.javaws.ui.JavawsSysRun.delegate(Unknown Source)
	at com.sun.deploy.util.DeploySysRun.execute(Unknown Source)
	at com.sun.deploy.util.DeploySysRun$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.deploy.util.DeploySysRun.executePrivileged(Unknown Source)
	at com.sun.deploy.ui.UIFactory.showProgressDialog(Unknown Source)
	at com.sun.javaws.ui.DownloadWindow$7.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:331)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:134)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:96)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:88)
Exception occurred during event dispatching:
java.awt.AWTError: Invalid axis
	at javax.swing.BoxLayout.<init>(BoxLayout.java:115)
	at com.sun.deploy.ui.MoreInfoDialog.initComponents(Unknown Source)
	at com.sun.deploy.ui.MoreInfoDialog.<init>(Unknown Source)
	at com.sun.deploy.ui.DialogTemplate.showMoreInfo(Unknown Source)
	at com.sun.deploy.ui.DialogTemplate.actionPerformed(Unknown Source)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216)
	at java.awt.Component.processMouseEvent(Component.java:3715)
	at java.awt.Component.processEvent(Component.java:3544)
	at java.awt.Container.processEvent(Container.java:1165)
	at java.awt.Component.dispatchEventImpl(Component.java:2593)
	at java.awt.Container.dispatchEventImpl(Container.java:1214)
	at java.awt.Component.dispatchEvent(Component.java:2497)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2452)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2217)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2126)
	at java.awt.Container.dispatchEventImpl(Container.java:1201)
	at java.awt.Window.dispatchEventImpl(Window.java:917)
	at java.awt.Component.dispatchEvent(Component.java:2497)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:333)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:134)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:101)
	at java.awt.Dialog.show(Dialog.java:383)
	at java.awt.Component.show(Component.java:946)
	at java.awt.Component.setVisible(Component.java:903)
	at com.sun.deploy.ui.DialogTemplate.setVisible(Unknown Source)
	at com.sun.deploy.ui.UIFactory$10.execute(Unknown Source)
	at com.sun.javaws.ui.JavawsSysRun.delegate(Unknown Source)
	at com.sun.deploy.util.DeploySysRun.execute(Unknown Source)
	at com.sun.deploy.util.DeploySysRun$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.deploy.util.DeploySysRun.executePrivileged(Unknown Source)
	at com.sun.deploy.ui.UIFactory.showProgressDialog(Unknown Source)
	at com.sun.javaws.ui.DownloadWindow$7.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:331)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:134)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:96)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:88)

> > - once it went through, but still with exception: (attached) 
> > 
> > java.lang.NoSuchMethodError
> > 	at com.sun.deploy.cache.Cache$4.run(Unknown Source)
> > 	at java.security.AccessController.doPrivileged(Native Method)
> > 	at com.sun.deploy.cache.Cache.removeCacheEntry(Unknown Source)
> > 	at com.sun.deploy.cache.Cache.removeCacheEntry(Unknown Source)
> > 	at com.sun.deploy.net.DownloadEngine.isUpdateAvailable(Unknown Source)
> > 	at com.sun.javaws.LaunchDownload$1.run(Unknown Source)
> > 	at java.lang.Thread.run(Thread.java:484)

Even after first launch you can see the error:
java.lang.NoSuchMethodError
	at com.sun.deploy.cache.Cache$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.deploy.cache.Cache.removeCacheEntry(Unknown Source)
	at com.sun.deploy.cache.Cache.removeCacheEntry(Unknown Source)
	at com.sun.deploy.net.DownloadEngine.isUpdateAvailable(Unknown Source)
	at com.sun.javaws.LaunchDownload$1.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:484)
STATUS: JRE Auto-Download START
STATUS: JRE Auto-Download PASSED

 and on the Linux (RH AS3.0) you can not lauch application at all:
Error occurred during initialization of VM
Unable to load native library: /root/.java/deployment/cache/6.0/ext/E1119032697115/jre1.3.0_02/lib/i386/libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference

I noticed problem on Windows also:
after launching 
http://nicole1.sfbay.sun.com:8080/JavawsMustangIntegTest/hellojaws/JRE_AutoDownload_13002.jnlp
jre1.3.0_02 installed on the system. Now if you will remove the cache folder from the machine you will not be able to uninstall 1.3.0_02 at all.
It will show you the message: "Unable to locate the installation log file: ..../Sun/Java/Deployment/cache/6.0/ext/E1119033489640/Uninst.isu'. Uninstallation will not continue"


###@###.### 2005-06-17 20:28:07 GMT

Comments
EVALUATION for 1.5.0_06 backport: This can be fixed by just porting #1, above. That is, ensuring that the main jar is not lazy, so the security dialog happens directly from Launcher.java, and not thru the ClassLoader.
23-09-2005

EVALUATION problem is actually twofold: 1.) jre installer is signed installer extension with all jars marked lazy. The main jar in any Application, Applet, or Installer should be forced to be eager. 2.) the security AppContext has it's contextClassLoader set to the JNLPClassLoader. This ContextClassLoader needs to be set only on the Applications AppContext, not on the javaws Security AppContext. As a result, when showing a security dialog (from the JNLPClassLoader, due to 1 above) the swing code doing lazy loading on the ContextClassLoader is using the JNLPClassLoader, which is locked. ###@###.### 2005-06-09 14:41:11 GMT
09-06-2005