from customers feedback: ( ###@###.###)
> 2. If my app is already running when Java Web Start tries to download a
> newer version, the newer version gets "lost". Specifically, this happens
> when there is a new version of the app available. The first time I click on
> the JNLP link, it tells me that Java Web Start will download the new version
> the next time. If I click on this link again before closing the first one,
> it downloads the new app, but won't start it. If I then close the app and
> click on it again, Java Web Start thinks it has the latest version, but
> actually runs the older version. Much of this could be avoided if you
> implemented the change I suggested earlier to give the user the option to
> download the new version immediately rather than waiting for the next time.
If we try to write to a file that is open, the write will fail.
We should verify that the applications files are writable before atempting to
download a new version.
Name: nt126004 Date: 11/06/2001
java version "1.3.1-rc1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-rc1-b21)
Java HotSpot(TM) Client VM (build 1.3.1-rc1-b21, mixed mode)
I have realized that when an application update is available and you have the
same application runnig, updating fails.
JavaWebStart trys to overwrite the jar files but the OS doesn't allow this
operation because the file is in usage.
However the next time you click on the jnlp link JavaWebStart doesn't detect
the new version. I think JWS has yet written the new version control on the
client although it hasn't been update correctly.
1. Start an application via a jnlp link.
2. Update the jar file.
3. Start the application again via the link (original instance still running).
4. You get the exception:
JNLPException[category: Download Error : Exception: java.io.IOException: rename
failed in cache : LaunchDesc: null ]
at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
at com.sun.javaws.cache.DownloadProtocol.getResource(Unknown Source)
at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
at com.sun.javaws.Launcher.downloadResources(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
5. Quit the application and start it again from the link. No download is performed, but
you get the old version!
(Review ID: 135107)