org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe

來源:互聯網
上載者:User
org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe    at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:396)    at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:426)    at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:339)    at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:421)    at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:409)    at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:97)    at org.springframework.util.StreamUtils.copy(StreamUtils.java:124)    at org.springframework.web.servlet.resource.ResourceHttpRequestHandler.writeContent(ResourceHttpRequestHandler.java:256)    at org.springframework.web.servlet.resource.ResourceHttpRequestHandler.handleRequest(ResourceHttpRequestHandler.java:155)    at org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:51)    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:938)    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870)    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)    at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)    at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)    at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)    at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)    at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)    at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)    at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)    at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)    at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)    at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)    at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)    at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)    at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:83)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502)    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1104)    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1519)    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1475)    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)    at java.lang.Thread.run(Thread.java:745)

這個是系統拋出的異常,調查過很多文章部落格,基本上解決不了我這個問題。
操作描述
一個使用者在錄入完資料後提交,後台會拋出異常,但是資料寫入到資料庫,並且會跳轉到登入頁面。系統使用Shiro來控制許可權。
問題解決
因為在錄入以後,頁面會跳轉,跳轉根據form中提供的action地址進行跳轉,但是該地址寫錯了,寫了一個不屬於該使用者的許可權地址,導致拋出異常。這隻是根據現象推測出的結論。

理論依據正在調查。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.