NutzCN Logo
问答 文件上传,远程主机关闭现有连接
发布于 1873天前 作者 啊哈 1573 次浏览 复制 上一个帖子 下一个帖子
标签:

测试半天,发现只要上传那一张图片就会报这个错误。其他图片没问题。

Adapter Error catched , but I found AdaptorErrorContext param, so, set it to args, and continue 
java.lang.RuntimeException: org.nutz.mvc.upload.UploadException: java.io.IOException: 远程主机强迫关闭了一个现有的连接。 
     at org.nutz.lang.Lang.wrapThrow(Lang.java:185) 
     at org.nutz.mvc.upload.UploadAdaptor.getReferObject(UploadAdaptor.java:199) 
     at org.nutz.mvc.upload.UploadAdaptor.getReferObject(UploadAdaptor.java:62) 
     at org.nutz.mvc.adaptor.AbstractAdaptor.adapt(AbstractAdaptor.java:250) 
     at org.nutz.mvc.upload.UploadAdaptor.adapt(UploadAdaptor.java:117) 
     at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:25) 
     at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) 
     at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:58) 
     at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) 
     at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:123) 
     at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) 
     at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27) 
     at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) 
     at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15) 
     at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44) 
     at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67) 
     at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31) 
     at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202) 
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) 
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) 
     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478) 
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) 
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80) 
     at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624) 
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) 
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) 
     at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799) 
     at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) 
     at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861) 
     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455) 
     at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) 
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 
     at java.lang.Thread.run(Thread.java:745) 
    Caused by: org.nutz.mvc.upload.UploadException: java.io.IOException: 远程主机强迫关闭了一个现有的连接。 
     at org.nutz.mvc.upload.UploadException$FC$9a86caf9ff5d3b587784fcdf555a4a7d.invoke(UploadException.java) 
     at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:25) 
     at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:19) 
     at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60) 
     at org.nutz.lang.Mirror.born(Mirror.java:1010) 
     at org.nutz.lang.Lang.wrapThrow(Lang.java:201) 
     at org.nutz.mvc.upload.FastUploading.parse(FastUploading.java:223) 
     at org.nutz.mvc.upload.UploadAdaptor.getReferObject(UploadAdaptor.java:183) 
     ... 35 more 
    Caused by: java.io.IOException: 远程主机强迫关闭了一个现有的连接。 
     at sun.nio.ch.SocketDispatcher.read0(Native Method) 
     at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43) 
     at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) 
     at sun.nio.ch.IOUtil.read(IOUtil.java:197) 
     at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) 
     at org.apache.tomcat.util.net.NioChannel.read(NioChannel.java:147) 
     at org.apache.tomcat.util.net.NioBlockingSelector.read(NioBlockingSelector.java:173) 
     at org.apache.tomcat.util.net.NioSelectorPool.read(NioSelectorPool.java:235) 
     at org.apache.tomcat.util.net.NioSelectorPool.read(NioSelectorPool.java:216) 
     at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.fillReadBuffer(NioEndpoint.java:1233) 
     at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1182) 
     at org.apache.coyote.http11.Http11InputBuffer.fill(Http11InputBuffer.java:713) 
     at org.apache.coyote.http11.Http11InputBuffer.access$300(Http11InputBuffer.java:40) 
     at org.apache.coyote.http11.Http11InputBuffer$SocketInputBuffer.doRead(Http11InputBuffer.java:1063) 
     at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:140) 
     at org.apache.coyote.http11.Http11InputBuffer.doRead(Http11InputBuffer.java:257) 
     at org.apache.coyote.Request.doRead(Request.java:574) 
     at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:326) 
     at org.apache.catalina.connector.InputBuffer.checkByteBufferEof(InputBuffer.java:642) 
     at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:349) 
     at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:183) 
     at org.nutz.mvc.upload.util.RingItem.load(RingItem.java:57) 
     at org.nutz.mvc.upload.util.BufferRing.load(BufferRing.java:199) 
     at org.nutz.mvc.upload.FastUploading.parse(FastUploading.java:167) 
     ... 36 more  
1416398 http-nio-8091-exec-54 WARN org.nutz.mvc.impl.processor.FailProcessor Error@/upload/corp_danger_images : 
org.apache.catalina.connector.ClientAbortException: java.io.IOException: 远程主机强迫关闭了一个现有的连接。 
     at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:321) 
     at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:284) 
     at org.apache.catalina.connector.Response.flushBuffer(Response.java:543) 
     at org.apache.catalina.connector.ResponseFacade.flushBuffer(ResponseFacade.java:312) 
     at org.nutz.mvc.Mvcs.write(Mvcs.java:293) 
     at org.nutz.mvc.view.UTF8JsonView.render(UTF8JsonView.java:68) 
     at org.nutz.mvc.impl.processor.ViewProcessor.process(ViewProcessor.java:66) 
     at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) 
     at org.nutz.mvc.impl.processor.MethodInvokeProcessor.process(MethodInvokeProcessor.java:33) 
     at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) 
     at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:30) 
     at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) 
     at org.nutz.mvc.impl.processor.ActionFiltersProcessor.process(ActionFiltersProcessor.java:58) 
     at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) 
     at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:123) 
     at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) 
     at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27) 
     at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) 
     at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15) 
     at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44) 
     at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67) 
     at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31) 
     at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202) 
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) 
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) 
     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478) 
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) 
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80) 
     at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624) 
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) 
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) 
     at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799) 
     at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) 
     at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861) 
     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455) 
     at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) 
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 
     at java.lang.Thread.run(Thread.java:745) 
    Caused by: java.io.IOException: 远程主机强迫关闭了一个现有的连接。 
     at sun.nio.ch.SocketDispatcher.write0(Native Method) 
     at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51) 
     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:471) 
     at org.apache.tomcat.util.net.NioChannel.write(NioChannel.java:134) 
     at org.apache.tomcat.util.net.NioBlockingSelector.write(NioBlockingSelector.java:101) 
     at org.apache.tomcat.util.net.NioSelectorPool.write(NioSelectorPool.java:157) 
     at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.doWrite(NioEndpoint.java:1259) 
     at org.apache.tomcat.util.net.SocketWrapperBase.doWrite(SocketWrapperBase.java:670) 
     at org.apache.tomcat.util.net.SocketWrapperBase.flushBlocking(SocketWrapperBase.java:607) 
     at org.apache.tomcat.util.net.SocketWrapperBase.flush(SocketWrapperBase.java:597) 
     at org.apache.coyote.http11.Http11OutputBuffer.flushBuffer(Http11OutputBuffer.java:581) 
     at org.apache.coyote.http11.Http11OutputBuffer.flush(Http11OutputBuffer.java:272) 
     at org.apache.coyote.http11.Http11Processor.flush(Http11Processor.java:1506) 
     at org.apache.coyote.AbstractProcessor.action(AbstractProcessor.java:279) 
     at org.apache.coyote.Response.action(Response.java:174) 
     at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:317) 
     ... 41 more  

1 回复

文件大小?

添加回复
请先登陆
回到顶部