码迷,mamicode.com
首页 > 编程语言 > 详细

Spring boot org.apache.catalina.connector.ClientAbortException 错误

时间:2016-11-24 18:50:35      阅读:943      评论:0      收藏:0      [点我收藏+]

标签:color   pos   connector   add   http   locking   data   tput   intern   

 1 org.apache.catalina.connector.ClientAbortException: java.io.IOException: 你的主机中的软件中止了一个已建立的连接。
 2     at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:393)
 3     at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:426)
 4     at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:342)
 5     at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:317)
 6     at org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:110)
 7     at com.fasterxml.jackson.core.json.UTF8JsonGenerator.flush(UTF8JsonGenerator.java:1048)
 8     at com.fasterxml.jackson.databind.ObjectWriter.writeValue(ObjectWriter.java:942)
 9     at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.writeInternal(AbstractJackson2HttpMessageConverter.java:267)
10     at org.springframework.http.converter.AbstractGenericHttpMessageConverter.write(AbstractGenericHttpMessageConverter.java:100)
11     at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:232)
12     at org.springframework.web.servlet.mvc.method.annotation.HttpEntityMethodProcessor.handleReturnValue(HttpEntityMethodProcessor.java:203)
13     at org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:81)
14     at org.springframework.data.rest.webmvc.ResourceProcessorHandlerMethodReturnValueHandler.handleReturnValue(ResourceProcessorHandlerMethodReturnValueHandler.java:115)
15     at org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:81)
16     at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:132)
17     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
18     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
19     at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
20     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
21     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
22     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
23     at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
24     at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
25     at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
26     at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
27     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
28     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
29     at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
30     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
31     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
32     at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
33     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
34     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
35     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
36     at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:89)
37     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
38     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
39     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
40     at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)
41     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
42     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
43     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
44     at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
45     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
46     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
47     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
48     at org.springframework.boot.web.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:117)
49     at org.springframework.boot.web.support.ErrorPageFilter.access$000(ErrorPageFilter.java:61)
50     at org.springframework.boot.web.support.ErrorPageFilter$1.doFilterInternal(ErrorPageFilter.java:92)
51     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
52     at org.springframework.boot.web.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:110)
53     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
54     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
55     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
56     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
57     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
58     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
59     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
60     at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
61     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
62     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
63     at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
64     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
65     at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223)
66     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1517)
67     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1474)
68     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
69     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
70     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
71     at java.lang.Thread.run(Thread.java:745)
72 Caused by: java.io.IOException: 你的主机中的软件中止了一个已建立的连接。
73     at sun.nio.ch.SocketDispatcher.write0(Native Method)
74     at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)
75     at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
76     at sun.nio.ch.IOUtil.write(IOUtil.java:65)
77     at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
78     at org.apache.tomcat.util.net.NioChannel.write(NioChannel.java:127)
79     at org.apache.tomcat.util.net.NioBlockingSelector.write(NioBlockingSelector.java:101)
80     at org.apache.tomcat.util.net.NioSelectorPool.write(NioSelectorPool.java:173)
81     at org.apache.coyote.http11.InternalNioOutputBuffer.writeToSocket(InternalNioOutputBuffer.java:139)
82     at org.apache.coyote.http11.InternalNioOutputBuffer.addToBB(InternalNioOutputBuffer.java:197)
83     at org.apache.coyote.http11.InternalNioOutputBuffer.access$000(InternalNioOutputBuffer.java:41)
84     at org.apache.coyote.http11.InternalNioOutputBuffer$SocketOutputBuffer.doWrite(InternalNioOutputBuffer.java:320)
85     at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:118)
86     at org.apache.coyote.http11.AbstractOutputBuffer.doWrite(AbstractOutputBuffer.java:256)
87     at org.apache.coyote.Response.doWrite(Response.java:503)
88     at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:388)
89     ... 69 common frames omitted

初次接触spring boot  在IDEA配置tomcat后启动 启动成功后报这个错误,后面才晓得boot自带了tomcat, 不需要再在工具里配置tomcat启动,直接运行main方法即可,要在tomcat运行 直接打包放入webapps运行即可。出现这个错误的原因就是自己配置的tomcat和spring boot自带的tomcat发生了冲突导致。

Spring boot org.apache.catalina.connector.ClientAbortException 错误

标签:color   pos   connector   add   http   locking   data   tput   intern   

原文地址:http://www.cnblogs.com/ButterFuture/p/6098514.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!