Win a copy of Murach's Python Programming this week in the Jython/Python forum!
    Bookmark Topic Watch Topic
  • New Topic

FileNotFoundException - Too many files open  RSS feed

 
BalaiahRaju ChamarthiRaju
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi In my standalone application after starting deamons it is throwing an error FileNotFoundException-too many files open. please tell me where the problem. I am closing all the streams after finishing my work.
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Without looking at all your code we really can't be much help. However, I will say you must close ALL resources (sockets, database connections, files and so on) in the finally block of a try-catch-finally structure. If you get an exception, your code will skip the rest of the code in a try block. The only way to make sure resources are freed is to use the finally block.
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!