项目

一般

简介

内嵌版com.apusic.ams.connector.ClientAbortException: java.io.IOException: 断开的管道的问题

由 黄 俊睿 在 大约 2 年 之前添加

异常信息:
java.io.IOException: 断开的管道
com.apusic.ams.connector.ClientAbortException: java.io.IOException: 断开的管道
    at com.apusic.ams.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:351)
    at com.apusic.ams.connector.OutputBuffer.flushByteBuffer(OutputBuffer.java:776)
    at com.apusic.ams.connector.OutputBuffer.append(OutputBuffer.java:681)
    at com.apusic.ams.connector.OutputBuffer.writeBytes(OutputBuffer.java:386)
    at com.apusic.ams.connector.OutputBuffer.write(OutputBuffer.java:364)
    at com.apusic.ams.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:96)
    at com.fasterxml.jackson.core.json.UTF8JsonGenerator._flushBuffer(UTF8JsonGenerator.java:2137)
    at com.fasterxml.jackson.core.json.UTF8JsonGenerator._writeStringSegment2(UTF8JsonGenerator.java:1451)
    at com.fasterxml.jackson.core.json.UTF8JsonGenerator._writeStringSegment(UTF8JsonGenerator.java:1398)
    at com.fasterxml.jackson.core.json.UTF8JsonGenerator.writeString(UTF8JsonGenerator.java:509)
    at com.fasterxml.jackson.databind.ser.std.StringSerializer.serialize(StringSerializer.java:41)
    at com.fasterxml.jackson.databind.ser.std.MapSerializer.serializeFields(MapSerializer.java:722)
    at com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:643)
    at com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:33)
    at com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serializeContents(IndexedListSerializer.java:119)
    at com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serialize(IndexedListSerializer.java:79)
    at com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serialize(IndexedListSerializer.java:18)
    at com.fasterxml.jackson.databind.ser.std.MapSerializer.serializeFields(MapSerializer.java:722)
    at com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:643)
    at com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:33)
    at com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serializeContents(IndexedListSerializer.java:119)
    at com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serialize(IndexedListSerializer.java:79)
    at com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serialize(IndexedListSerializer.java:18)
    at com.fasterxml.jackson.databind.ser.std.MapSerializer.serializeFields(MapSerializer.java:722)
    at com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:643)
    at com.fasterxml.jackson.databind.ser.std.MapSerializer.serialize(MapSerializer.java:33)
    at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider._serialize(DefaultSerializerProvider.java:480)
    at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:319)
    at com.fasterxml.jackson.databind.ObjectWriter$Prefetch.serialize(ObjectWriter.java:1433)
    at com.fasterxml.jackson.databind.ObjectWriter.writeValue(ObjectWriter.java:921)
    at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.writeInternal(AbstractJackson2HttpMessageConverter.java:294)
    at org.springframework.http.converter.AbstractGenericHttpMessageConverter.write(AbstractGenericHttpMessageConverter.java:104)
    at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:287)
    at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.handleReturnValue(RequestResponseBodyMethodProcessor.java:181)
    at org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:82)
    at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:124)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:879)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793)
    at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
    at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
    at com.apusic.ams.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
    at com.apusic.ams.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at com.apusic.aas.websocket.server.WsFilter.doFilter(WsFilter.java:53)
    at com.apusic.ams.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at com.apusic.ams.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at com.minstone.mcube.provider.ApplicationFilter.doFilter(ApplicationFilter.java:127)
    at com.apusic.ams.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at com.apusic.ams.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at com.minstone.mcube.starter.cache.accelerator.CacheAcceleratorFilter.doFilter(CacheAcceleratorFilter.java:30)
    at com.apusic.ams.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at com.apusic.ams.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at com.minstone.mcube.starter.orm.lookup.LookupKeyFilter.doFilter(LookupKeyFilter.java:48)
    at com.apusic.ams.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at com.apusic.ams.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
    at com.apusic.ams.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at com.apusic.ams.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
    at com.apusic.ams.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at com.apusic.ams.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:128)
    at org.springframework.boot.web.servlet.support.ErrorPageFilter.access$000(ErrorPageFilter.java:66)
    at org.springframework.boot.web.servlet.support.ErrorPageFilter$1.doFilterInternal(ErrorPageFilter.java:103)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
    at org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:121)
    at com.apusic.ams.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at com.apusic.ams.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:109)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
    at com.apusic.ams.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at com.apusic.ams.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
    at com.apusic.ams.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at com.apusic.ams.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at com.minstone.mcube.starter.logger.trace.servlet.ServletTraceFilter.doFilter(ServletTraceFilter.java:37)
    at com.apusic.ams.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at com.apusic.ams.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at com.apusic.ams.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
    at com.apusic.ams.core.StandardContextValve.invoke(StandardContextValve.java:96)
    at com.apusic.ams.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
    at com.apusic.ams.core.StandardHostValve.invoke(StandardHostValve.java:139)
    at com.apusic.ams.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
    at com.apusic.ams.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
    at com.apusic.ams.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
    at com.apusic.connector.http11.Http11Processor.service(Http11Processor.java:367)
    at com.apusic.connector.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
    at com.apusic.connector.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
    at com.apusic.aas.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1678)
    at com.apusic.aas.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at com.apusic.aas.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: 断开的管道
    at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
    at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
    at sun.nio.ch.IOUtil.write(IOUtil.java:65)
    at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:468)
    at com.apusic.aas.util.net.NioChannel.write(NioChannel.java:138)
    at com.apusic.aas.util.net.NioEndpoint$NioSocketWrapper.doWrite(NioEndpoint.java:1317)
    at com.apusic.aas.util.net.SocketWrapperBase.doWrite(SocketWrapperBase.java:741)
    at com.apusic.aas.util.net.SocketWrapperBase.writeBlocking(SocketWrapperBase.java:561)
    at com.apusic.aas.util.net.SocketWrapperBase.write(SocketWrapperBase.java:505)
    at com.apusic.connector.http11.Http11OutputBuffer$SocketOutputBuffer.doWrite(Http11OutputBuffer.java:538)
    at com.apusic.connector.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:112)
    at com.apusic.connector.http11.Http11OutputBuffer.doWrite(Http11OutputBuffer.java:190)
    at com.apusic.connector.Response.doWrite(Response.java:598)
    at com.apusic.ams.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:339)
    ... 101 common frames omitted

版本号:

解决时间:2022-10-13

解决方案:在yml/properties文件中调大 server.connection-timeout参数,如: server.connection-timeout:60000  # 连接超时时间,单位为毫秒,可设置大一些

界面现象:

日志截图:

解决操作: