JDK-4390297 : JaWS works unstable on Windows NT.
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: jaws-1.0
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_7,windows_nt
  • CPU: x86,sparc
  • Submitted: 2000-11-17
  • Updated: 2000-12-07
  • Resolved: 2000-12-07
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
jaws-1.0 1.0-fcsFixed
Related Reports
Relates :  
Relates :  
Description

Name: aaR10142			Date: 11/17/2000



JNLP TCK tests sometimes fail when run under Windows platform
(but sometimes pass)

The log file contains following strange lines for these failures:

Logging to file: D:\JNLP-TCK\javaws.log
#### Java Web Start Error:                                                          #### javasoft.sqe.tests.http.requests.VersionBasedProtocol.version_plusTests        
Java Web Start Console, v1.0-rc started Fri Jun 16 19:26:47 GMT+04:00 2000

CommandJNLPLauncer log following strings

Java Web Start Console, v1.0-rc started Fri Jun 16 20:16:15 GMT+04:00 2000
  
Logging to file: D:\JNLP-TCK\javaws.log
##TCKHarnesRun##:961172176724:503498:Thread[main,5,main]:JNLP Launching             
Failed. The jnlp client exit code is -1

To reproduce this problem just run JNLP TCK on windows.
The list of failed tests changes from run to run


                 
======================================================================

###@###.### 2000-11-22

The root of the problem is concurrency writing to the cache directory
files with same names.

to reproduce the problem use the standard example
draw.jnlp

#run javaws  
WIN> javaws.exe  http://matmech:8080/draw.jnlp
# quickly change modified time for draw.jar and  draw.jnlp
matmech> touch draw.jar draw.jnlp
# run quickly javaws with the same url one more time
WIN>javaws.exe  http://matmech:8080/draw.jnlp

If your http server do not generate Last-Modified field, or generate it incorrectly you can only run jnlp client two times.
Some times one of the running applications hangs up,
some times generate error message:

An error occurred while launching/running the application.

Title: Draw
Vendor: Sun Microsystems, Inc.
Category: Download Error

Unable to load resource: http://matmech:8080/draw.jar

java.io.IOException: rename failed in cache

	at com.sun.javaws.cache.DiskCache.insertEntry(DiskCache.java:211)

	at com.sun.javaws.cache.DiskCache.insertResource(DiskCache.java:197)

	at com.sun.javaws.cache.DownloadProtocol$RetrieveAction.actionDownload(DownloadProtocol.java:463)

	at com.sun.javaws.cache.DownloadProtocol.doDownload(DownloadProtocol.java:609)

	at com.sun.javaws.cache.DownloadProtocol.getResource(DownloadProtocol.java:762)

	at com.sun.javaws.LaunchDownload.downloadJarFiles(LaunchDownload.java:563)

	at com.sun.javaws.LaunchDownload.downloadEagerorAll(LaunchDownload.java:469)

	at com.sun.javaws.Launcher.downloadResources(Launcher.java:601)

	at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:257)

	at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:151)

	at com.sun.javaws.Launcher.<init>(Launcher.java:113)

	at com.sun.javaws.Main.main(Main.java:153)

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: jaws-1.0-fcs FIXED IN: jaws-1.0-fcs INTEGRATED IN: jaws-1.0-fcs VERIFIED IN: jaws-1.0-fcs
31-08-2004

EVALUATION I see a consistent failure of 5 tests every time I run on Windows NT + SP4. kumar.srinivasan@Eng 2000-11-22 --------------------- The JNLPProcess was not interpreting a TCK Harness tag which was being embededed in a tcp buffer. JavaWS changes: Needed to add outputstream flush on the jaws side to ensure that the tags are sent sequentially. Moved the Socket code to Debug vs calling in static initialiser. Fixed DownloadProtocol to provide more meaningful messages and dont consume exceptions. TCK/JNLPProcess changes: Moved the write to _opos to a synchronised method. Added code to empty the stdout and stderr streams from the process. kumar.srinivasan@Eng 2000-11-30
30-11-2000