-
Bug
-
Resolution: Fixed
-
P3
-
6
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2199043 | 7 | Thomas Ng | P3 | Resolved | Fixed | b64 |
FULL PRODUCT VERSION :
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Windows XP SP2
EXTRA RELEVANT SYSTEM CONFIGURATION :
Solars or Linux Server running Tomcat hosting an application, also hosting a webstart download/installer service as per JNLP specs.
Client Side is Windows XP or Win2K using webstart to run application, and using webstart extension download/installation process to manage JRE installations using the locally hosted installer service instead of Sun's
A DESCRIPTION OF THE PROBLEM :
In cases of WebStart 1.6 managing the installation of 1.6 jre of the same version, the installation stage succeeds but the WebStart 1.6 internal caches seem to get corrupt and the application cannot launch after the installation, throwing this exception, the 2nd attempt to same application will succeed ( The installer having successfully installed/claimed the extension, webstart will simply use it and the webstart driven installation is not launched )
This is the exception:
java.io.IOException: Cannot find cached resource for URL: http://myserver:8080/MyApplication/includes/App.jar
at com.sun.deploy.net.DownloadEngine.getCachedResourceFilePath(Unknown Source)
at com.sun.javaws.LaunchDownload.getSignedJNLPFile(Unknown Source)
at com.sun.javaws.LaunchDownload.checkSignedLaunchDescHelper(Unknown Source)
at com.sun.javaws.LaunchDownload.checkSignedLaunchDesc(Unknown Source)
at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1) You will need a WebStart JRE installer, Custom or reuse Sun’s WebStart installer
The webstart installer should locate the exiting installed JRE and claim it, or use the same Sun jre-6u1 run it, and then claim the JRE using the webstart required method from the “javax.jnlp.ExtensionInstallerService” setJREInfo(String,String) method then following by the installSucceeded(false); method.
2) Launch the application which should have a <J2SE version=”1.6.0_01”
href=”http://myserver.com/InstallationService/j2se”>
You will hit the error
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Under java 1.5, multiple entries where possible in the deployment.properties for the same JRE, and webstart 1.5 installation process allowed. A WebStart driven JRE installation of any JRE packaging was possible.
From the release notes, and some research I see that under 1.6 deployment configuration management has been rewritten.
So Under 1.6
There is only 1 entry for the JRE in the workstation’s deployment configuration (deployment.properties),
• This limitation seems to be only imposed by webstart at JRE installation time
• This limitation is not observed using the Java Control Panel
• Something other than webstart can rewrite the deployment.properties, and has no problem with Multiple entries for a JRE
• Nor when multiple entries are administratively added to the deployment configuration file. (Java Control panel rewrites the deployment configuration file, and does not impose the same limits as webstart ).
Launching the application which should have a <J2SE version=”1.6.0_01” href=”http://myserver.com/InstallationService/j2se”>
Expected behaviour:
i. WebStart will not find the installed JRE , (as it was already installed using Sun's installer, and the location was set to Sun's URL)
ii. WebStart will launch the JRE installer as directed (regardless if is Sun’s installer or a custom one),
iii. at the end of the JRE installation the application should launch
iv. The deployment.properties will have a new entry set to ( deployment.javaws.jre.1.location= http://myserver.com/InstallationService/j2se )
ACTUAL -
As expected:
i. WebStart will not find the JRE
ii. WebStart will launch the JRE Installer as required
iii. The JRE installer completes successfully, the deployment.properties is correctly updated. (deployment.javaws.jre.0.location= http://myserver.com/InstallationService/j2se)
iv. WebStart proceeds to launch the application but fails with the exception mentioned in this bug report.
v. The 2nd click to launch the same application again will succeed
vi. The issue is after WebStarts uses a JRE installer that claims the same JRE, webstart gets its cache/runtime environment corrupted, and cannot continue to launch applications.
Potential Issues tested and dismissed: The application JNLP file is the same one, and there are no IO issues from the server to access any of the required resources spelled out in the JNLP file. All resources are statically hosted, no download service.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
java.io.IOException: Cannot find cached resource for URL: http://myserver:8080/MyApplication/includes/App.jar
at com.sun.deploy.net.DownloadEngine.getCachedResourceFilePath(Unknown Source)
at com.sun.javaws.LaunchDownload.getSignedJNLPFile(Unknown Source)
at com.sun.javaws.LaunchDownload.checkSignedLaunchDescHelper(Unknown Source)
at com.sun.javaws.LaunchDownload.checkSignedLaunchDesc(Unknown Source)
at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Switch application to use JRE 1.5)
WebStart 1.6 managing non 1.6 jre installations (WS 1.6 installing a 1.5 JRE), programmatically rewriting the deployment.properties will overcome the limitation, the rewrite has to be done after the webstart driven installation process. At application startup. Any attempt to rewrite the deployment.properties during the webstart driven installation process, will get overwritten at the end of the installation process by webstart from its runtime/cache
Its a compromise to use the application on JRE 1.5, but not a solution.
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Windows XP SP2
EXTRA RELEVANT SYSTEM CONFIGURATION :
Solars or Linux Server running Tomcat hosting an application, also hosting a webstart download/installer service as per JNLP specs.
Client Side is Windows XP or Win2K using webstart to run application, and using webstart extension download/installation process to manage JRE installations using the locally hosted installer service instead of Sun's
A DESCRIPTION OF THE PROBLEM :
In cases of WebStart 1.6 managing the installation of 1.6 jre of the same version, the installation stage succeeds but the WebStart 1.6 internal caches seem to get corrupt and the application cannot launch after the installation, throwing this exception, the 2nd attempt to same application will succeed ( The installer having successfully installed/claimed the extension, webstart will simply use it and the webstart driven installation is not launched )
This is the exception:
java.io.IOException: Cannot find cached resource for URL: http://myserver:8080/MyApplication/includes/App.jar
at com.sun.deploy.net.DownloadEngine.getCachedResourceFilePath(Unknown Source)
at com.sun.javaws.LaunchDownload.getSignedJNLPFile(Unknown Source)
at com.sun.javaws.LaunchDownload.checkSignedLaunchDescHelper(Unknown Source)
at com.sun.javaws.LaunchDownload.checkSignedLaunchDesc(Unknown Source)
at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1) You will need a WebStart JRE installer, Custom or reuse Sun’s WebStart installer
The webstart installer should locate the exiting installed JRE and claim it, or use the same Sun jre-6u1 run it, and then claim the JRE using the webstart required method from the “javax.jnlp.ExtensionInstallerService” setJREInfo(String,String) method then following by the installSucceeded(false); method.
2) Launch the application which should have a <J2SE version=”1.6.0_01”
href=”http://myserver.com/InstallationService/j2se”>
You will hit the error
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Under java 1.5, multiple entries where possible in the deployment.properties for the same JRE, and webstart 1.5 installation process allowed. A WebStart driven JRE installation of any JRE packaging was possible.
From the release notes, and some research I see that under 1.6 deployment configuration management has been rewritten.
So Under 1.6
There is only 1 entry for the JRE in the workstation’s deployment configuration (deployment.properties),
• This limitation seems to be only imposed by webstart at JRE installation time
• This limitation is not observed using the Java Control Panel
• Something other than webstart can rewrite the deployment.properties, and has no problem with Multiple entries for a JRE
• Nor when multiple entries are administratively added to the deployment configuration file. (Java Control panel rewrites the deployment configuration file, and does not impose the same limits as webstart ).
Launching the application which should have a <J2SE version=”1.6.0_01” href=”http://myserver.com/InstallationService/j2se”>
Expected behaviour:
i. WebStart will not find the installed JRE , (as it was already installed using Sun's installer, and the location was set to Sun's URL)
ii. WebStart will launch the JRE installer as directed (regardless if is Sun’s installer or a custom one),
iii. at the end of the JRE installation the application should launch
iv. The deployment.properties will have a new entry set to ( deployment.javaws.jre.1.location= http://myserver.com/InstallationService/j2se )
ACTUAL -
As expected:
i. WebStart will not find the JRE
ii. WebStart will launch the JRE Installer as required
iii. The JRE installer completes successfully, the deployment.properties is correctly updated. (deployment.javaws.jre.0.location= http://myserver.com/InstallationService/j2se)
iv. WebStart proceeds to launch the application but fails with the exception mentioned in this bug report.
v. The 2nd click to launch the same application again will succeed
vi. The issue is after WebStarts uses a JRE installer that claims the same JRE, webstart gets its cache/runtime environment corrupted, and cannot continue to launch applications.
Potential Issues tested and dismissed: The application JNLP file is the same one, and there are no IO issues from the server to access any of the required resources spelled out in the JNLP file. All resources are statically hosted, no download service.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
java.io.IOException: Cannot find cached resource for URL: http://myserver:8080/MyApplication/includes/App.jar
at com.sun.deploy.net.DownloadEngine.getCachedResourceFilePath(Unknown Source)
at com.sun.javaws.LaunchDownload.getSignedJNLPFile(Unknown Source)
at com.sun.javaws.LaunchDownload.checkSignedLaunchDescHelper(Unknown Source)
at com.sun.javaws.LaunchDownload.checkSignedLaunchDesc(Unknown Source)
at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Switch application to use JRE 1.5)
WebStart 1.6 managing non 1.6 jre installations (WS 1.6 installing a 1.5 JRE), programmatically rewriting the deployment.properties will overcome the limitation, the rewrite has to be done after the webstart driven installation process. At application startup. Any attempt to rewrite the deployment.properties during the webstart driven installation process, will get overwritten at the end of the installation process by webstart from its runtime/cache
Its a compromise to use the application on JRE 1.5, but not a solution.
- backported by
-
JDK-2199043 Application Launch failed after Webstart driven JRE installation
- Resolved
- relates to
-
JDK-6940908 Webstart client does not download required resources after making custom JRE installation
- Closed