日期:2014-05-16  浏览次数:20567 次

一个特殊的异常......估计没人知道
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下很正常.....估计是操作系统的原因吧....


------解决方案--------------------
没人知道就不用在这里问了
------解决方案--------------------
呵呵,我真的不知道,
------解决方案--------------------
那就看看到底是在对哪个文件进行写操作的时候失败,另外自己看看失败原因,比如文件不存在、文件没有写权利等等
------解决方案--------------------
还是到JAVA区去问问吧,这里估计都是c\c++的