Solved

File not found

Posted on 2004-03-26
7
152 Views
Last Modified: 2010-03-31
I often get an error java.io.FileNotFoundException: /misc/res2/resin-2.0.5/doc/jsp/dc_menu.jsp.(Too many files open )
What is the reason for this error?
0
Comment
Question by:anumouli
  • 2
  • 2
7 Comments
 
LVL 15

Accepted Solution

by:
Javatm earned 250 total points
ID: 10693640
> What is the reason for this error?
The most basic thing which its telling you :

A file is not found, either a file that you are using
or the dc_menu.jsp

Hope that helps . . .
Javatm
0
 
LVL 24

Expert Comment

by:sciuriware
ID: 10693744
Is it possible that you opened several files and never closed them?

After something like:   PrintWriter pw = new PrintWriter( ... what ever ... );
                                          .... writing ... writing ....
you must do:                       pw.close();

The same goes for reading.

;JOOP!
0
 
LVL 92

Assisted Solution

by:objects
objects earned 250 total points
ID: 10694007
The follwoing post says increasing the available memory fixes the problem:
http://www.caucho.com/support/resin-interest/0203/0212.html
0
 
LVL 24

Expert Comment

by:sciuriware
ID: 10694096
I read the article ... I think that everybody forgets that the number of open files
is merely an Operating System limit. You can't go on forever and raise your VM to 2Gb.
I don't know what the per-process limit is on actual systems (I tend to use a few files),
but, for instance, on Windows2000 it's easy to hit the all-system-limit ("out of resources").

;JOOP!
0
 
LVL 92

Expert Comment

by:objects
ID: 10694107
I pretty much agree with you but if that is so then why would increasing the available memory get rid of the error.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Java virtual machine monitoring tools 3 39
factorial example challenge 10 62
mapBully challenge 6 89
topping1 challenge 7 53
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
The viewer will learn how to implement Singleton Design Pattern in Java.
This video teaches viewers about errors in exception handling.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now