File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "No more files" Watch "No more files" New topic

No more files

Joel McNary

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

Joined: May 26, 2003
Posts: 33102

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???

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Joel McNary

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: 11776

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

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.

I agree. Here's the link:
subject: No more files
jQuery in Action, 3rd edition