Java:java.io.IOException:已建立的连接被主机中的软件中止

时间:2017-01-11 16:00:37

标签: java google-chrome servlets

我收到此错误:

StandardWrapperValve [Faces Servlet]:servlet的Servlet.service()Faces Servlet抛出异常 java.io.IOException:已建立的连接已被主机中的软件中止     at sun.nio.ch.SocketDispatcher.write0(Native Method)     at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)     在sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)     at sun.nio.ch.IOUtil.write(IOUtil.java:51)     at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)     在org.glassfish.grizzly.nio.transport.TCPNIOTransport.flushByteBuffer(TCPNIOTransport.java:1252)     at org.glassfish.grizzly.nio.transport.TCPNIOAsyncQueueWriter.write0(TCPNIOAsyncQueueWriter.java:107)     在org.glassfish.grizzly.nio.AbstractNIOAsyncQueueWriter.write(AbstractNIOAsyncQueueWriter.java:296)     在org.glassfish.grizzly.nio.AbstractNIOAsyncQueueWriter.write(AbstractNIOAsyncQueueWriter.java:203)     在org.glassfish.grizzly.nio.AbstractNIOAsyncQueueWriter.write(AbstractNIOAsyncQueueWriter.java:73)     at org.glassfish.grizzly.nio.transport.TCPNIOTransportFilter.handleWrite(TCPNIOTransportFilter.java:128)     at org.glassfish.grizzly.filterchain.TransportFilter.handleWrite(TransportFilter.java:191)     在org.glassfish.grizzly.filterchain.ExecutorResolver $ 8.execute(ExecutorResolver.java:111)     在org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)     在org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)     在org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)     在org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)     在org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)     在org.glassfish.grizzly.filterchain.FilterChainContext.write(FilterChainContext.java:853)     在org.glassfish.grizzly.filterchain.FilterChainContext.write(FilterChainContext.java:822)     在org.glassfish.grizzly.http.io.OutputBuffer.flushBuffer(OutputBuffer.java:1011)     在org.glassfish.grizzly.http.io.OutputBuffer.flushBinaryBuffers(OutputBuffer.java:996)     at org.glassfish.grizzly.http.io.OutputBuffer.flushBinaryBuffersIfNeeded(OutputBuffer.java:1162)     在org.glassfish.grizzly.http.io.OutputBuffer.flushCharsToBuf(OutputBuffer.java:1155)     在org.glassfish.grizzly.http.io.OutputBuffer.write(OutputBuffer.java:443)     在org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:405)     在org.apache.catalina.connector.CoyoteWriter.write(CoyoteWriter.java:217)     at com.sun.faces.application.view.WriteBehindStateWriter.write(WriteBehindStateWriter.java:147)     at com.sun.faces.renderkit.html_basic.HtmlResponseWriter.flushAttributes(HtmlResponseWriter.java:1193)     at com.sun.faces.renderkit.html_basic.HtmlResponseWriter.endElement(HtmlResponseWriter.java:566)     at com.sun.faces.renderkit.html_basic.TextRenderer.getEndTextToRender(TextRenderer.java:147)     at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:170)     在javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:924)     at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:312)     at com.sun.faces.renderkit.html_basic.TableRenderer.renderRow(TableRenderer.java:385)     at com.sun.faces.renderkit.html_basic.TableRenderer.encodeChildren(TableRenderer.java:162)     在javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:894)     在javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)     在javax.faces.render.Renderer.encodeChildren(Renderer.java:176)     在javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:894)     在javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)     在javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)     在com.sun.faces.application.view.JspViewHandlingStrategy.doRenderView(JspViewHandlingStrategy.java:431)     at com.sun.faces.application.view.JspViewHandlingStrategy.renderView(JspViewHandlingStrategy.java:232)     at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)     at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)     在com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)     在com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)     在javax.faces.webapp.FacesServlet.service(FacesServlet.java:647)     在org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)     在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:344)     在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)     at com.service.util.SessionTimeoutFilter.doFilter(SessionTimeoutFilter.java:179)     在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)     在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)     在org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316)     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)     在org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)     在org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)     在com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)     在org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)     在org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)     在org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)     在com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)     在org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)     在org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)     在org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)     在org.glassfish.grizzly.filterchain.ExecutorResolver $ 9.execute(ExecutorResolver.java:119)     在org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)     在org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)     在org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)     在org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)     在org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)     在org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)     在org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)     在org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)     在org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access $ 100(WorkerThreadIOStrategy.java:55)     在org.glassfish.grizzly.strategies.WorkerThreadIOStrategy $ WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)     在org.glassfish.grizzly.threadpool.AbstractThreadPool $ Worker.doWork(AbstractThreadPool.java:564)     在org.glassfish.grizzly.threadpool.AbstractThreadPool $ Worker.run(AbstractThreadPool.java:544)     在java.lang.Thread.run(Thread.java:745)

奇怪的是,我只是在使用Google Chrome浏览器时遇到此错误。 (使用Microsoft Edge我不会遇到此问题)

有人可以解释为什么会这样吗?

0 个答案:

没有答案