NutzCN Logo
问答 nutz图片上传时报错
发布于 3016天前 作者 qq_6c186ef5 1778 次浏览 复制 上一个帖子 下一个帖子
标签:

上传图片时报除了一下错误,

16-8-13 10:8:48.460 DEBUG [TP-Processor1] Found mapping for [POST] path=/upload/uploadSingleFile : UploadFile.uploadImage(UploadFile.java:176)
16-8-13 10:8:48.460 DEBUG [TP-Processor1] Get 'uploadFile'<class com.risun.upload.UploadFile>
16-8-13 10:8:48.460 DEBUG [TP-Processor1] Select Html4 Form upload parser --> /RisunUploadFile/upload/uploadSingleFile
16-8-13 10:8:48.460 DEBUG [TP-Processor1] FastUpload : /upload/uploadSingleFile
16-8-13 10:8:48.460 DEBUG [TP-Processor1] info created
16-8-13 10:8:48.460 DEBUG [TP-Processor1] Params map created - 1 params
16-8-13 10:8:48.460 DEBUG [TP-Processor1] boundary: 
------WebKitFormBoundaryblRIdW3em18M0BXf
16-8-13 10:11:28.313 DEBUG [TP-Processor7] Found mapping for [POST] path=/upload/uploadSingleFile : UploadFile.uploadImage(UploadFile.java:176)
16-8-13 10:11:28.313 DEBUG [TP-Processor7] Get 'uploadFile'<class com.risun.upload.UploadFile>
16-8-13 10:11:28.313 DEBUG [TP-Processor7] Select Html4 Form upload parser --> /RisunUploadFile/upload/uploadSingleFile
16-8-13 10:11:28.313 DEBUG [TP-Processor7] FastUpload : /upload/uploadSingleFile
16-8-13 10:11:28.313 DEBUG [TP-Processor7] info created
16-8-13 10:11:28.313 DEBUG [TP-Processor7] Params map created - 1 params
16-8-13 10:11:28.313 DEBUG [TP-Processor7] boundary: 
------WebKitFormBoundaryhicBL274ISLCwbBh
16-8-13 10:12:35.534 WARN [TP-Processor1] Error@/upload/uploadSingleFile :
java.lang.RuntimeException: java.io.IOException
	at org.nutz.lang.Lang.wrapThrow(Lang.java:151)
	at org.nutz.mvc.upload.FastUploading.parse(FastUploading.java:103)
	at org.nutz.mvc.upload.UploadAdaptor.getReferObject(UploadAdaptor.java:189)
	at org.nutz.mvc.upload.UploadAdaptor.getReferObject(UploadAdaptor.java:65)
	at org.nutz.mvc.adaptor.AbstractAdaptor.adapt(AbstractAdaptor.java:225)
	at org.nutz.mvc.upload.UploadAdaptor.adapt(UploadAdaptor.java:120)
	at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:28)
	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:196)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:223)
	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:311)
	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:793)
	at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:722)
	at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:915)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException
	at org.apache.jk.common.JkInputStream.receive(JkInputStream.java:205)
	at org.apache.jk.common.JkInputStream.refillReadBuffer(JkInputStream.java:265)
	at org.apache.jk.common.JkInputStream.doRead(JkInputStream.java:183)
	at org.apache.coyote.Request.doRead(Request.java:427)
	at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:305)
	at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:419)
	at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:328)
	at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:193)
	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:89)
	... 32 more
16-8-13 10:13:50.648 WARN [TP-Processor7] Error@/upload/uploadSingleFile :
java.lang.RuntimeException: java.io.IOException
	at org.nutz.lang.Lang.wrapThrow(Lang.java:151)
	at org.nutz.mvc.upload.FastUploading.parse(FastUploading.java:103)
	at org.nutz.mvc.upload.UploadAdaptor.getReferObject(UploadAdaptor.java:189)
	at org.nutz.mvc.upload.UploadAdaptor.getReferObject(UploadAdaptor.java:65)
	at org.nutz.mvc.adaptor.AbstractAdaptor.adapt(AbstractAdaptor.java:225)
	at org.nutz.mvc.upload.UploadAdaptor.adapt(UploadAdaptor.java:120)
	at org.nutz.mvc.impl.processor.AdaptorProcessor.process(AdaptorProcessor.java:28)
	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:196)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:223)
	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:311)
	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:793)
	at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:722)
	at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:915)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException
	at org.apache.jk.common.JkInputStream.receive(JkInputStream.java:205)
	at org.apache.jk.common.JkInputStream.refillReadBuffer(JkInputStream.java:265)
	at org.apache.jk.common.JkInputStream.doRead(JkInputStream.java:183)
	at org.apache.coyote.Request.doRead(Request.java:427)
	at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:305)
	at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:419)
	at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:328)
	at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:193)
	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:89)
	... 32 more
3 回复

tomcat抛出的异常,网络不好?tomcat版本多少?jdk版本多少

来自炫酷的 NutzCN

网络不好

来自炫酷的 NutzCN

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