当前位置: 代码迷 >> Java Web开发 >> java.io.IOException: Corrupt form data: premature ending,该如何处理
  详细解决方案

java.io.IOException: Corrupt form data: premature ending,该如何处理

热度:570   发布时间:2016-04-17 12:22:11.0
java.io.IOException: Corrupt form data: premature ending
用Servlet上传文件时出现如题异常,异常详细内容如下
HTTP Status 500 - 

--------------------------------------------

type Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling this request.

exception 

java.io.IOException: Corrupt form data: premature ending
com.oreilly.servlet.multipart.MultipartParser.<init>(MultipartParser.java:166)
javazoom.upload.parsing.CosMultipartParser.handleRequest(Unknown Source)
javazoom.upload.MultipartFormDataRequest.<init>(Unknown Source)
javazoom.upload.MultipartFormDataRequest.<init>(Unknown Source)
javazoom.upload.MultipartFormDataRequest.<init>(Unknown Source)
javazoom.upload.MultipartFormDataRequest.<init>(Unknown Source)
javazoom.upload.MultipartFormDataRequest.<init>(Unknown Source)
uploadServlet.doPost(uploadServlet.java:38)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.


--------------------------------------------

Apache Tomcat/6.0.14

求解决方法

------解决方案--------------------
上传文件名有中文字符?转码
代码迷推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.daimami.com/search?q=317
  相关解决方案