• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.io.IOException: Bad file descriptor

 
Amirr Rafique
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi mates

While reading a FileInputStream I am experiencing following exception. Please help me to identify the reason

 
Tim McGuire
Ranch Hand
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you should post the code that is causing this error.

short of that, the general reason for this error is that a FileInputStream has been closed too early (before the data has been read).

so, if you have an out.close() somewhere, as a test, try commenting it out or moving it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!