Solved

File not found

Posted on 2004-03-26
7
157 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
couple of eclipse 5 52
how to install java on RHEL image on EC2 4 57
Chrome and Firefox Java 5 68
jsp error 6 46
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

733 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