日期:2014-05-18  浏览次数:20587 次

一个特殊的异常......HELP ME
java.io.IOException:   错误的文件描述符
at   java.io.FileOutputStream.writeBytes(Native   Method)
at   java.io.FileOutputStream.write(FileOutputStream.java:247)
at   cn.solarstudio.model.ExecCodeBean$EchoOut.run(ExecCodeBean.java:400)
at   java.lang.Thread.run(Thread.java:619)
错误的文件描述符

不知道有谁遇见过,是我的一个JSP   项目在   LINUX(fedora   core   6)上的异常。

一看就知道是在写文件的时候异常,这个异常很怪,一般服务器开的第一次运行写文件这块就异常(   有时候第一次却OK),以后的大部分都可以,但有时候却又异常。总之似乎有一定的随机性。


而且ECLIPSE   提示下面的错误
This   kind   of   lauch   is   configured   to   open   Debug   perspective   when   it   suspends.

This   Debug   perspective   is   designed   to   support   application   debugging.It   incorporates   views   for   displaying   the   debug   stack,variables   and   breakpoint   managerment.


不知道怎么解决....

在WINDOWS下很正常.....估计是操作系统的原因吧....




------解决方案--------------------
应该和并发的文件访问数有关。
------解决方案--------------------
我曾经碰到过这个问题,特别是linux和unix系统,是有这个设置的,你问下系统管理员