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

求助:大家帮忙看看,问题很奇怪
我做的一个下载东西的jsp网页,在windows上测试的时候一切顺利,但是放到linux上就不行了,下载的文件都是乱码,以下是错误信息


[11:01:13.778]java.lang.IllegalStateException:   http://192.168.0.4:8080/IPphoneSmsp/Page/download.jsp:   tried   to   write   15248   bytes   with   content-length   13824   (At   char=0).
[11:01:13.778]     at   com.caucho.server.connection.ResponseStream.lengthException(ResponseStream.java:548)
[11:01:13.778]     at   com.caucho.server.connection.ResponseStream.writeNext(ResponseStream.java:416)
[11:01:13.778]     at   com.caucho.server.connection.ToByteResponseStream.flushByteBuffer(ToByteResponseStream.java:518)
[11:01:13.778]     at   com.caucho.server.connection.ToByteResponseStream.flushBuffer(ToByteResponseStream.java:424)
[11:01:13.778]     at   com.caucho.server.connection.ResponseStream.flush(ResponseStream.java:579)
[11:01:13.778]     at   sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:410)
[11:01:13.778]     at   sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152)
[11:01:13.778]     at   java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213)
[11:01:13.778]     at   com.caucho.vfs.i18n.JDKWriter$OutputStreamEncodingWriter.write(JDKWriter.java:158)
[11:01:13.778]     at   com.caucho.server.connection.ToByteResponseStream.flushCharBuffer(ToByteResponseStream.java:469)
[11:01:13.778]     at   com.caucho.server.connection.ResponseStream.finish(ResponseStream.java:659)
[11:01:13.778]     at   com.caucho.server.connection.ResponseStream.close(ResponseStream.java:796)
[11:01:13.778]     at   com.caucho.server.connection.AbstractHttpResponse.finish(AbstractHttpResponse.java:1956)
[11:01:13.778]     at   com.caucho.server.connection.AbstractHttpResponse.close(AbstractHttpResponse.java:260)
[11:01:13.778]     at   com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:190)
[11:01:13.778]     at   com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
[11:01:13.778]     at   com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274)
[11:01:13.778]     at   com.caucho.server.port.TcpConnection.run(TcpConnection.java:511)
[11:01:13.778]     at   com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520)
[11:01:13.778]     at   com.caucho.util.ThreadPool.run(ThreadPool.java:442)
[11:01:13.778]     at   java.lang.Thread.run(Thread.java:534)

大家帮忙看看

------解决方案--------------------
没搞过linux 帮你顶顶!!!