United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 4775777 "Invalid Cache Location" window incorrect behavior
4775777 : "Invalid Cache Location" window incorrect behavior

Details
Type:
Bug
Submit Date:
2002-11-07
Status:
Closed
Updated Date:
2003-02-28
Project Name:
JDK
Resolved Date:
2002-11-19
Component:
deploy
OS:
windows_2000
Sub-Component:
webstart
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.2
Fixed Versions:
1.4.2

Related Reports

Sub Tasks

Description
"Invalid Cache Location" window incorrect behavior on all platforms
Java Web Start 1.4.2-beta-b05

Steps:
- make sure your jaws java console enabled
- download one or two jaws applications
- go to the view View/Downloaded applications
- go to File/Preferences/Advanced
- click on Clear Folder, now Yes
- click 'OK' button to close Preference
"Invalid Cache Location" window saying:
"Cannot change cache location to:
/home/owner/.javaws/cache. Invalid cache location. A valid cache location must be either an empty directory, or a previous Java Web Start cache location." coming.

You need  to click on OK button to close this window.


                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mantis

FIXED IN:
mantis

INTEGRATED IN:
mantis
mantis-b08

VERIFIED IN:
mantis-beta


                                     
2004-08-31
EVALUATION

I can only reproduce the problem on solaris with the latest version of javaws

###@###.### 2002-11-08

On solaris, sometimes the cache will contains a ".nfsxxx" file, where xxx are some random characters.

After the cache is cleared, these .nfs file will regenerate right the way.

which cause the AdvancedPanle.isCacheDirValid check to fail, because the cache is not empty and it does not contain the lastAccessed file.  So the invalid cache location dialog poped up.

A fix could be putting the lastAccessed file back after we clear the cache, which makes the cache a valid cache again even some file system private files (e.g .nfsxxx file in this case) cannot be removed.

###@###.### 2002-11-08
                                     
2002-11-08
SUGGESTED FIX

http://javaweb.sfbay/~ngthomas/webrevs/4775777/webrev/

###@###.### 2002-11-08
                                     
2002-11-08



Hardware and Software, Engineered to Work Together