標籤:java http com os html cti
後台oacore的application log常常報這樣的錯誤 14/06/26 09:28:34.917 html: Servlet error java.io.IOException: Broken pipe at sun.nio.ch.FileDispatcher.write0(Native Method) at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29) at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104) at sun.nio.ch.IOUtil.write(IOUtil.java:75) at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334) at java.nio.channels.Channels.write(Channels.java:60) at java.nio.channels.Channels.access$000(Channels.java:47) at java.nio.channels.Channels$1.write(Channels.java:134) at com.evermind.server.http.AJPOutputStream.endRequest(AJPOutputStream.java:117) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:317) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:619)
The errors are caused by writing to a connection when the other end has already closed it.Basically, this is caused by the peer unexpectedly ending the connection (for instance, by closing the browser during an HTTP connection).When user closes the client session, server cannot write any streams to that client and generates this error.If you click in a link and before the page is rendered you click in a second one. the first request is canceled and you will see a broken pipe at that time.
錯誤是由應用向用戶端發送資訊時,發現客戶已經關閉了這個串連。 基本上,這是由用戶端突然結束串連(例如,通過關閉瀏覽器的HTTP串連)。 當使用者關閉用戶端工作階段,伺服器不能寫任何資訊流,會產生此錯誤。 如果你開啟一個連結,在頁面被渲染之前,你點擊第二個。第一個請求突然被取消了,你會看到當時的這樣報錯。這是正常行為,不必驚慌。