This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes No more files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "No more files" Watch "No more files" New topic
Author

No more files

Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1824


Has anybody out there come across this problem before? This seems to be system wide on my computer -- all Java programs are affected by this.

Whenever I reboot, the problem seems to go away temporarily. I realize that this is something system-dependant (it also seems to affect my ANT scripts...) and not Java dependant, but I was wondering if anybody could give any suggestions on what exactly should be done about this. (other than switch to Linux....)
[ February 10, 2005: Message edited by: Joel McNary ]

Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31054
    
232

Joel,
Does it happen if you create a file in Windows Explorer/DOS? When does it occur? When creating a file? When reading/writing a file?

As I recall, Ant runs in a JVM, so that could still be Java related. Maybe a JVM can run out of file descriptors???


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1824

It seems to occur when attempting to get the cononical path for a file. This particular instance was from attempting to start a BEA Weblogic instance. I've gotten the error also when attempting to access a HSQL database. Our code versioning system, Accurev, can't load its PLAF and reverts to the standard Metal theme. My ANT script fails when creating a directory.

However, all of my DOS functions are fine. I can create files, make directories, and generally access everything normally. This seems to be affecting only my Java-based applications.

But, oddly enough, this works:


Even when, at the same time, I get:


Maybe I'll try reinstalling the JVM...tomorrow.
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11524
    
100

Hi Joel,

Have you performed an error check on your hard drive?

It's a long shot I know, but if there was some error in one of the TOCs, causing an infinite loop (or a jump to a non existant file/directory) then you might get such an error. Such an error might not manifest in Microsoft Windows Explorer / DOS prompt if the program in use picked up that the TOC was in error and decided to use the other TOC (The JVM might not have the option of using the other TOC).

As you can see, there are many if's and maybes in that last paragraph. However it won't cost anything to try running an error check (except time).

Regards, Andrew

PS. If I should be using the acronym FAT instead of TOC (or some other acronym) then I appologise for any confusion.


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1824

Ifs and maybes seemed to have panned out. The error check found a bad index, which it fixed. So far, no problems.

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No more files